Project

General

Profile

Patch #6012 » rtl.patch

Adds RTL layout support and updates all locale files accordingly - Ebrahim Mohammadi, 2010-08-08 00:38

View differences:

app/views/layouts/base.rhtml
7 7
<meta name="keywords" content="issue,bug,tracker" />
8 8
<%= favicon %>
9 9
<%= stylesheet_link_tag 'application', :media => 'all' %>
10
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
10 11
<%= javascript_include_tag :defaults %>
11 12
<%= heads_for_wiki_formatter %>
12 13
<!--[if IE]>
config/locales/bg.yml
1 1
bg:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/bs.yml
1 1
#Ernad Husremovic hernad@bring.out.ba
2 2

  
3 3
bs:
4
  direction: ltr
4 5
  date:
5 6
    formats:
6 7
      default: "%d.%m.%Y"
config/locales/ca.yml
1 1
ca:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/cs.yml
1 1
cs:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/da.yml
3 3
# updated and upgraded to 0.9 by Morten Krogh Andersen (http://www.krogh.net)
4 4

  
5 5
da:
6
  direction: ltr
6 7
  date:
7 8
    formats:
8 9
      default: "%d.%m.%Y"
config/locales/de.yml
2 2
# by Clemens Kofler (clemens@railway.at)
3 3

  
4 4
de:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      # Use the strftime parameters for formats.
config/locales/el.yml
2 2
# by Vaggelis Typaldos (vtypal@gmail.com),  Spyros Raptis (spirosrap@gmail.com)
3 3

  
4 4
el:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      # Use the strftime parameters for formats.
config/locales/en-GB.yml
1 1
en-GB:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/en.yml
1 1
en:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/es.yml
141 141
      attributes:
142 142
        # Overrides model and default messages.
143 143

  
144
  direction: ltr
144 145
  date:
145 146
    formats:
146 147
      # Use the strftime parameters for formats.
config/locales/eu.yml
3 3
# 2010-01-25
4 4
# Distributed under the same terms as the Redmine itself.
5 5
eu:
6
  direction: ltr
6 7
  date:
7 8
    formats:
8 9
      # Use the strftime parameters for formats.
config/locales/fi.yml
2 2
# by Marko Seppä (marko.seppa@gmail.com)
3 3

  
4 4
fi:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      default: "%e. %Bta %Y"
config/locales/fr.yml
4 4
# contributor: Thibaut Cuvelier - Developpez.com
5 5

  
6 6
fr:
7
  direction: ltr
7 8
  date:
8 9
    formats:
9 10
      default: "%d/%m/%Y"
config/locales/gl.yml
45 45
          tb: "TB"
46 46
  
47 47
  
48
  direction: ltr
48 49
  date:
49 50
    formats:
50 51
      default:  "%e/%m/%Y"
config/locales/he.yml
3 3
# Jul 2010 - Updated by Orgad Shaneh (orgads@gmail.com)
4 4

  
5 5
he:
6
  direction: rtl
6 7
  date:
7 8
    formats:
8 9
      default: "%d/%m/%Y"
config/locales/hr.yml
2 2
# by Helix d.o.o. (info@helix.hr)
3 3

  
4 4
hr:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      # Use the strftime parameters for formats.
config/locales/hu.yml
6 6
# updated by Gábor Takács (taky77@gmail.com)
7 7

  
8 8
"hu":
9
  direction: ltr
9 10
  date:
10 11
    formats:
11 12
      default: "%Y.%m.%d."
config/locales/id.yml
2 2
# by Raden Prabowo (cakbowo@gmail.com)
3 3

  
4 4
id:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      default: "%d-%m-%Y"
config/locales/it.yml
2 2
# by Claudio Poli (masterkain@gmail.com)
3 3

  
4 4
it:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      default: "%d-%m-%Y"
config/locales/ja.yml
3 3
# AR error messages are basically taken from Ruby-GetText-Package. Thanks to Masao Mutoh.
4 4

  
5 5
ja:
6
  direction: ltr
6 7
  date:
7 8
    formats:
8 9
      # Use the strftime parameters for formats.
config/locales/ko.yml
4 4
# by Yonghwan SO(please insert your email), last update at 2009-09-11
5 5
# last update at 2010-01-23 by Kihyun Yoon
6 6
ko:
7
  direction: ltr
7 8
  date:
8 9
    formats:
9 10
      # Use the strftime parameters for formats.
config/locales/lt.yml
4 4
#                      and Sergej Jegorov sergej.jegorov@gmail.com
5 5
#					   and Gytis Gurklys gytis.gurklys@gmail.com
6 6
lt:
7
  direction: ltr
7 8
  date:
8 9
    formats:
9 10
      # Use the strftime parameters for formats.
config/locales/lv.yml
1 1
# translated by Dzintars Bergs (dzintars.bergs@gmail.com)
2 2

  
3 3
lv:
4
  direction: ltr
4 5
  date:
5 6
    formats:
6 7
      default: "%d.%m.%Y"
config/locales/mn.yml
1 1
mn:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/nl.yml
1 1
nl:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/no.yml
3 3
  support:
4 4
    array:
5 5
      sentence_connector: "og"
6
  direction: ltr
6 7
  date:
7 8
    formats:
8 9
      default: "%d.%m.%Y"
config/locales/pl.yml
33 33
          gb: "GB"
34 34
          tb: "TB"
35 35

  
36
  direction: ltr
36 37
  date:
37 38
    formats:
38 39
      default: "%Y-%m-%d"
