From 85851eafd64f5f92e6ea069ac0893b2795356623 Mon Sep 17 00:00:00 2001 From: Stijn Goethals Date: Tue, 19 Jan 2016 19:28:37 +0100 Subject: [PATCH 1/3] enable to change default language --- src/config-sample.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config-sample.php b/src/config-sample.php index 5411537e..412bada5 100644 --- a/src/config-sample.php +++ b/src/config-sample.php @@ -27,6 +27,8 @@ class Config { // ------------------------------------------------------------------------ const BASE_URL = 'http://url-to-easyappointments-directory'; const DEBUG_MODE = FALSE; + + const DEFAULT_LANGUAGE = english; // ------------------------------------------------------------------------ // Database Settings @@ -46,4 +48,4 @@ class Config { const GOOGLE_API_KEY = ''; } /* End of file config.php */ -/* Location: ./config.php */ \ No newline at end of file +/* Location: ./config.php */ From dac05a2ec8880a77ac2b64f6c426e0e095a3aca4 Mon Sep 17 00:00:00 2001 From: Stijn Goethals Date: Tue, 19 Jan 2016 19:35:32 +0100 Subject: [PATCH 2/3] Make option to change default language in main config --- src/application/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/config/config.php b/src/application/config/config.php index 4e4806ee..589a3e38 100644 --- a/src/application/config/config.php +++ b/src/application/config/config.php @@ -82,7 +82,7 @@ $config['url_suffix'] = ''; | than english. | */ -$config['language'] = 'english'; // default language +$config['language'] = Config::DEFAULT_LANGUAGE; // default language $config['available_languages'] = array( 'english', From cee662c4721c33f4956fd40811048dc1d4690973 Mon Sep 17 00:00:00 2001 From: Stijn Goethals Date: Tue, 19 Jan 2016 19:36:23 +0100 Subject: [PATCH 3/3] Documuntation for default language added --- src/config-sample.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config-sample.php b/src/config-sample.php index 412bada5..d69e9d9c 100644 --- a/src/config-sample.php +++ b/src/config-sample.php @@ -28,6 +28,10 @@ class Config { const BASE_URL = 'http://url-to-easyappointments-directory'; const DEBUG_MODE = FALSE; + // options: 'english','german','greek','hungarian','portuguese', + // 'chinese','dutch','french','japanese','polish','spanish','italian', + // 'danish','luxembourgish','slovak','finnish','russian','romanian', + // 'turkish','hindi' const DEFAULT_LANGUAGE = english; // ------------------------------------------------------------------------