Arabic | English RTL | LTR issue

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
hany_mansour
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 01, 2010 5:52 pm

Arabic | English RTL | LTR issue

Postby hany_mansour » Fri Apr 13, 2018 8:15 pm

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
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24535
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Arabic | English RTL | LTR issue

Postby Per Yngve Berg » Fri Apr 13, 2018 9:01 pm

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.

User avatar
hany_mansour
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 01, 2010 5:52 pm

Re: Arabic | English RTL | LTR issue

Postby hany_mansour » Fri Apr 13, 2018 9:20 pm

Thank you for your reply, could you please give me hint to know how to fix this issue?

User avatar
hany_mansour
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 01, 2010 5:52 pm

Re: Arabic | English RTL | LTR issue

Postby hany_mansour » Fri Apr 13, 2018 9:23 pm

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

User avatar
hany_mansour
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 01, 2010 5:52 pm

Re: Arabic | English RTL | LTR issue

Postby hany_mansour » Fri Apr 13, 2018 9:25 pm

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

User avatar
hany_mansour
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 01, 2010 5:52 pm

Re: Arabic | English RTL | LTR issue

Postby hany_mansour » Sun Apr 15, 2018 10:39 am

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
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24535
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Arabic | English RTL | LTR issue

Postby Per Yngve Berg » Sun Apr 15, 2018 11:36 am

I couldn't recognise your template. Are you using SP Pagebuider or another extension?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18616
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Arabic | English RTL | LTR issue

Postby infograf768 » Tue Apr 17, 2018 6:39 am

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.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Return to “Language - Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 1 guest