Closed (fixed)
Project:
Localization server
Version:
6.x-2.0-beta2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 May 2010 at 17:45 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ahwebd commentedpatch:
Comment #2
ahwebd commentedPlease remove the patch above (it includes another change not concerned here)
Here's the correct patch:
Comment #3
gábor hojtsyCan we also mark the LTR items with LTR in the original styles, so we remember to fix both places when needed? Any other testers? :)
Comment #5
ahwebd commentedHello,
Here's the new patch, it includes :
Two new files for rtl : "l10n_community-rtl.css" , "editor-rtl.css"
Patch for "editor.css" : adding "direction:ltr" to "td.source" selector (translation source is in English -generally- so it should stay ltr not following user lang direction)
Patch for "l10n_community.css" : adding "direction:ltr" to selector "#edit-release" (Release name should stay ltr when active language is rtl (if not, it'll be displayed incorrectly ex: "6.x-2.0-beta2" will be dispayed as "x-2.0-beta2.6"))
Two new images attached below, to be added to "l10n_community/images" directory
Regards
Comment #6
ahwebd commentedHere's the work-flow for maintaining rtl css :
ex:
ex:
ex:
ex:
examples:
If only one is set the other should be reset to default value (0 for paddings and margins) if required
ex:
ex:
ex:
Other considerations might include changing the "font-family" if it exists in the original css.
Items that should not follow the user language direction and stay always LTR should have direction:ltr in the original css and not be considered for the above modifications
ex: codes in Latin characters, programming code...
Regards
Comment #7
droplet commented@ahwebd,
I don't understand the language, is it make sense ?? --> "العربية Translate to" and I see padding on the right of select list, not sure if it is buggy. (attached image)
Comment #8
ahwebd commentedHi droplet,
That's because not all strings are translated yet, that sentence will be all in Arabic when its translation has been performed and imported to the site
That's another problem of IE, thanks for reporting it, Display is correct in FF and chrome.
I'll take care of this and submit new patch
The padding was added cos I needed the release select list always LTR (display problems if it is rtl) and wanted its "text-align" to be "right", this caused text to collide with the down arrow of the select list
Comment #9
droplet commented@ahwebd,
I'm tested in Windows.
IE 8, FF 3.6, Chrome 6 => wrong
IE 6&7, Opera 10.53, Safari 4 windows => correct
I run an online test, OSX safari & FF are display correct.
can it just add "direction:rtl" to select list ??
** remind: I just test in above demo, didn't test the patch :)
Comment #10
ahwebd commentednew patch
(rtl images attached above should also be included)
demo here http://translate.web-dz.info/ar
Comment #11
ahwebd commentedComment #13
droplet commentedhttp://translate.web-dz.info/ar looks fine.
I see another problem:
select button sometimes on left, sometimes on right
Comment #14
ahwebd commentedComment #15
ahwebd commentedHi droplet,
This is not a problem, it is done on purpose, it was mentioned above:
Comment #16
ahwebd commentedComment #17
ahwebd commentedComment #18
gábor hojtsyTo be ported to where?
Comment #19
ahwebd commentedHi,
Sorry my fault,
Can you commit the rtl css/images to the project
Comment #20
ahwebd commentedGábor ??
Comment #21
gábor hojtsyOk, I've asked that you mark the original declarations with /* LTR */ comments in the CSS files, so we can maintain the RTL files more easily. I've also updated some styles where changes occurred since the last patch. I hope it looks all OK. Finally, removed some lines which were duplicates in the RTL CSS and included a fix for #829626: Border-radius should be on all corners for completed projects., since that was RTL related too.
Comment #23
gábor hojtsyAdding improvements in #950452: Improve RTL support, rolled out to localize.drupal.org.