Refactored the language config setting.

This commit is contained in:
Alex Tselegidis 2016-01-21 20:04:55 +01:00
parent 728c740173
commit b69ad58853
2 changed files with 65 additions and 56 deletions

View file

@ -82,8 +82,19 @@ $config['url_suffix'] = '';
| than english. | than english.
| |
*/ */
$config['language'] = Config::DEFAULT_LANGUAGE; // default language $config['language'] = Config::LANGUAGE; // Default Language
/*
|--------------------------------------------------------------------------
| Available Languages
|--------------------------------------------------------------------------
|
| Each item of this array must be a directory with the translation files in
| the /application/language directory. The users will be able to select one
| of these languages.
|
*/
$config['available_languages'] = array( $config['available_languages'] = array(
'english', 'english',
'german', 'german',

View file

@ -1,55 +1,53 @@
<?php <?php
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler * Easy!Appointments - Open Source Web Scheduler
* *
* @package EasyAppointments * @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com> * @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3 * @license http://opensource.org/licenses/GPL-3.0 - GPLv3
* @link http://easyappointments.org * @link http://easyappointments.org
* @since v1.0.0 * @since v1.0.0
* ---------------------------------------------------------------------------- */ * ---------------------------------------------------------------------------- */
/** /**
* Easy!Appointments Configuration File * Easy!Appointments Configuration File
* *
* Set your installation BASE_URL * without the trailing slash * and the database * Set your installation BASE_URL * without the trailing slash * and the database
* credentials in order to connect to the database. You can enable the DEBUG_MODE * credentials in order to connect to the database. You can enable the DEBUG_MODE
* while developing the application. * while developing the application.
* *
* IMPORTANT: * Set the default language by changing the LANGUAGE constant. For a full list of
* If you are updating from version 1.0 you will have to create a new "config.php" * available languages look at the /application/config/config.php file.
* file because the old "configuration.php" is not used anymore. *
*/ * IMPORTANT:
class Config { * If you are updating from version 1.0 you will have to create a new "config.php"
// ------------------------------------------------------------------------ * file because the old "configuration.php" is not used anymore.
// General Settings */
// ------------------------------------------------------------------------ class Config {
const BASE_URL = 'http://url-to-easyappointments-directory'; // ------------------------------------------------------------------------
const DEBUG_MODE = FALSE; // General Settings
// ------------------------------------------------------------------------
// options: 'english','german','greek','hungarian','portuguese', const BASE_URL = 'http://url-to-easyappointments-directory';
// 'chinese','dutch','french','japanese','polish','spanish','italian', const LANGUAGE = 'english';
// 'danish','luxembourgish','slovak','finnish','russian','romanian', const DEBUG_MODE = FALSE;
// 'turkish','hindi'
const DEFAULT_LANGUAGE = english; // ------------------------------------------------------------------------
// Database Settings
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// Database Settings const DB_HOST = '';
// ------------------------------------------------------------------------ const DB_NAME = '';
const DB_HOST = ''; const DB_USERNAME = '';
const DB_NAME = ''; const DB_PASSWORD = '';
const DB_USERNAME = '';
const DB_PASSWORD = ''; // ------------------------------------------------------------------------
// Google Calendar Sync
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// Google Calendar Sync const GOOGLE_SYNC_FEATURE = FALSE; // Enter TRUE or FALSE
// ------------------------------------------------------------------------ const GOOGLE_PRODUCT_NAME = '';
const GOOGLE_SYNC_FEATURE = FALSE; // Enter TRUE or FALSE const GOOGLE_CLIENT_ID = '';
const GOOGLE_PRODUCT_NAME = ''; const GOOGLE_CLIENT_SECRET = '';
const GOOGLE_CLIENT_ID = ''; const GOOGLE_API_KEY = '';
const GOOGLE_CLIENT_SECRET = ''; }
const GOOGLE_API_KEY = ''; /* End of file config.php */
} /* Location: ./config.php */
/* End of file config.php */
/* Location: ./config.php */