TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 04:17:02 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 38
  • Total: 39
  • @rjen

[Solved] RTL Hebrew Translation Problems - Help me out please

Started by yeshaib, February 20, 2007, 09:15:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yeshaib

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

G6Cad

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 :)

IchBin

The right to left feature is set in the theme I believe. Did you test it on the default and other themes?

yeshaib

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

agridoc

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.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

yeshaib

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 !

agridoc

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.

  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

yeshaib

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?

agridoc

Try to find align="left" in index.template.php, delete it and see how it goes.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

yeshaib

What can I say ????

"I LOVE YOU" !!!

Thank you so much

Yeshai

yeshaib

Ok me again

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

Something's wrong with the RTL....

agridoc

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.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

yeshaib

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....

adnan

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

yeshaib

Problem Solved.
Somewhat different but it works.
All Themes must be updated as well...... + Icons

Thanks guys