summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-22 13:38:25 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-22 13:38:25 +0000
commitcab40dc3334c5f3990c152cadef3580dc9126ffd (patch)
tree560d7e3e4f8245b60fb6dc354a29e4304e087624 /includes
parentb5466ef5133cef3297f1b910cea08df26886e08b (diff)
downloadwebtrees-cab40dc3334c5f3990c152cadef3580dc9126ffd.tar.gz
webtrees-cab40dc3334c5f3990c152cadef3580dc9126ffd.tar.bz2
webtrees-cab40dc3334c5f3990c152cadef3580dc9126ffd.zip
Farsi and Arabic both use the arabic script, but with different digits. See http://framework.zend.com/issues/browse/ZF-11908
Diffstat (limited to 'includes')
-rw-r--r--includes/session.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/session.php b/includes/session.php
index 344c77ffc5..f9462945b9 100644
--- a/includes/session.php
+++ b/includes/session.php
@@ -404,6 +404,8 @@ define('WT_USER_ID', getUserId());
// With no parameters, init() looks to the environment to choose a language
define('WT_LOCALE', WT_I18N::init());
+// Non-latin languages may need non-latin digits
+define('WT_NUMBERING_SYSTEM', Zend_Locale_Data::getContent(WT_LOCALE, 'defaultnumberingsystem'));
// Application configuration data - things that aren't (yet?) user-editable
require WT_ROOT.'includes/config_data.php';