TinyPortal

Development => International => Topic started by: yeshaib on February 20, 2007, 09:15:22 PM

Title: [Solved] RTL Hebrew Translation Problems - Help me out please
Post by: yeshaib on February 20, 2007, 09:15:22 PM
Hi

Well I translated TP into Hebrew, BUT....

Hebrew is a RTL Language (Right To Left)
And I think my problem it with the Theme, how do I turn everything to RIGHT TO LEFT?

Thank you
Yeshai
Title: Re: Hebrew Translation Problems - Help me out please
Post by: G6Cad on February 20, 2007, 09:44:17 PM
Now where is Agridoc when we need him the most  :coolsmiley:

I think agridoc will give you the help you need, he is the most advanced staff member we have on this matter i think :)
Title: Re: Hebrew Translation Problems - Help me out please
Post by: IchBin on February 20, 2007, 11:20:22 PM
The right to left feature is set in the theme I believe. Did you test it on the default and other themes?
Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on February 21, 2007, 01:47:50 AM
Here is my problem

With out the TP smf runs perfect with the Hebrew in my forum - check this out http://www.my-audio.net/forum/index.php
As you can see everything is to the right in perfect harmony :)

On another site - www.pdapoint.net I have problems with the forum and the front page
www.pdapoint.net
Title: Re: Hebrew Translation Problems - Help me out please
Post by: agridoc on February 21, 2007, 05:34:36 AM
yeshaibâ„¢ check this http://www.tinyportal.net/index.php?topic=7117.0

As I have no experience for right to left languages, I had called adnan's help there and Bloc has participated. There are different approaches for right to left.
Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on February 21, 2007, 06:52:49 PM
Thank you for the link.

But I don't understand what he means here.
What files do I need to edit?

Thank you
Yeshai


We have 2 solutions in design template website for right align languages .

The first solution :
We define text direction in default like <body dir="rtl">
in SMF we change in index language : $txt['lang_rtl'] = true ;
In this case , all blocks in left show in the right . Like mirror work !!!

The Second solution :
We don't change direction in body !
in SMF we don't change in index language : $txt['lang_rtl'] = false ;
But we should some changes in template and define text direction and alignment in table or div : < table dir="rtl" align="right" ...    and <div dir="rtl"  align="right
In this case , Position of All block as same as english website !
Title: Re: Hebrew Translation Problems - Help me out please
Post by: agridoc on February 21, 2007, 09:05:22 PM
First keep a backup of files to be edited.

$txt['lang_rtl'] = true ; in index.hebrew.php

Also according to adnan you should delete instances of text-align: left; in index.template.php and TPortalBlocks.template.php. Maybe in other files.

I have checked Mod_instructions_SMF11rc.html and it's true that TP adds some instances with installation. That might be the cause.

Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on March 08, 2007, 06:17:27 PM
Hi agridoc

Thank you and I do need a little bit more help

Now my main page with the TP is perfect
www.pdapoint.net - and thank you for that!!!

But my Forum is still LTR and not RTL :(
http://www.pdapoint.net/index.php?action=forum
And in a post
http://www.pdapoint.net/index.php?topic=3.0

Can you help me out on this one?
Title: Re: Hebrew Translation Problems - Help me out please
Post by: agridoc on March 08, 2007, 09:32:11 PM
Try to find align="left" in index.template.php, delete it and see how it goes.
Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on March 08, 2007, 10:38:15 PM
What can I say ????

"I LOVE YOU" !!!

Thank you so much

Yeshai
Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on March 08, 2007, 11:28:22 PM
Ok me again

How do I convert a Theme?
Take a look
www.pdapoint.net

Something's wrong with the RTL....
Title: Re: Hebrew Translation Problems - Help me out please
Post by: agridoc on March 09, 2007, 05:22:54 AM
Try to do the same with index.template.php and TPortalBlocks.template.php in Azure TP (or any other theme you are using).

However, specific themes may have more instances in other files or may need something more.

I reported this to Bloc and the TP Themes Team.
Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on March 09, 2007, 03:34:13 PM
I looked for the align="left" on the index.template.php in the Azura theme before posting this, but couldn't find anything like it.

But there is no TPortalBlocks.template.php in the Azura folder I'm not sure how I should go on with this....
Title: Re: Hebrew Translation Problems - Help me out please
Post by: adnan on March 20, 2007, 02:48:39 PM
Quote from: yeshaibâ„¢ on March 09, 2007, 03:34:13 PM
I looked for the align="left" on the index.template.php in the Azura theme before posting this, but couldn't find anything like it.

But there is no TPortalBlocks.template.php in the Azura folder I'm not sure how I should go on with this....

check TPortalBlocks.template.php in default folder
Title: Re: Hebrew Translation Problems - Help me out please
Post by: yeshaib on March 29, 2007, 11:17:28 PM
Problem Solved.
Somewhat different but it works.
All Themes must be updated as well...... + Icons

Thanks guys