russian 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/Rakefile +1 -1
- data/lib/russian.rb +1 -1
- data/lib/russian/locale/actionview.yml +7 -0
- data/lib/russian/locale/activesupport.yml +7 -0
- data/spec/locale_spec.rb +11 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 0.1.3 - 27.12.2008
|
2
|
+
|
3
|
+
* Add support.array.words_connector/two_words_connector/last_word_connector (Array#to_sentence) (Rails Edge)
|
4
|
+
* Add datetime.prompts translations (Rails Edge)
|
5
|
+
|
6
|
+
* Добавлены переводы для Array#to_sentence (Rails Edge)
|
7
|
+
* Добавлены переводы для datetime.prompts (Rails Edge)
|
8
|
+
|
1
9
|
=== 0.1.2 - 4.11.2008
|
2
10
|
|
3
11
|
Fixed I18n.load_path ordering, translations shipped with russian gem will no longer overwrite your own translations (thanks Dmitrij Smalko for bugreport).
|
data/Rakefile
CHANGED
data/lib/russian.rb
CHANGED
@@ -108,6 +108,13 @@ ru:
|
|
108
108
|
few: "больше {{count}} лет"
|
109
109
|
many: "больше {{count}} лет"
|
110
110
|
other: "больше {{count}} лет"
|
111
|
+
prompts:
|
112
|
+
year: "Год"
|
113
|
+
month: "Месяц"
|
114
|
+
day: "День"
|
115
|
+
hour: "Часов"
|
116
|
+
minute: "Минут"
|
117
|
+
second: "Секунд"
|
111
118
|
|
112
119
|
# Используется в хелпере error_messages_for
|
113
120
|
activerecord:
|
data/spec/locale_spec.rb
CHANGED
@@ -61,6 +61,13 @@ describe Russian, "loading locales" do
|
|
61
61
|
datetime.distance_in_words.about_x_years
|
62
62
|
datetime.distance_in_words.over_x_years
|
63
63
|
|
64
|
+
datetime.prompts.year
|
65
|
+
datetime.prompts.month
|
66
|
+
datetime.prompts.day
|
67
|
+
datetime.prompts.hour
|
68
|
+
datetime.prompts.minute
|
69
|
+
datetime.prompts.second
|
70
|
+
|
64
71
|
activerecord.errors.template.header
|
65
72
|
activerecord.errors.template.body
|
66
73
|
).each do |key|
|
@@ -98,6 +105,10 @@ describe Russian, "loading locales" do
|
|
98
105
|
%w(
|
99
106
|
support.array.sentence_connector
|
100
107
|
support.array.skip_last_comma
|
108
|
+
|
109
|
+
support.array.words_connector
|
110
|
+
support.array.two_words_connector
|
111
|
+
support.array.last_word_connector
|
101
112
|
).each do |key|
|
102
113
|
it "should define '#{key}' in activesupport translations" do
|
103
114
|
lookup(key).should_not be_nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: russian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Markin
|
@@ -9,7 +9,7 @@ autorequire: russian
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-27 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|