Following advice on other threads, I added the dir="rtl"
attribute to the HTML tag in the /common/header.php file, to enable right-to-left Arabic text. This didn’t seem to do anything.
Then I went into the /application/libraries/globals.php and changed
function get_html_lang() { try { $locale = Zend_Registry::get('Zend_Locale'); } catch (Zend_Exception $e) { return 'en-US'; } return str_replace('_', '-', $locale->toString()); }
to return 'ar'
That also didn’t work.
I’ve tried styling individual HTML tags using style="text-align: right;"
and that only sort of works. Oddly, everything aligns right except for the punctuation, which even seems to autocorrect in the HTML editor to the right side of the word, or the far right margin.
In the /theme/centerow/styles.css file I added the direction:rtl;
attribute to HTML, but that still didn’t solve the punctuation issue.
In /application/config/config.ini I set locale.name = ""
to “ar”, but that also changed parts of the admin dashboard to Arabic, so had to scrap that.
Any other ideas about how to fix this? Thanks in advance!