]> git.openstreetmap.org Git - rails.git/blob - vendor/rails-locales/cs.rb
Display the right title for friends' changesets
[rails.git] / vendor / rails-locales / cs.rb
1 # Czech translations for Ruby on Rails
2 # by Karel Minařík (karmi@karmi.cz)
3 # contributors:
4 #  - Vít Krchov - http://github.com/vita - Rails 3 update
5
6 unless defined?(CzechLocaleI18n::ERROR_MESSAGES)
7   module CzechLocaleI18n
8     ERROR_MESSAGES = {
9       :inclusion           => "není v seznamu povolených hodnot",
10       :exclusion           => "je vyhrazeno pro jiný účel",
11       :invalid             => "není platná hodnota",
12       :confirmation        => "nebylo potvrzeno",
13       :accepted            => "musí být potvrzeno",
14       :empty               => "nesmí být prázdný/á/é",
15       :blank               => "je povinná položka", # alternate formulation: "is required"
16       :too_long            => "je příliš dlouhý/á/é (max. %{count} znaků)",
17       :too_short           => "je příliš krátký/á/é (min. %{count} znaků)",
18       :wrong_length        => "nemá správnou délku (očekáváno %{count} znaků)",
19       :not_a_number        => "není číslo",
20       :greater_than        => "musí být větší než %{count}",
21       :greater_than_or_equal_to => "musí být větší nebo rovno %{count}",
22       :equal_to            => "musí být rovno %{count}",
23       :less_than           => "musí být méně než %{count}",
24       :less_than_or_equal_to    => "musí být méně nebo rovno %{count}",
25       :odd                 => "musí být liché číslo",
26       :even                => "musí být sudé číslo",
27       :not_an_integer       => "musí být celé číslo"
28     }
29   end
30 end
31
32 { :'cs' => {
33
34     # ActiveSupport
35     :support => {
36       :array => {
37         :two_words_connector => ' a ',
38         :last_word_connector => ' a ',
39         :words_connector => ', '
40       },
41       :select => {
42         :prompt => 'Prosím vyberte si',
43       }
44     },
45
46     # Date
47     :date => {
48       :formats => {
49         :default => "%d. %m. %Y",
50         :short   => "%d %b",
51         :long    => "%d. %B %Y",
52       },
53       :day_names         => %w{Neděle Pondělí Úterý Středa Čtvrtek Pátek Sobota},
54       :abbr_day_names    => %w{Ne Po Út St Čt Pá So},
55       :month_names       => %w{~ Leden Únor Březen Duben Květen Červen Červenec Srpen Září Říjen Listopad Prosinec},
56       :abbr_month_names  => %w{~ Led Úno Bře Dub Kvě Čvn Čvc Srp Zář Říj Lis Pro},
57       :order             => [:day, :month, :year]
58     },
59
60     # Time
61     :time => {
62       :formats => {
63         :default => "%a %d. %B %Y %H:%M %z",
64         :short   => "%d. %m. %H:%M",
65         :long    => "%A %d. %B %Y %H:%M",
66       },
67       :am => 'am',
68       :pm => 'pm'
69     },
70
71     # Numbers
72     :number => {
73       :format => {
74         :precision => 3,
75         :separator => '.',
76         :delimiter => ',',
77         :significant => false,
78         :strip_insignificant_zeros => false
79       },
80       :currency => {
81         :format => {
82           :unit => 'Kč',
83           :precision => 2,
84           :format    => '%n %u',
85           :negative_format => '-%n %u',
86           :separator => ",",
87           :delimiter => " ",
88           :significant => false,
89           :strip_insignificant_zeros => false
90         }
91       },
92       :human => {
93         :format => {
94           :precision => 1,
95           :delimiter => '',
96           :significant => false,
97           :strip_insignificant_zeros => false
98         },
99        :storage_units => {
100          :format => "%n %u",
101          :units => {
102            :byte => "B",
103            :kb   => "KB",
104            :mb   => "MB",
105            :gb   => "GB",
106            :tb   => "TB",
107          }
108        },
109        :decimal_units => {
110          :format => "%n %u",
111          :units => {
112            :unit => "",
113            :thousand => "Tisíc",
114            :million => "Milion",
115            :billion => "Miliarda",
116            :trillion => "Bilion",
117            :quadrillion => "Kvadrilion"
118          }
119        }
120       },
121       :percentage => {
122         :format => {
123           :delimiter => ''
124         }
125       },
126       :precision => {
127         :format => {
128           :delimiter => ''
129         }
130       }
131     },
132
133     # Distance of time ... helper
134     # NOTE: In Czech language, these values are different for the past and for the future. Preference has been given to past here.
135     :datetime => {
136       :prompts => {
137         :second => "Sekunda",
138         :minute => "Minuta",
139         :hour => "Hodina",
140         :day => "Den",
141         :month => "Měsíc",
142         :year => "Rok"
143       },
144       :distance_in_words => {
145         :half_a_minute => 'půl minutou',
146         :less_than_x_seconds => {
147           :one => 'necelou sekundou',
148           :other => 'ani ne %{count} sekundami'
149         },
150         :x_seconds => {
151           :one => 'sekundou',
152           :other => '%{count} sekundami'
153         },
154         :less_than_x_minutes => {
155           :one => 'necelou minutou',
156           :other => 'ani ne %{count} minutami'
157         },
158         :x_minutes => {
159           :one => 'minutou',
160           :other => '%{count} minutami'
161         },
162         :about_x_hours => {
163           :one => 'asi hodinou',
164           :other => 'asi %{count} hodinami'
165         },
166         :x_days => {
167           :one => '24 hodinami',
168           :other => '%{count} dny'
169         },
170         :about_x_months => {
171           :one => 'asi měsícem',
172           :other => 'asi %{count} měsíci'
173         },
174         :x_months => {
175           :one => 'měsícem',
176           :other => '%{count} měsíci'
177         },
178         :about_x_years => {
179           :one => 'asi rokem',
180           :other => 'asi %{count} roky'
181         },
182         :over_x_years => {
183           :one => 'více než rokem',
184           :other => 'více než %{count} roky'
185         },
186         :almost_x_years => {
187           :one => 'téměř rokem',
188           :other => 'téměř %{count} roky'
189         }
190       }
191     },
192
193     :helpers => {
194       :select => {
195         :prompt => "Prosím vyberte si"
196       },
197
198       :submit => {
199         :create => "Vytvořit %{model}",
200         :update => "Aktualizovat %{model}",
201         :submit => "Uložit %{model}"
202       }
203     },
204
205     :errors => {
206       :format => "%{attribute} %{message}",
207       :messages => CzechLocaleI18n::ERROR_MESSAGES
208     },
209
210     # ActiveRecord validation messages
211     :activerecord => {
212       :errors => {
213         :messages => {
214           :taken               => "již databáze obsahuje",
215           :record_invalid      => "Validace je neúspešná: %{errors}"
216         }.merge(CzechLocaleI18n::ERROR_MESSAGES),
217         :template => {
218           :header   => {
219             :one => "Při ukládání objektu %{model} došlo k chybám a nebylo jej možné uložit",
220             :other => "Při ukládání objektu %{model} došlo ke %{count} chybám a nebylo možné jej uložit"
221           },
222           :body  => "Následující pole obsahují chybně vyplněné údaje:"
223         },
224         :full_messages => {
225           :format => "%{attribute} %{message}"
226         }
227       }
228     }
229   }
230 }