Real RTL-theme support in locales (#6012)

Now each locale-file have direction string (ltr - left-to-right - by default).


git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4005 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Azamat Hackimov 2010-08-19 16:57:44 +00:00
parent eefb36177d
commit 57372d9d8e
45 changed files with 71 additions and 12 deletions

View File

@ -7,6 +7,7 @@
<meta name="keywords" content="issue,bug,tracker" />
<%= favicon %>
<%= stylesheet_link_tag 'application', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_include_tag :defaults %>
<%= heads_for_wiki_formatter %>
<!--[if IE]>

View File

@ -1,4 +1,5 @@
bg:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,6 +1,7 @@
#Ernad Husremovic hernad@bring.out.ba
bs:
direction: ltr
date:
formats:
default: "%d.%m.%Y"

View File

@ -1,4 +1,5 @@
ca:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,4 +1,5 @@
cs:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -3,6 +3,7 @@
# updated and upgraded to 0.9 by Morten Krogh Andersen (http://www.krogh.net)
da:
direction: ltr
date:
formats:
default: "%d.%m.%Y"

View File

@ -2,6 +2,7 @@
# by Clemens Kofler (clemens@railway.at)
de:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -2,6 +2,7 @@
# by Vaggelis Typaldos (vtypal@gmail.com), Spyros Raptis (spirosrap@gmail.com)
el:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,4 +1,5 @@
en-GB:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,4 +1,6 @@
en:
# Text direction: Left-to-Right (ltr) or Right-to-Left (rtl)
direction: ltr
date:
formats:
# Use the strftime parameters for formats.
@ -64,6 +66,11 @@ en:
other: "almost {{count}} years"
number:
# Default format for numbers
format:
separator: "."
delimiter: ""
precision: 3
human:
format:
delimiter: ""

View File

@ -141,6 +141,7 @@ es:
attributes:
# Overrides model and default messages.
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -3,6 +3,7 @@
# 2010-01-25
# Distributed under the same terms as the Redmine itself.
eu:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -2,6 +2,7 @@
# by Marko Seppä (marko.seppa@gmail.com)
fi:
direction: ltr
date:
formats:
default: "%e. %Bta %Y"

View File

@ -4,6 +4,7 @@
# contributor: Thibaut Cuvelier - Developpez.com
fr:
direction: ltr
date:
formats:
default: "%d/%m/%Y"

View File

@ -45,6 +45,7 @@ gl:
tb: "TB"
direction: ltr
date:
formats:
default: "%e/%m/%Y"

View File

@ -3,6 +3,7 @@
# Jul 2010 - Updated by Orgad Shaneh (orgads@gmail.com)
he:
direction: rtl
date:
formats:
default: "%d/%m/%Y"

View File

@ -2,6 +2,7 @@
# by Helix d.o.o. (info@helix.hr)
hr:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -6,6 +6,7 @@
# updated by Gábor Takács (taky77@gmail.com)
"hu":
direction: ltr
date:
formats:
default: "%Y.%m.%d."

View File

@ -2,6 +2,7 @@
# by Raden Prabowo (cakbowo@gmail.com)
id:
direction: ltr
date:
formats:
default: "%d-%m-%Y"

View File

@ -3,6 +3,7 @@
# by Diego Pierotto (ita.translations@tiscali.it)
it:
direction: ltr
date:
formats:
default: "%d-%m-%Y"

View File

@ -3,6 +3,7 @@
# AR error messages are basically taken from Ruby-GetText-Package. Thanks to Masao Mutoh.
ja:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -4,6 +4,7 @@
# by Yonghwan SO(please insert your email), last update at 2009-09-11
# last update at 2010-01-23 by Kihyun Yoon
ko:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -4,6 +4,7 @@
# and Sergej Jegorov sergej.jegorov@gmail.com
# and Gytis Gurklys gytis.gurklys@gmail.com
lt:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,6 +1,7 @@
# translated by Dzintars Bergs (dzintars.bergs@gmail.com)
lv:
direction: ltr
date:
formats:
default: "%d.%m.%Y"

View File

@ -1,4 +1,5 @@
mn:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,4 +1,5 @@
nl:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -3,6 +3,7 @@
support:
array:
sentence_connector: "og"
direction: ltr
date:
formats:
default: "%d.%m.%Y"

View File

@ -33,6 +33,7 @@ pl:
gb: "GB"
tb: "TB"
direction: ltr
date:
formats:
default: "%Y-%m-%d"

View File

@ -1,5 +1,6 @@
pt-BR:
# formatos de data e hora
direction: ltr
date:
formats:
default: "%d/%m/%Y"

View File

@ -6,6 +6,7 @@ pt:
sentence_connector: "e"
skip_last_comma: true
direction: ltr
date:
formats:
default: "%d/%m/%Y"

View File

@ -1,4 +1,5 @@
ro:
direction: ltr
date:
formats:
default: "%d-%m-%Y"

View File

@ -11,6 +11,7 @@
# была возможность минимальной локализации приложения на русский язык.
ru:
direction: ltr
date:
formats:
default: "%d.%m.%Y"

View File

@ -1,4 +1,5 @@
sk:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,4 +1,5 @@
sl:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,6 +1,7 @@
# Serbian translations for Redmine
# by Vladimir Medarović (vlada@medarovic.com)
sr-YU:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,6 +1,7 @@
# Serbian translations for Redmine
# by Vladimir Medarović (vlada@medarovic.com)
sr:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -131,6 +131,7 @@ sv:
not_same_project: "tillhör inte samma projekt"
circular_dependency: "Denna relation skulle skapa ett cirkulärt beroende"
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -1,4 +1,5 @@
th:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -5,6 +5,7 @@ tr:
locale:
native_name: Türkçe
address_separator: " "
direction: ltr
date:
formats:
default: "%d.%m.%Y"

View File

@ -1,4 +1,5 @@
uk:
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -140,6 +140,7 @@ vi:
not_same_project: "không thuộc cùng dự án"
circular_dependency: "quan hệ có thể gây ra lặp vô tận"
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -3,6 +3,7 @@
# See http://github.com/svenfuchs/rails-i18n/ for details.
"zh-TW":
direction: ltr
date:
formats:
# Use the strftime parameters for formats.

View File

@ -2,6 +2,7 @@
# by tsechingho (http://github.com/tsechingho)
zh:
direction: ltr
date:
formats:
default: "%Y-%m-%d"

View File

@ -1,5 +1,3 @@
@import url(../../alternate/stylesheets/application.css);
body, #wrapper { direction: rtl;}
#quick-search { float: left; }
@ -20,11 +18,23 @@ body, #wrapper { direction: rtl;}
float: right;
margin-left: auto;
}
.tabular p { clear: right; }
.tabular p
{
clear: right;
}
.tabular label.block { text-align: right; }
.icon { background-position: 100% 40%; padding-right: 20px; padding-left: 0px; }
div#activity dt, #search-results dt { background-position: 100% 50%; padding-right: 20px; padding-left: 0px; }
.icon
{
background-position: 100% 40%;
padding-right: 20px;
padding-left: 0px;
}
div#activity dt, #search-results dt
{
background-position: 100% 50%;
padding-right: 20px;
padding-left: 0px;
}
#content .tabs ul li { float: right; }
#content .tabs ul { padding-left: auto; padding-right: 1em; }
table.progress { float: right; }
@ -48,3 +58,9 @@ table.list td.buttons a { padding-right: 20px; }
div#issue-changesets { float: left; margin-right: 1em; margin-left: 0 }
#activity dt, .journal { clear: right; }
.journal-link { float: left; }
div.wiki pre { direction: ltr; }
#context-menu li.folder ul { left:auto; right:168px; }
#context-menu li.folder>ul { left:auto; right:148px; }
#context-menu li a.submenu { background:url("../images/bullet_arrow_left.png") left no-repeat; }

View File

@ -1,6 +0,0 @@
@import url(../../../stylesheets/context_menu.css);
#context-menu li.folder ul { left:auto; right:168px; }
#context-menu li.folder>ul { left:auto; right:148px; }
#context-menu li a.submenu { background:url("../../../images/bullet_arrow_left.png") left no-repeat; }