summaryrefslogtreecommitdiff
path: root/lib/gettext/gettext.inc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-18 14:05:34 +0300
committerAndrew Dolgov <[email protected]>2020-09-18 14:05:34 +0300
commit3588d5186ef7321fa573adbb62f42b05d7a138be (patch)
tree14d49460bfebe2d370a1e874915f3670efba25f5 /lib/gettext/gettext.inc.php
parent4f5ae94b62b0e949adda5a5e2672cc79a193c02d (diff)
- gettext: merge patch from Sunil Mohan Adapa which rewrites plural parser to not use eval()
- fix typo in aforementioned patch which caused plurals to never load - update code again to newer PHP constructor syntax
Diffstat (limited to 'lib/gettext/gettext.inc.php')
-rw-r--r--lib/gettext/gettext.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gettext/gettext.inc.php b/lib/gettext/gettext.inc.php
index c9f7dc016..ed5be6bbd 100644
--- a/lib/gettext/gettext.inc.php
+++ b/lib/gettext/gettext.inc.php
@@ -69,10 +69,10 @@ function get_list_of_locales($locale) {
* sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr.
*/
$locale_names = array();
- $lang = NULL;
- $country = NULL;
- $charset = NULL;
- $modifier = NULL;
+ $lang = null;
+ $country = null;
+ $charset = null;
+ $modifier = null;
if ($locale) {
if (preg_match("/^(?P<lang>[a-z]{2,3})" // language code
."(?:_(?P<country>[A-Z]{2}))?" // country code