Hello,
I’m working on a multi-language website with English, Italian and Arabic texts. I set up the three languages like this in the config.php:
c::set('languages', array(
array(
'code' => 'en',
'name' => 'English',
'default' => true,
'locale' => 'en_US',
'url' => '/',
),
array(
'code' => 'it',
'name' => 'Italian',
'locale' => 'it_IT',
'url' => '/it',
),
array(
'code' => 'ar',
'name' => 'Arabic',
'locale' => 'ar_BH',
'url' => '/ar',
),
));
I can add Arabic text into the Panel and I’m calling it with <?php echo kirbytext($page->etc.->text()); ?>. Everything works fine for the English version, but switching to the Arabic, the text gets cumbersome like:
مع عشر ØØ¯Ø§Ø¦Ù‚ Ø§Ù„ÙØ§ÙƒÙ‡Ø© المميزة، والتي ØªØØªÙˆÙŠ Ø¹Ù„Ù‰ الأشجار التي سيكون المثمرة ÙÙŠ Ù„ØØ¸Ø§Øª Ù…Ø®ØªÙ„ÙØ© طوال مدة ستة أشهر من المعرض، ام
In the source-code, the text above is actually in the paragraph-tag, so it’s not a mistake due to the font (I’m using a font, supporting arabic characters). My html tag has lang=“ar” and I have meta charset=“utf-8” in the head.
Any advises on this?
Furthermore, is it possible to set the text for the Arabic panel to the reading direction right-to-left?
Thanks a lot!
EDIT: checking the page.ar.txt file, the text here is in arabic characters.