From 7e6efd1065ee1aac8b59759255d317cb172fa45e Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 20 Dec 2009 15:52:43 +0100 Subject: Localisation updates for !StatusNet from !translatewiki.net !sntrans * Adding Persian language --- lib/language.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/language.php') diff --git a/lib/language.php b/lib/language.php index d8f529201..0e4ccc409 100644 --- a/lib/language.php +++ b/lib/language.php @@ -283,6 +283,7 @@ function get_all_languages() { 'en' => array('q' => 1, 'lang' => 'en', 'name' => 'English (US)', 'direction' => 'ltr'), 'es' => array('q' => 1, 'lang' => 'es', 'name' => 'Spanish', 'direction' => 'ltr'), 'fi' => array('q' => 1, 'lang' => 'fi', 'name' => 'Finnish', 'direction' => 'ltr'), + 'fa' => array('q' => 1, 'lang' => 'fa', 'name' => 'Persian', 'direction' => 'rtl'), 'fr-fr' => array('q' => 1, 'lang' => 'fr', 'name' => 'French', 'direction' => 'ltr'), 'ga' => array('q' => 0.5, 'lang' => 'ga', 'name' => 'Galician', 'direction' => 'ltr'), 'he' => array('q' => 0.5, 'lang' => 'he', 'name' => 'Hebrew', 'direction' => 'rtl'), -- cgit v1.2.3-54-g00ecf From a06af3f12519886a474e0aaa970778861102b3a5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 20 Dec 2009 15:33:33 -0800 Subject: Ticket 1982: define LC_MESSAGES and friends if PHP didn't predefine them for us. (Known problem on Win32) --- lib/language.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/language.php') diff --git a/lib/language.php b/lib/language.php index 0e4ccc409..f5ee7fac5 100644 --- a/lib/language.php +++ b/lib/language.php @@ -32,6 +32,21 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } +// Locale category constants are usually predefined, but may not be +// on some systems such as Win32. +$LC_CATEGORIES = array('LC_CTYPE', + 'LC_NUMERIC', + 'LC_TIME', + 'LC_COLLATE', + 'LC_MONETARY', + 'LC_MESSAGES', + 'LC_ALL'); +foreach ($LC_CATEGORIES as $key => $name) { + if (!defined($name)) { + define($name, $key); + } +} + if (!function_exists('gettext')) { require_once("php-gettext/gettext.inc"); } -- cgit v1.2.3-54-g00ecf