Project

General

Profile

Actions

Patch #6012

closed

RTL layout

Added by Orgad Shaneh over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
2010-08-01
Due date:
% Done:

100%

Estimated time:

Description

Hello,

Following #5972 I thought of a better way to implement RTL support.

Instead of using a theme, which affects all users (unless installing theme changer, see #5993), I moved the css file to the standard stylesheet directory, named rtl.css, and added a link tag if current language is Hebrew (suppose Arabic support will be added, it will need to be added to this patch as well).

Another downside that is handled with this method is the dependency between the language and the selected theme - the rtl theme uses 'alternate' as its base theme, so if the admin wants to use it, he must either use the alternate theme or manually edit the css file to include some other theme.

With this new method, this dependency is removed, and any theme should work with it.

rtl.css should be added to public/stylesheets, and the rtl theme may be removed


Files

rtl-layout.patch (359 Bytes) rtl-layout.patch This should be applied to app/views/layouts/base.rhtml Orgad Shaneh, 2010-08-01 14:00
rtl.css (1.96 KB) rtl.css This is combined from application.css and context-menu.css from rtl theme Orgad Shaneh, 2010-08-01 14:00
rtl-layout.patch (343 Bytes) rtl-layout.patch Use l(:direction) instead of hardcoding language Orgad Shaneh, 2010-08-01 14:29
he.yml (42.4 KB) he.yml Updated yml file that includes direction Orgad Shaneh, 2010-08-01 14:29
rtl.patch (14.9 KB) rtl.patch Adds RTL layout support and updates all locale files accordingly Ebrahim Mohammadi, 2010-08-08 00:38
rtl.css (2.01 KB) rtl.css Orgad Shaneh, 2010-08-08 07:56
he.yml (42.4 KB) he.yml Orgad Shaneh, 2010-08-08 07:56
context_menu_rtl.patch (2.27 KB) context_menu_rtl.patch Azamat Hackimov, 2010-08-19 20:27
rtl-error.png (6.37 KB) rtl-error.png Eric Davis, 2010-08-21 00:13

Related issues

Has duplicate Redmine - Patch #962: Hebrew translation and RTL LayoutClosed2008-03-30

Actions
Has duplicate Redmine - Patch #2318: RTL ThemeClosed2008-12-11

Actions
Actions

Also available in: Atom PDF