Skip to content

Commit

Permalink
#11 - Default language should be with uppercase at the first letter a…
Browse files Browse the repository at this point in the history
…s it is causing issues on UNIX based systems
  • Loading branch information
scoumbourdis committed Sep 7, 2020
1 parent e5aa11e commit 89dcbac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Config/GroceryCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class GroceryCrud
* For view all the languages go to the folder assets/grocery_crud/languages/
* @var string
*/
public $default_language = 'english';
public $default_language = 'English';

/**
* There are only three choices: "uk-date" (dd/mm/yyyy), "us-date" (mm/dd/yyyy) or "sql-date" (yyyy-mm-dd)
Expand Down
4 changes: 2 additions & 2 deletions app/Libraries/GroceryCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@ protected function get_datetime_input($field_info,$value)
$this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.GroceryCrud::JQUERY_UI_JS);
$this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery-ui-timepicker-addon.js');

if($this->language !== 'english')
if($this->language !== 'English')
{
include($this->default_config_path.'/language_alias.php');
if(array_key_exists($this->language, $language_alias))
Expand Down Expand Up @@ -2275,7 +2275,7 @@ protected function get_date_input($field_info,$value)
$this->set_css($this->default_css_path.'/ui/simple/'.GroceryCrud::JQUERY_UI_CSS);
$this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.GroceryCrud::JQUERY_UI_JS);

if($this->language !== 'english')
if($this->language !== 'English')
{
include($this->default_config_path.'/language_alias.php');
if(array_key_exists($this->language, $language_alias))
Expand Down
2 changes: 2 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v2.0.1
- #11 - Default language should be with uppercase at the first letter as it is causing issues on UNIX based systems
v2.0.0
- Creation of a stable release
v2.0.0-BETA.1
Expand Down

0 comments on commit 89dcbac

Please sign in to comment.