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 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
@@ -5,7 +5,7 @@ require 'rubygems/specification'
5
5
  require 'date'
6
6
 
7
7
  GEM = "russian"
8
- GEM_VERSION = "0.1.2"
8
+ GEM_VERSION = "0.1.3"
9
9
  AUTHOR = "Yaroslav Markin"
10
10
  EMAIL = "yaroslav@markin.net"
11
11
  HOMEPAGE = "http://github.com/yaroslav/russian/"
@@ -25,7 +25,7 @@ module Russian
25
25
  module VERSION
26
26
  MAJOR = 0
27
27
  MINOR = 1
28
- TINY = 2
28
+ TINY = 3
29
29
 
30
30
  STRING = [MAJOR, MINOR, TINY].join('.')
31
31
  end
@@ -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:
@@ -5,5 +5,12 @@ ru:
5
5
  # Used in array.to_sentence.
6
6
  support:
7
7
  array:
8
+ # Rails 2.2
8
9
  sentence_connector: "и"
9
10
  skip_last_comma: true
11
+
12
+ # Rails 2.3
13
+ words_connector: ", "
14
+ two_words_connector: " и "
15
+ last_word_connector: " и "
16
+
@@ -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.2
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-04 00:00:00 +03:00
12
+ date: 2008-12-27 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15