Page 1 of 1

Arabic | English RTL | LTR issue

Posted: Fri Apr 13, 2018 8:15 pm
by hany_mansour
Dear Joomla Masters and Joomla.org members

I need help in my problem.

My website built for Arabic and English and every thing is OKAY, except when I select default language Arabic or select English everything take the view direction according to the default language.

I mean when select Arabic as default language all articles, modules and menus direction view from Right-To-Left even the English version

And when select English as default language all articles, modules and menus direction view go to from Left-To-Right even the Arabic version

note: It was working good before moving from shared to dedicated server

for more clear to someone how concern to check my website url is: aoi.org.eg

Thank You all for your continues support and help
Screenshot_1.png

Re: Arabic | English RTL | LTR issue

Posted: Fri Apr 13, 2018 9:01 pm
by Per Yngve Berg
It must be an issue with your template. The language is not set properly in the head section. The first line of the source code contain this:

Code: Select all

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"  lang="ar-aa"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"  lang="ar-aa"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"  lang="ar-aa"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="ar-aa"> <!--<![endif]-->
    <head>
This is with English shown.

Re: Arabic | English RTL | LTR issue

Posted: Fri Apr 13, 2018 9:20 pm
by hany_mansour
Thank you for your reply, could you please give me hint to know how to fix this issue?

Re: Arabic | English RTL | LTR issue

Posted: Fri Apr 13, 2018 9:23 pm
by hany_mansour
Also, If I changed the default language from the language menu you will see all Arabic menu, Articles and modules view from Left-To-Right

I will change it now to be: English as the default language to see what I mean

Thank You again for your attention

Re: Arabic | English RTL | LTR issue

Posted: Fri Apr 13, 2018 9:25 pm
by hany_mansour
Per Yngve Berg wrote:It must be an issue with your template. The language is not set properly in the head section. The first line of the source code contain this:

Code: Select all

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"  lang="ar-aa"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"  lang="ar-aa"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"  lang="ar-aa"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="ar-aa"> <!--<![endif]-->
    <head>
This is with English shown.
Now you can see all Arabic contents going from Left to Right

Re: Arabic | English RTL | LTR issue

Posted: Sun Apr 15, 2018 10:39 am
by hany_mansour
for those how are concerning;

If you are facing this problem, you may use the attached file below "languagefilter.php from Joomla 3.3.6" after Unzip it and place it in the folder ../plugins/system/languagefilter/

Note: You have to backup your New version file before you replace it :)
languagefilter.rar

Re: Arabic | English RTL | LTR issue

Posted: Sun Apr 15, 2018 11:36 am
by Per Yngve Berg
I couldn't recognise your template. Are you using SP Pagebuider or another extension?

Re: Arabic | English RTL | LTR issue

Posted: Tue Apr 17, 2018 6:39 am
by infograf768
Please do NOT advice anyone to use an obsolete version of the core languagefilter plugin. ALL depends on which Joomla version you are using.
As for RTL vs LTR, it is anyway independent from the switcher when you use the default joomla multilingual feature.

A piece of advice for your site SEO:
Use the Language Code System plugin to display ar-EG instead of ar-AA in the generated html. ar-AA is a generic language code we use for Arabic to avoid proposing language packs for all possible countries using Arabic.