| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 17172|Reply: 29
Collapse the left

[Solved] Change direction only does not work very well! RTL!

  [Copy link]

 United States

Post time: 2011-11-19 20:52
| Show all posts |Read mode
Edited by khalid at 2011-11-19 22:15

When I saw the new update " Rev 162 "


i saw this line in header_common.htm FILE

<html xmlns="http://www.w3.org/1999/xhtml" dir="{$_G[langdir]}">


in arabic lang become

<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">


OK....

This is not enough!


You must change in css files especially common.css and module.css files

and these files is ready .



But the question is how to change the css files when change the lang






----------------------------------------------------------------------


We can change in source/class/class_core.php by add new value for RTL template folder

UNDER THIS LINE

        // set new language variables


I do not know what should be written, but I think it is not difficult



In the end I thank  VOT on the great efforts





RTL template folder





This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2011-11-20 09:22
| Show all posts
This is not enough!
You must change in css files especially common.css and module.css files and these files is ready .

You are right.
I know about this problem.
And I've seen your modified template and styles.
I still thinking about this...

Add a whole template for RTL languages - of course, it is not a good idea...
It is more reasonable to add a specialy prepared styles for change direction from left to right.
This special CSS file must contain only left/right properties but NO other elements...
How to prepare such type style replacement?

 Palestine

 Author| Post time: 2011-11-20 12:51
| Show all posts
There are changes in the template files too , Not only modify on css files

Very difficult to write all the substituents ​​of the values  in css files , it is impossible

The best solution is to make a special template languages ​​(from right to left) has been prepared


Or possible to determine the 5 most important files for the template (right to left).



 Russia

Post time: 2011-11-20 13:28
| Show all posts
There are changes in the template files too , Not only modify on css files

What the changes required for templates?
The best solution is to make a special template languages ​​(from right to left) has been prepared

Did not undersatan. What do you mean?
Or possible to determine the 5 most important files for the template (right to left).

More details, please!

 Palestine

 Author| Post time: 2011-11-21 13:16
| Show all posts
Edited by khalid at 2011-11-21 14:19

I mean make 2 template

1 for RTL lang .. READY 100%
1 for ENG,..etc (LTR)

And link arabic flag with RTL template . .... your Job
And RTL template contains  main image folder .... MY JOB .


-------------------------------------------------------


I have a suggestion

Be the image files for each language
e.g

english have english images
chinese have chinese images
.....etc.

we can make this like Direction Function in header_common.htm .


by Put replacements in the  common.Css file And related files


 Russia

Post time: 2011-11-21 20:43
| Show all posts
Very difficult to write all the substituents ​​of the values  in css files , it is impossible

What do you think about such type idea:
* Duplicate all the CSS files into 2 files ?
i.e.
common_ltr.css - for LTR languages
common_rtl.css - for RTL languages

After analyzing the direction setting we can include a corresponding CSS style by 1 line of code,
like this:
<link rel="stylesheet" type="text/css" href="common_{$_G[langdir]}.css?<?php echo VERHASH;?>" />


About image:
I think... May be, it is more reasonable to remove all the texts from all the buttons?

Or... just move SOME (not all!) of language specific images into each lenguage pack...

 Palestine

 Author| Post time: 2011-11-21 20:57
| Show all posts
vot replied at 2011-11-21 21:43
What do you think about such type idea:
* Duplicate all the CSS files into 2 files ?
i.e.

yes ,  Duplicate  Specific files in first
e.g
common.css
module.css


then Will we include more files ( not all ! )

about your is Great idea .

about image

I will speak later to fix problem .


 Russia

Post time: 2011-11-21 21:09
| Show all posts
khalid, let's try to decide:
What the images we can convert to blank buttons + text over it,
and what the images we must to place into a language pack?!

 Russia

Post time: 2011-11-21 21:10
| Show all posts

 Russia

Post time: 2011-11-22 20:46
| Show all posts
Khalid, yet another udea:
I think, we can use unified templates!
Most of all your modifications can be moved into CSS files...

Inspect all the templates modified by you,
and report the file names here.

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-23 02:57 GMT+3 , Processed in 0.082422 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list