public
Description: Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff
Homepage: http://rails-i18n.org
Clone URL: git://github.com/svenfuchs/rails-i18n.git
jerome (author)
Sun Jun 21 13:56:42 -0700 2009
svenfuchs (committer)
Sun Jul 05 11:49:50 -0700 2009
commit  ef70f3a5cf561de973430ebb9af32d2ccdd609c2
tree    6168eb26ed71017b43cf3c034394a09f5f638e87
parent  8875383b85d7ffc3c32b29cb030181fbb08ff855
rails-i18n / rails / locale / cz.rb
100644 166 lines (159 sloc) 5.228 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Czech translations for Ruby on Rails
# by Karel Minařík (karmi@karmi.cz)
 
{ :'cz' => {
 
    # ActiveSupport
    :support => {
      :array => {
        :two_words_connector => ' a ',
        :sentence_connector => 'a',
        :skip_last_comma => true
      }
    },
 
    # Date
    :date => {
      :formats => {
        :default => "%d. %m. %Y",
        :short => "%d %b",
        :long => "%d. %B %Y",
      },
      :day_names => %w{Neděle Pondělí Úterý Středa Čtvrtek Pátek Sobota},
      :abbr_day_names => %w{Ne Po Út St Čt Pá So},
      :month_names => %w{~ Leden Únor Březen Duben Květen Červen Červenec Srpen Září Říjen Listopad Prosinec},
      :abbr_month_names => %w{~ Led Úno Bře Dub Kvě Čvn Čvc Srp Zář Říj Lis Pro},
      :order => [:day, :month, :year]
    },
 
    # Time
    :time => {
      :formats => {
        :default => "%a %d. %B %Y %H:%M %z",
        :short => "%d. %m. %H:%M",
        :long => "%A %d. %B %Y %H:%M",
      },
      :am => 'am',
      :pm => 'pm'
    },
 
    # Numbers
    :number => {
      :format => {
        :precision => 3,
        :separator => '.',
        :delimiter => ','
      },
      :currency => {
        :format => {
          :unit => 'Kč',
          :precision => 2,
          :format => '%n %u',
          :separator => ",",
          :delimiter => " ",
        }
      },
      :human => {
        :format => {
          :precision => 1,
          :delimiter => ''
        },
       :storage_units => {
         :format => "%n %u",
         :units => {
           :byte => "B",
           :kb => "KB",
           :mb => "MB",
           :gb => "GB",
           :tb => "TB",
         }
       }
      },
      :percentage => {
        :format => {
          :delimiter => ''
        }
      },
      :precision => {
        :format => {
          :delimiter => ''
        }
      }
    },
 
    # Distance of time ... helper
    # NOTE: In Czech language, these values are different for the past and for the future. Preference has been given to past here.
    :datetime => {
      :distance_in_words => {
        :half_a_minute => 'půl minutou',
        :less_than_x_seconds => {
          :one => 'asi před sekundou',
          :other => 'asi před {{count}} sekundami'
        },
        :x_seconds => {
          :one => 'sekundou',
          :other => '{{count}} sekundami'
        },
        :less_than_x_minutes => {
          :one => 'před necelou minutou',
          :other => 'před ani ne {{count}} minutami'
        },
        :x_minutes => {
          :one => 'minutou',
          :other => '{{count}} minutami'
        },
        :about_x_hours => {
          :one => 'asi hodinou',
          :other => 'asi {{count}} hodinami'
        },
        :x_days => {
          :one => '24 hodinami',
          :other => '{{count}} dny'
        },
        :about_x_months => {
          :one => 'asi měsícem',
          :other => 'asi {{count}} měsíci'
        },
        :x_months => {
          :one => 'měsícem',
          :other => '{{count}} měsíci'
        },
        :about_x_years => {
          :one => 'asi rokem',
          :other => 'asi {{count}} roky'
        },
        :over_x_years => {
          :one => 'více než před rokem',
          :other => 'více než {{count}} roky'
        }
      }
    },
 
    # ActiveRecord validation messages
    :activerecord => {
      :errors => {
        :messages => {
          :inclusion => "není v seznamu povolených hodnot",
          :exclusion => "je vyhrazeno pro jiný účel",
          :invalid => "není platná hodnota",
          :confirmation => "nebylo potvrzeno",
          :accepted => "musí být potvrzeno",
          :empty => "nesmí být prázdný/é",
          :blank => "je povinná položka", # alternate formulation: "is required"
          :too_long => "je příliš dlouhá/ý (max. {{count}} znaků)",
          :too_short => "je příliš krátký/á (min. {{count}} znaků)",
          :wrong_length => "nemá správnou délku (očekáváno {{count}} znaků)",
          :taken => "již databáze obsahuje",
          :not_a_number => "není číslo",
          :greater_than => "musí být větší než {{count}}",
          :greater_than_or_equal_to => "musí být větší nebo rovno {{count}}",
          :equal_to => "musí být rovno {{count}}",
          :less_than => "musí být méně než {{count}}",
          :less_than_or_equal_to => "musí být méně nebo rovno {{count}}",
          :odd => "musí být liché číslo",
          :even => "musí být sudé číslo"
        },
        :template => {
          :header => {
            :one => "Při ukládání objektu {{model}} došlo k chybám a nebylo jej možné uložit",
            :other => "Při ukládání objektu {{model}} došlo ke {{count}} chybám a nebylo možné jej uložit"
          },
          :body => "Následující pole obsahují chybně vyplněné údaje:"
        }
      }
    }
  }
}