change style to rtl direction but Admin index in LTR!

Having a question about translating phpBB3? Want to discuss and collaborate with people currently translating phpBB3? Here would be the correct place to do so.
Suggested Hosts
zyx386
Registered User
Posts: 6
Joined: Wed Nov 05, 2008 4:17 pm

change style to rtl direction but Admin index in LTR!

Post by zyx386 »

hi,
i translate the common.php to our language and change the to:

Code: Select all

'DIRECTION'			=> 'rtl',
worked fine the original style is rtl direction to. but i will now reset just Admin index ACP to LTR direction(because is 70% untranslated).
can i have rtl direction for the style Board index and ltr direction for ACP page? i edit the bidi.css and some another CSS file nothing hapen!

best regards
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk

Re: change style to rtl direction but Admin index in LTR!

Post by Raimon »

The easiest solution would be to edit the overall_header of the adm directory, and edit the CONTENT_DIRECTION variable out.

Open /adm/style/overall_header.html

search:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
replace with:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
search:

Code: Select all

<body class="{S_CONTENT_DIRECTION}">
replace with:

Code: Select all

<body class="ltr">
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me @ www.raimon.nl for fair prices and good service!
User avatar
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: change style to rtl direction but Admin index in LTR!

Post by Greight »

I need a similar thing but I want ONLY my posts and text box be rtl not anything else. Can this be done ?
User avatar
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: change style to rtl direction but Admin index in LTR!

Post by Greight »

Greight wrote:I need a similar thing but I want ONLY my posts and text box be rtl not anything else. Can this be done ?
No one knows whether this is possible or not ?
:roll:

Return to “[3.0.x] Translations”