config/locales/pt-BR.yml
1 1
pt-BR:
2 2
  # formatos de data e hora
3
  direction: ltr
3 4
  date:
4 5
    formats:
5 6
      default: "%d/%m/%Y"
config/locales/pt.yml
6 6
      sentence_connector: "e"
7 7
      skip_last_comma: true
8 8
    
9
  direction: ltr
9 10
  date:
10 11
    formats:
11 12
      default: "%d/%m/%Y"
config/locales/ro.yml
1 1
ro:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      default: "%d-%m-%Y"
config/locales/ru.yml
11 11
# была возможность минимальной локализации приложения на русский язык.
12 12

  
13 13
ru:
14
  direction: ltr
14 15
  date:
15 16
    formats:
16 17
      default: "%d.%m.%Y"
config/locales/sk.yml
1 1
sk:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/sl.yml
1 1
sl:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/sr-CY.yml
1 1
# Serbian translations for Redmine
2 2
# by Vladimir Medarović (vlada@medarovic.com)
3 3
sr-CY:
4
  direction: ltr
4 5
  date:
5 6
    formats:
6 7
      # Use the strftime parameters for formats.
config/locales/sr.yml
1 1
# Serbian translations for Redmine
2 2
# by Vladimir Medarović (vlada@medarovic.com)
3 3
sr:
4
  direction: ltr
4 5
  date:
5 6
    formats:
6 7
      # Use the strftime parameters for formats.
config/locales/sv.yml
131 131
        not_same_project: "tillhör inte samma projekt"
132 132
        circular_dependency: "Denna relation skulle skapa ett cirkulärt beroende"
133 133

  
134
  direction: ltr
134 135
  date:
135 136
    formats:
136 137
      # Use the strftime parameters for formats.
config/locales/th.yml
1 1
th:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/tr.yml
5 5
  locale:
6 6
    native_name: Türkçe
7 7
    address_separator: " "
8
  direction: ltr
8 9
  date:
9 10
    formats:
10 11
      default: "%d.%m.%Y"
config/locales/uk.yml
1 1
uk:
2
  direction: ltr
2 3
  date:
3 4
    formats:
4 5
      # Use the strftime parameters for formats.
config/locales/vi.yml
140 140
        not_same_project: "không thuộc cùng dự án"
141 141
        circular_dependency: "quan hệ có thể gây ra lặp vô tận"
142 142

  
143
  direction: ltr
143 144
  date:
144 145
    formats:
145 146
      # Use the strftime parameters for formats.
config/locales/zh-TW.yml
3 3
# See http://github.com/svenfuchs/rails-i18n/ for details.
4 4

  
5 5
"zh-TW":
6
  direction: ltr
6 7
  date:
7 8
    formats:
8 9
      # Use the strftime parameters for formats.
config/locales/zh.yml
2 2
# by tsechingho (http://github.com/tsechingho)
3 3

  
4 4
zh:
5
  direction: ltr
5 6
  date:
6 7
    formats:
7 8
      default: "%Y-%m-%d"
public/stylesheets/rtl.css
1
body, #wrapper { direction: rtl;}
2

  
3
#quick-search { float: left; }
4
#main-menu { margin-left: -500px; left: auto; right: 6px; margin-right: 0px;}
5
#main-menu li { float: right; }
6
#top-menu ul { float: right; }
7
#account { float: left; }
8
#top-menu #loggedas { float: left; }
9
#top-menu li { float: right; }
10
.tabular label.floating
11
{
12
	margin-right: 0;
13
	margin-left: auto;
14
	text-align: right;
15
}
16
.tabular label 
17
{
18
	float: right;
19
	margin-left: auto;
20
}
21
.tabular p { clear: right; }
22
.tabular label.block { text-align: right; }
23

  
24
.icon { background-position: 100% 40%; padding-right: 20px; padding-left: 0px; }
25
div#activity dt, #search-results dt { background-position: 100% 50%; padding-right: 20px; padding-left: 0px; }
26
#content .tabs ul li { float: right; }
27
#content .tabs ul { padding-left: auto; padding-right: 1em; }
28
table.progress { float: right; }
29
.contextual { float: left; }
30
.icon22 { background-position: 100% 40%; padding-right: 26px; padding-left: auto; }
31
h3, .wiki h2 { padding: 10px 2px 1px 0; }
32
.tooltip span.tip { text-align: right; }
33
tr.issue td.subject { text-align: right; }
34
tr.time-entry td.subject, tr.time-entry td.comments { text-align: right; }
35
#sidebar { float: left; }
36
#main.nosidebar #content { border-width: 1px; border-style: solid; border-color: #D7D7D7 #BBBBBB #BBBBBB #D7D7D7;}
37
.tabular.settings label { margin-left: auto; }
38
.splitcontentleft { float: right; }
39
.splitcontentright { float: left; }
40
p.progress-info { clear: right; }
41
table.list td.buttons a { padding-right: 20px; }
42
.filecontent { direction: ltr; }
43
.entries { direction: ltr; }
44
.changeset-changes { direction: ltr; padding-left: 2em }
45
.changesets { direction: ltr; }
46
div#issue-changesets { float: left; margin-right: 1em; margin-left: 0 }
47
#activity dt, .journal { clear: right; }
48
.journal-link { float: left; }
49

  
50
#context-menu li.folder ul { left:auto; right:168px; }
51
#context-menu li.folder>ul { left:auto; right:148px; }
52

  
53
#context-menu li a.submenu { background:url("../images/bullet_arrow_left.png") left no-repeat; }
(5-5/9)