Merge pull request #7705 from mlutfy/4.7-crm16801-1
[civicrm-core.git] / install / index.php
index 4502e5de5327a8ff59a50fae0e75e8f160b8d8f3..bd989f3ccb1e8e5a30729db1d410d660efeccc0a 100644 (file)
@@ -188,6 +188,11 @@ $GLOBALS['civicrm_default_error_scope'] = NULL;
 // The translation files are in the parent directory (l10n)
 $i18n = CRM_Core_I18n::singleton();
 
+// Support for Arabic, Hebrew, Farsi, etc.
+// Used in the template.html
+$short_lang_code = CRM_Core_I18n_PseudoConstant::shortForLong($tsLocale);
+$text_direction = (CRM_Core_I18n::isLanguageRTL($tsLocale) ? 'rtl' : 'ltr');
+
 global $cmsPath;
 if ($installType == 'drupal') {
   //CRM-6840 -don't force to install in sites/all/modules/