From 69c2bfef8a54cbfc215e20f894f46b965db8a529 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 4 Mar 2024 10:02:51 +0100 Subject: [PATCH] Add thai translation files --- application/config/config.php | 31 +- application/language/thai/calendar_lang.php | 84 ++++ application/language/thai/date_lang.php | 94 ++++ application/language/thai/db_lang.php | 63 +++ application/language/thai/email_lang.php | 58 +++ .../language/thai/form_validation_lang.php | 69 +++ application/language/thai/ftp_lang.php | 51 ++ application/language/thai/imglib_lang.php | 57 +++ application/language/thai/index.html | 10 + application/language/thai/number_lang.php | 44 ++ application/language/thai/pagination_lang.php | 43 ++ application/language/thai/profiler_lang.php | 60 +++ .../language/thai/translations_lang.php | 457 ++++++++++++++++++ application/language/thai/unit_test_lang.php | 58 +++ application/language/thai/upload_lang.php | 55 +++ 15 files changed, 1219 insertions(+), 15 deletions(-) create mode 100644 application/language/thai/calendar_lang.php create mode 100644 application/language/thai/date_lang.php create mode 100644 application/language/thai/db_lang.php create mode 100644 application/language/thai/email_lang.php create mode 100644 application/language/thai/form_validation_lang.php create mode 100644 application/language/thai/ftp_lang.php create mode 100644 application/language/thai/imglib_lang.php create mode 100644 application/language/thai/index.html create mode 100644 application/language/thai/number_lang.php create mode 100644 application/language/thai/pagination_lang.php create mode 100644 application/language/thai/profiler_lang.php create mode 100644 application/language/thai/translations_lang.php create mode 100644 application/language/thai/unit_test_lang.php create mode 100644 application/language/thai/upload_lang.php diff --git a/application/config/config.php b/application/config/config.php index 064e4288..4ca2c802 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -17,7 +17,7 @@ $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || - (isset($_SERVER['SERVER_PORT']) && (int)$_SERVER['SERVER_PORT'] === 443) || + (isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443) || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') ? 'https://' : 'http://'; @@ -26,8 +26,7 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost'; $request_uri = dirname($_SERVER['SCRIPT_NAME']); -if ($request_uri === '.') -{ +if ($request_uri === '.') { $request_uri = ''; } @@ -118,7 +117,8 @@ $languages = [ 'sk' => 'slovak', 'es' => 'spanish', 'sv' => 'swedish', - 'tr' => 'turkish' + 'th' => 'thai', + 'tr' => 'turkish', ]; $config['language_codes'] = $languages; @@ -173,7 +173,8 @@ $config['available_languages'] = [ 'slovak', 'spanish', 'swedish', - 'turkish' + 'thai', + 'turkish', ]; /* @@ -196,7 +197,7 @@ $config['charset'] = 'UTF-8'; | setting this variable to TRUE (boolean). See the user guide for details. | */ -$config['enable_hooks'] = TRUE; +$config['enable_hooks'] = true; /* |-------------------------------------------------------------------------- @@ -256,8 +257,8 @@ $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; | use segment based URLs. | */ -$config['allow_get_array'] = TRUE; -$config['enable_query_strings'] = FALSE; +$config['allow_get_array'] = true; +$config['enable_query_strings'] = false; $config['controller_trigger'] = 'c'; $config['function_trigger'] = 'm'; $config['directory_trigger'] = 'd'; // experimental not currently in use @@ -350,9 +351,9 @@ $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ea_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = __DIR__ . '/../../storage/sessions'; -$config['sess_match_ip'] = FALSE; +$config['sess_match_ip'] = false; $config['sess_time_to_update'] = 300; -$config['sess_regenerate_destroy'] = FALSE; +$config['sess_regenerate_destroy'] = false; /* |-------------------------------------------------------------------------- @@ -368,7 +369,7 @@ $config['sess_regenerate_destroy'] = FALSE; $config['cookie_prefix'] = ''; $config['cookie_domain'] = ''; $config['cookie_path'] = '/'; -$config['cookie_secure'] = strpos($config['base_url'], 'https') !== FALSE; +$config['cookie_secure'] = strpos($config['base_url'], 'https') !== false; /* |-------------------------------------------------------------------------- @@ -382,7 +383,7 @@ $config['cookie_secure'] = strpos($config['base_url'], 'https') !== FALSE; | 'csrf_cookie_name' = The cookie name | 'csrf_expire' = The number in seconds the token should expire. */ -$config['csrf_protection'] = TRUE; +$config['csrf_protection'] = true; $config['csrf_token_name'] = 'csrf_token'; $config['csrf_cookie_name'] = 'csrf_cookie'; $config['csrf_expire'] = 7200; @@ -405,7 +406,7 @@ $config['csrf_exclude_uris'] = ['api/v1/.*', 'booking/.*', 'booking_cancellation | by the output class. Do not 'echo' any values with compression enabled. | */ -$config['compress_output'] = FALSE; +$config['compress_output'] = false; /* |-------------------------------------------------------------------------- @@ -430,7 +431,7 @@ $config['time_reference'] = 'local'; | in your view files. Options are TRUE or FALSE (boolean) | */ -$config['rewrite_short_tags'] = FALSE; +$config['rewrite_short_tags'] = false; /* |-------------------------------------------------------------------------- @@ -454,7 +455,7 @@ $config['proxy_ips'] = ''; | will control the number of requests a client can sent to the app. | */ -$config['rate_limiting'] = TRUE; +$config['rate_limiting'] = true; /* End of file config.php */ /* Location: ./application/config/config.php */ diff --git a/application/language/thai/calendar_lang.php b/application/language/thai/calendar_lang.php new file mode 100644 index 00000000..a60659fa --- /dev/null +++ b/application/language/thai/calendar_lang.php @@ -0,0 +1,84 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/application/language/thai/number_lang.php b/application/language/thai/number_lang.php new file mode 100644 index 00000000..af3d06d1 --- /dev/null +++ b/application/language/thai/number_lang.php @@ -0,0 +1,44 @@ +