rtl direction doesn't switch when user changes language

Having a question about translating phpBB 3.3? Want to discuss and collaborate with people currently translating phpBB 3.3? Here would be the correct place to do so.
Post Reply
KFMDM Solutions
Registered User
Posts: 15
Joined: Mon Aug 23, 2021 4:41 am

rtl direction doesn't switch when user changes language

Post by KFMDM Solutions »

in phpbb 3.3.5 when the user changes the language the direction sty's with the default language direction
any help?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53410
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: rtl direction doesn't switch when user changes language

Post by Brf »

Your language's common.php should have this near the top

Code: Select all

'DIRECTION'			=> 'rtl',
then your style's overall_header.html should start with

Code: Select all

<html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}">
KFMDM Solutions
Registered User
Posts: 15
Joined: Mon Aug 23, 2021 4:41 am

Re: rtl direction doesn't switch when user changes language

Post by KFMDM Solutions »

Brf wrote: Tue Oct 26, 2021 2:00 pm Your language's common.php should have this near the top

Code: Select all

'DIRECTION'			=> 'rtl',
then your style's overall_header.html should start with

Code: Select all

<html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}">
it does
but if the default language is set to ltr is sty's
KFMDM Solutions
Registered User
Posts: 15
Joined: Mon Aug 23, 2021 4:41 am

Re: rtl direction doesn't switch when user changes language

Post by KFMDM Solutions »

some how it go fixed by itself
KFMDM Solutions
Registered User
Posts: 15
Joined: Mon Aug 23, 2021 4:41 am

Re: rtl direction doesn't switch when user changes language

Post by KFMDM Solutions »

some how it happened again

the direction and some translation's like the yes and no etc..

stay's with the default language
User avatar
TimRiker
Registered User
Posts: 16
Joined: Wed Jun 24, 2015 6:16 pm
Name: Tim Riker
Contact:

Re: rtl direction doesn't switch when user changes language

Post by TimRiker »

There is an issue with some styles, particularly with styles that inherit. The reference to bidi.css is such that it will not inherit from other styles like normal css files do. The quick solution is to copy:

styles/prosilver/theme/bidi.css

to

styles/<inherited style>/theme/bidi.css

If you're running the default prosilver style, or any style that includes bidi.css, then you won't run into this issue.

I commented in this issue some of the other files that must be copied:

https://tracker.phpbb.com/browse/PHPBB3-14724

but are not mentioned in the documentation:

https://www.phpbb.com/styles/create/
Post Reply

Return to “[3.3.x] Translations”