diff --git a/installation/form/field/language.php b/installation/form/field/language.php index 9e79242660718..7da1f978326d7 100644 --- a/installation/form/field/language.php +++ b/installation/form/field/language.php @@ -64,6 +64,15 @@ protected function getOptions() // Get the list of available languages. $options = JLanguageHelper::createLanguageList($native); + // Fix wrongly set parentheses in RTL languages + if (JFactory::getLanguage()->isRTL()) + { + foreach ($options as &$option) + { + $option['text'] = $option['text'] . '‎'; + } + } + if (!$options || $options instanceof Exception) { $options = array();