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

Recent

Welcome to TinyPortal. Please login or sign up.

May 05, 2024, 06:45:37 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 274
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 263
  • Total: 263

Big problem with Arabic language !

Started by Master, August 08, 2006, 09:23:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

agridoc

Thank you for the response and help adnan  ;)
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

Master

#11
thank you for your help

i didn't find any align="left" in TPortalBlocks.template.php

but i put this at the beginning of the file

<html dir="rtl">

and it works but there is a problem in Themes and Layout choice in admin panel

it takes about 3000 PX width and the boxes are divided on this space

thank you again i thought i was the only one who has this problem  ;D

bloc

This is an issue I will add to the roadmap for v1.0. Also, I am aware that many of my themes are not really RTL adjusted - which they should.

But to clarify..in arabic, the text should flow from right to left, that means also "left panel" should be on the right?

agridoc

#13
Quote from: Bloc on August 08, 2006, 07:33:58 PMBut to clarify..in arabic, the text should flow from right to left, that means also "left panel" should be on the right?

I think Master must rather refer to program behavior or start and end, this is understandable.We would have a severe problem of communication if we had different definition for left and right.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

adnan

QuoteThank you for the response and help adnan
Your welcome !  ;)

Quotei didn't find any align="left" in TPortalBlocks.template.php

Oh ! Are you sure ???

but i put this at the beginning of the file

<html dir="rtl">


This isn't good solution !!!! I attach my TPortalBlocks.template.php file in this topic . replace the file  and check again . Remember to backup the file before you change it .

Quoteut to clarify..in arabic, the text should flow from right to left, that means also "left panel" should be on the right?

Yes ! both of panels should be on the right . also I think both of them align to left in english . I think you don't need text alignment in the blocks ! and if you don't put  text alignment in blocks , Portal will work fine in  both of  language types ( english and arabic )


agridoc

Sorry, but I am a bit confused.

What is defined as left blocks will appear on the left or on the right side of ths screen, if we switch to a right to left language?
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

Master

hello

i fixed but i changed the index.template.php not TPortalBlocks.template.php
and worked

Quote from: adnan on August 08, 2006, 11:13:33 PM
Yes ! both of panels should be on the right . also I think both of them align to left in English . I think you don't need text alignment in the blocks ! and if you don't put  text alignment in blocks , Portal will work fine in  both of  language types ( English and Arabic )


yes because the first direction is defined at first by dir="rtl" or be default
so in themes we shouldn't use alignment for text at all right ?

Quote from: agridoc on August 08, 2006, 11:45:42 PM
Sorry, but I am a bit confused.

What is defined as left blocks will appear on the left or on the right side of the screen, if we switch to a right to left language?


because the Dir="rtl" switch the direction for all page but in same sequence
so every right is left and every left is right only in position not in name

Master

i replaced TPortalBlocks.template.php file and restore my index.template.php and it didn't work

so i am sure that changes must be in index.template.php not TPortalBlocks.template.php but you gave me the solution and thank you for that  :laugh:



adnan

#18
Quoteyes because the first direction is defined at first by dir="rtl" or be default
so in themes we shouldn't use alignment for text at all right ?

Yes .

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

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 !

bloc