[ 
https://issues.apache.org/jira/browse/OFBIZ-854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrian Crum updated OFBIZ-854:
------------------------------

    Attachment: rtl_poc.patch

rtl proof of concept patch. This patch is NOT intended to be part of the 
project.

Concept:

1. header.ftl sets the reading direction of each page based upon the Locale 
object's language.
2. A rtl stylesheet is created that cascades maincss.css and reverses the 
direction of its styles. Only a handful of styles are included in this patch - 
a project-worthy version would have to include all maincss.css styles.
3. A property (CommonReadingDirection) is added to all rtl translations of 
CommonUiLabels.properties. This property is set to rtl.
4. The Global Decorator checks to see if the CommonReadingDirection property is 
set to rtl. If it is, then it loads the rtl style sheet.

I don't know how to conditionally execute an action in a screen widget, so this 
patch requires a line to be uncommented to try it out. Look for the  "<!-- 
Uncomment the following line for rtl layout -->" comment in the Global 
Decorator.

That's the general process I propose. Comments are welcome.



> implementing rtl in project
> ---------------------------
>
>                 Key: OFBIZ-854
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-854
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Majid Kalkatechi
>         Attachments: header_ftl.patch, header_ftl.patch, rtl_poc.patch
>
>
> As a result of 'OFBIZ-852' issue, to use ofbiz in some languages (farsi, 
> arabic ...) that the direction of sentences is right-to-left, the first thing 
> is to make the page direction changed, this change of direction is based on 
> the locale of system, and also there is some elements that need to be 
> left-to-right even in rtl languages. So, there must be an approach to tackle 
> this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to