rs_russian 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -5
- data/README.textile +3 -2
- data/lib/russian/action_view_ext/helpers/date_helper.rb +9 -9
- data/lib/russian/active_model_ext/custom_error_message.rb +8 -8
- data/lib/russian/locale/actionview.yml +8 -8
- data/lib/russian/locale/activemodel.yml +1 -1
- data/lib/russian/locale/activerecord.yml +3 -3
- data/lib/russian/locale/activesupport.yml +4 -4
- data/lib/russian/locale/datetime.rb +1 -1
- data/lib/russian/locale/datetime.yml +5 -5
- data/lib/russian/locale/pluralization.rb +3 -3
- data/lib/russian/locale/transliterator.rb +1 -1
- data/lib/russian/russian_rails.rb +1 -1
- data/lib/russian/transliteration.rb +2 -2
- data/lib/russian/version.rb +1 -7
- data/lib/russian.rb +3 -3
- data/russian.gemspec +2 -7
- data/spec/i18n/locale/datetime_spec.rb +1 -1
- data/spec/i18n/locale/pluralization_spec.rb +2 -2
- data/spec/locale_spec.rb +6 -6
- data/spec/spec_helper.rb +1 -1
- data/spec/transliteration_spec.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43369029ba89e38f1dbbb7935458168a5d0b00af
|
4
|
+
data.tar.gz: 4b7d262046be622e08cbf2f5e8e81f80934b28cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4af6626c6a11e7fc54fae87ce3a4af46d2cd82e0e65634edc9ba155ff9f9193ee2f6226be9ee24b857b2389d417b1984af9625c3371f1e9800d86e0b98a09964
|
7
|
+
data.tar.gz: 9424472a884dce3649a022f1d6b211edc59da70079203783e2394c16b559a8992145035953db4e17a9cb881d03cd3445c798d16c4e093061922a6193c6cfddd5
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rs_russian (0.7.
|
4
|
+
rs_russian (0.7.1)
|
5
5
|
i18n (~> 0.6.0)
|
6
6
|
unicode (~> 0.4.4)
|
7
7
|
|
@@ -15,7 +15,6 @@ GEM
|
|
15
15
|
thread_safe (~> 0.1)
|
16
16
|
tzinfo (~> 0.3.37)
|
17
17
|
atomic (1.1.14)
|
18
|
-
atomic (1.1.14-java)
|
19
18
|
diff-lcs (1.2.4)
|
20
19
|
i18n (0.6.5)
|
21
20
|
minitest (4.7.5)
|
@@ -31,13 +30,10 @@ GEM
|
|
31
30
|
rspec-mocks (2.14.4)
|
32
31
|
thread_safe (0.1.3)
|
33
32
|
atomic
|
34
|
-
thread_safe (0.1.3-java)
|
35
|
-
atomic
|
36
33
|
tzinfo (0.3.38)
|
37
34
|
unicode (0.4.4)
|
38
35
|
|
39
36
|
PLATFORMS
|
40
|
-
java
|
41
37
|
ruby
|
42
38
|
|
43
39
|
DEPENDENCIES
|
data/README.textile
CHANGED
@@ -4,6 +4,7 @@ h1. rs_russian
|
|
4
4
|
h3. Это форк с вытянутыми pull-реквестами, которые мы хотели использовать.
|
5
5
|
|
6
6
|
Нравится -- пользуйтесь, не нравится -- идите на страницу оригинала: "http://github.com/yaroslav/russian/":http://github.com/yaroslav/russian/
|
7
|
+
Jruby и Rubinius не тестируются и скорее всего не работают т.к. нам они не нужны.
|
7
8
|
|
8
9
|
Поддержка русского языка для Ruby и Rails при помощи библиотеки I18n.
|
9
10
|
|
@@ -87,7 +88,7 @@ I18n.locale = :ru
|
|
87
88
|
|
88
89
|
После загрузки Russian можно использовать все стандартные функции библиотеки I18n, пользоваться измененным функционалом для лучшей поддержки русского языка, или использовать хелперы модуля Russian для еще более простой работы с русским языком.
|
89
90
|
|
90
|
-
"Документация I18n":http://rdoc.info/github/svenfuchs/i18n/master
|
91
|
+
"Документация I18n":http://rdoc.info/github/svenfuchs/i18n/master
|
91
92
|
|
92
93
|
"Гид по интернационализации Ruby on Rails":http://guides.rubyonrails.org/i18n.html.
|
93
94
|
|
@@ -137,7 +138,7 @@ h3. Валидация
|
|
137
138
|
@Соглашение об использовании нужно принять соглашение@
|
138
139
|
|
139
140
|
если вы указали перевод для имени атрибута.
|
140
|
-
|
141
|
+
|
141
142
|
Но
|
142
143
|
|
143
144
|
@validates_acceptance_of :accepted_terms, :message => '^Нужно принять соглашение'@
|
@@ -1,20 +1,20 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
-
# Заменяет хелпер Rails <tt>select_month</tt> и метод <tt>translated_month_names</tt>
|
3
|
+
# Заменяет хелпер Rails <tt>select_month</tt> и метод <tt>translated_month_names</tt>
|
4
4
|
# для поддержки функционала "отдельностоящих имен месяцев".
|
5
5
|
#
|
6
6
|
# Теперь можно использовать и полные, и сокращенные название месяцев в двух вариантах -- контекстном
|
7
7
|
# (по умолчанию) и отдельностоящем (если в текущем языке есть соответствующие переводы).
|
8
|
-
# Теперь хелперы поддерживают ключ <tt>:use_standalone_month_names</tt>, хелпер <tt>select_month</tt>
|
8
|
+
# Теперь хелперы поддерживают ключ <tt>:use_standalone_month_names</tt>, хелпер <tt>select_month</tt>
|
9
9
|
# устанавливает его по умолчанию.
|
10
10
|
# Отдельностоящие имена месяцев также используютс когда указан ключ <tt>:discard_day</tt>.
|
11
11
|
#
|
12
12
|
#
|
13
13
|
# Replaces Rails <tt>select_month</tt> helper and <tt>translated_month_names</tt> private method to provide
|
14
|
-
# "standalone month names" feature.
|
14
|
+
# "standalone month names" feature.
|
15
15
|
#
|
16
16
|
# It is now possible to use both abbreviated and full month names in two variants (if current locale provides them).
|
17
|
-
# All date helpers support <tt>:use_standalone_month_names</tt> key now, <tt>select_month</tt> helper sets
|
17
|
+
# All date helpers support <tt>:use_standalone_month_names</tt> key now, <tt>select_month</tt> helper sets
|
18
18
|
# it to true by default.
|
19
19
|
# Standalone month names are also used when <tt>:discard_day</tt> key is provided.
|
20
20
|
if defined?(ActionView::Helpers::DateTimeSelector)
|
@@ -27,7 +27,7 @@ if defined?(ActionView::Helpers::DateTimeSelector)
|
|
27
27
|
# instead of names -- set the <tt>:use_month_numbers</tt> key in +options+ to true for this to happen. If you
|
28
28
|
# want both numbers and names, set the <tt>:add_month_numbers</tt> key in +options+ to true. If you would prefer
|
29
29
|
# to show month names as abbreviations, set the <tt>:use_short_month</tt> key in +options+ to true. If you want
|
30
|
-
# to use your own month names, set the <tt>:use_month_names</tt> key in +options+ to an array of 12 month names.
|
30
|
+
# to use your own month names, set the <tt>:use_month_names</tt> key in +options+ to an array of 12 month names.
|
31
31
|
# You can also choose if you want to use i18n standalone month names or default month names -- you can
|
32
32
|
# force standalone month names usage by using <tt>:use_standalone_month_names</tt> key.
|
33
33
|
# Override the field name using the <tt>:field_name</tt> option, 'month' by default.
|
@@ -66,7 +66,7 @@ if defined?(ActionView::Helpers::DateTimeSelector)
|
|
66
66
|
DateTimeSelector.new(date, options.merge(:use_standalone_month_names => true), html_options).select_month
|
67
67
|
end
|
68
68
|
end
|
69
|
-
|
69
|
+
|
70
70
|
class DateTimeSelector #:nodoc:
|
71
71
|
private
|
72
72
|
# Returns translated month names
|
@@ -108,10 +108,10 @@ if defined?(ActionView::Helpers::DateTimeSelector)
|
|
108
108
|
key = :'date.month_names'
|
109
109
|
end
|
110
110
|
end
|
111
|
-
|
111
|
+
|
112
112
|
I18n.translate(key, :locale => @options[:locale])
|
113
113
|
end
|
114
|
-
|
114
|
+
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
if defined?(ActiveModel::Errors)
|
4
4
|
module ActiveModel
|
@@ -13,19 +13,19 @@ if defined?(ActiveModel::Errors)
|
|
13
13
|
# теперь не имеют префикса с названием атрибута если в сообщении об ошибке первым символом указан "^".
|
14
14
|
#
|
15
15
|
# Так, например,
|
16
|
-
#
|
16
|
+
#
|
17
17
|
# validates_acceptance_of :accepted_terms, :message => 'нужно принять соглашение'
|
18
|
-
#
|
18
|
+
#
|
19
19
|
# даст сообщение
|
20
|
-
#
|
20
|
+
#
|
21
21
|
# Accepted terms нужно принять соглашение
|
22
|
-
#
|
22
|
+
#
|
23
23
|
# однако,
|
24
|
-
#
|
24
|
+
#
|
25
25
|
# validates_acceptance_of :accepted_terms, :message => '^Нужно принять соглашение'
|
26
|
-
#
|
26
|
+
#
|
27
27
|
# даст сообщение
|
28
|
-
#
|
28
|
+
#
|
29
29
|
# Нужно принять соглашение
|
30
30
|
#
|
31
31
|
#
|
@@ -14,7 +14,7 @@ ru:
|
|
14
14
|
precision: 3
|
15
15
|
significant: false
|
16
16
|
strip_insignificant_zeros: false
|
17
|
-
|
17
|
+
|
18
18
|
# Used in number_to_currency()
|
19
19
|
currency:
|
20
20
|
format:
|
@@ -30,14 +30,14 @@ ru:
|
|
30
30
|
precision: 2
|
31
31
|
significant: false
|
32
32
|
strip_insignificant_zeros: false
|
33
|
-
|
33
|
+
|
34
34
|
# Used in number_to_percentage()
|
35
35
|
percentage:
|
36
36
|
format:
|
37
37
|
# These three are to override number.format and are optional
|
38
|
-
# separator:
|
38
|
+
# separator:
|
39
39
|
delimiter: ""
|
40
|
-
|
40
|
+
|
41
41
|
# Used in number_to_precision()
|
42
42
|
precision:
|
43
43
|
format:
|
@@ -45,20 +45,20 @@ ru:
|
|
45
45
|
# separator:
|
46
46
|
delimiter: ""
|
47
47
|
# precision:
|
48
|
-
|
48
|
+
|
49
49
|
# Used in number_to_human_size()
|
50
50
|
human:
|
51
51
|
format:
|
52
52
|
# These three are to override number.format and are optional
|
53
|
-
# separator:
|
53
|
+
# separator:
|
54
54
|
delimiter: ""
|
55
55
|
precision: 1
|
56
56
|
significant: false
|
57
57
|
strip_insignificant_zeros: false
|
58
|
-
|
58
|
+
|
59
59
|
# Rails 2.2
|
60
60
|
# storage_units: [байт, КБ, МБ, ГБ, ТБ]
|
61
|
-
|
61
|
+
|
62
62
|
# Rails 2.3+
|
63
63
|
storage_units:
|
64
64
|
# Storage units output formatting.
|
@@ -13,7 +13,7 @@ ru:
|
|
13
13
|
# The values :model, :attribute and :value are always available for interpolation
|
14
14
|
# The value :count is available when applicable. Can be used for pluralization.
|
15
15
|
#
|
16
|
-
# You can use ^-prefixed messages as well to get rid of human attribute name appearing
|
16
|
+
# You can use ^-prefixed messages as well to get rid of human attribute name appearing
|
17
17
|
# before your message in validation messages.
|
18
18
|
messages:
|
19
19
|
inclusion: "имеет непредусмотренное значение"
|
@@ -82,7 +82,7 @@ ru:
|
|
82
82
|
#
|
83
83
|
#
|
84
84
|
# Overrides default messages
|
85
|
-
|
85
|
+
|
86
86
|
# Перевод названий атрибутов моделей. Используется в Model.human_attribute_name(attribute).
|
87
87
|
#attributes:
|
88
88
|
# Например,
|
@@ -92,4 +92,4 @@ ru:
|
|
92
92
|
#
|
93
93
|
#
|
94
94
|
# Overrides model and default messages.
|
95
|
-
|
95
|
+
|
@@ -1,16 +1,16 @@
|
|
1
1
|
ru:
|
2
2
|
# Используется в array.to_sentence
|
3
|
-
#
|
4
|
-
#
|
3
|
+
#
|
4
|
+
#
|
5
5
|
# Used in array.to_sentence.
|
6
6
|
support:
|
7
7
|
array:
|
8
8
|
# Rails 2.2
|
9
9
|
sentence_connector: "и"
|
10
10
|
skip_last_comma: true
|
11
|
-
|
11
|
+
|
12
12
|
# Rails 2.3
|
13
13
|
words_connector: ", "
|
14
14
|
two_words_connector: " и "
|
15
15
|
last_word_connector: " и "
|
16
|
-
|
16
|
+
|
@@ -12,7 +12,7 @@ ru:
|
|
12
12
|
default: "%d.%m.%Y"
|
13
13
|
short: "%d %b"
|
14
14
|
long: "%d %B %Y"
|
15
|
-
|
15
|
+
|
16
16
|
# Названия дней недели -- контекстные и отдельностоящие
|
17
17
|
common_day_names: [воскресенье, понедельник, вторник, среда, четверг, пятница, суббота]
|
18
18
|
standalone_day_names: [Воскресенье, Понедельник, Вторник, Среда, Четверг, Пятница, Суббота]
|
@@ -21,19 +21,19 @@ ru:
|
|
21
21
|
|
22
22
|
# Названия месяцев -- сокращенные и полные, плюс отдельностоящие.
|
23
23
|
# Не забудьте nil в начале массиве (~)
|
24
|
-
#
|
24
|
+
#
|
25
25
|
#
|
26
26
|
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
27
27
|
common_month_names: [~, января, февраля, марта, апреля, мая, июня, июля, августа, сентября, октября, ноября, декабря]
|
28
28
|
standalone_month_names: [~, Январь, Февраль, Март, Апрель, Май, Июнь, Июль, Август, Сентябрь, Октябрь, Ноябрь, Декабрь]
|
29
29
|
common_abbr_month_names: [~, янв, фев, мар, апр, мая, июн, июл, авг, сен, окт, ноя, дек]
|
30
30
|
standalone_abbr_month_names: [~, янв, фев, мар, апр, май, июн, июл, авг, сен, окт, ноя, дек]
|
31
|
-
|
31
|
+
|
32
32
|
# Порядок компонентов даты для хелперов
|
33
33
|
#
|
34
34
|
#
|
35
35
|
# Used in date_select and datime_select.
|
36
|
-
order:
|
36
|
+
order:
|
37
37
|
- :day
|
38
38
|
- :month
|
39
39
|
- :year
|
@@ -44,7 +44,7 @@ ru:
|
|
44
44
|
default: "%a, %d %b %Y, %H:%M:%S %z"
|
45
45
|
short: "%d %b, %H:%M"
|
46
46
|
long: "%d %B %Y, %H:%M"
|
47
|
-
|
47
|
+
|
48
48
|
# am/pm решено перевести как "утра/вечера" :)
|
49
49
|
am: "утра"
|
50
50
|
pm: "вечера"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
# Правило плюрализации для русского языка, взято из CLDR, http://unicode.org/cldr/
|
4
4
|
#
|
@@ -19,8 +19,8 @@
|
|
19
19
|
:ru => {
|
20
20
|
:'i18n' => {
|
21
21
|
:plural => {
|
22
|
-
:rule => lambda { |n|
|
23
|
-
n % 10 == 1 && n % 100 != 11 ? :one : [2, 3, 4].include?(n % 10) && ![12, 13, 14].include?(n % 100) ? :few : n % 10 == 0 || [5, 6, 7, 8, 9].include?(n % 10) || [11, 12, 13, 14].include?(n % 100) ? :many : :other
|
22
|
+
:rule => lambda { |n|
|
23
|
+
n % 10 == 1 && n % 100 != 11 ? :one : [2, 3, 4].include?(n % 10) && ![12, 13, 14].include?(n % 100) ? :few : n % 10 == 0 || [5, 6, 7, 8, 9].include?(n % 10) || [11, 12, 13, 14].include?(n % 100) ? :many : :other
|
24
24
|
}
|
25
25
|
}
|
26
26
|
}
|
data/lib/russian/version.rb
CHANGED
data/lib/russian.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# coding: utf-8
|
1
|
+
# coding: utf-8
|
2
2
|
|
3
3
|
$KCODE = 'u' if RUBY_VERSION < "1.9"
|
4
4
|
|
@@ -85,10 +85,10 @@ module Russian
|
|
85
85
|
alias :translit :transliterate
|
86
86
|
|
87
87
|
protected
|
88
|
-
|
88
|
+
|
89
89
|
def check_strftime_format(object, format)
|
90
90
|
%w(A a B b).each do |key|
|
91
|
-
if format =~ /%\^#{key}/
|
91
|
+
if format =~ /%\^#{key}/
|
92
92
|
if RUBY_ENGINE == "jruby"
|
93
93
|
format = format.gsub("%^#{key}", UnicodeUtils.upcase(localize(object, { :format => "%#{key}" } )))
|
94
94
|
else
|
data/russian.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'russian/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "rs_russian"
|
8
|
-
spec.version = Russian::VERSION
|
8
|
+
spec.version = Russian::VERSION
|
9
9
|
spec.authors = ["glebtv", "Yaroslav Markin"]
|
10
10
|
spec.email = ["glebtv@gmail.com", "yaroslav@markin.net"]
|
11
11
|
spec.description = %q{Russian language support for Ruby and Rails}
|
@@ -19,13 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency 'i18n', '~> 0.6.0'
|
22
|
+
spec.add_dependency 'unicode', '~> 0.4.4'
|
22
23
|
|
23
|
-
unless RUBY_PLATFORM =~ /java/
|
24
|
-
spec.add_dependency 'unicode', '~> 0.4.4'
|
25
|
-
else
|
26
|
-
spec.add_dependency 'unicode_utils', '~> 1.4.0'
|
27
|
-
end
|
28
|
-
|
29
24
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
30
25
|
spec.add_development_dependency 'rake'
|
31
26
|
spec.add_development_dependency 'rspec'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
4
4
|
|
@@ -10,7 +10,7 @@ describe I18n, "Russian pluralization" do
|
|
10
10
|
end
|
11
11
|
@backend = I18n.backend
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
it "should pluralize correctly" do
|
15
15
|
@backend.send(:pluralize, :'ru', @hash, 1).should == 'one'
|
16
16
|
@backend.send(:pluralize, :'ru', @hash, 2).should == 'few'
|
data/spec/locale_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
require File.dirname(__FILE__) + '/spec_helper'
|
4
4
|
|
@@ -6,7 +6,7 @@ describe Russian, "loading locales" do
|
|
6
6
|
before(:all) do
|
7
7
|
Russian.init_i18n
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
%w(
|
11
11
|
date.formats.default
|
12
12
|
date.formats.short
|
@@ -19,18 +19,18 @@ describe Russian, "loading locales" do
|
|
19
19
|
date.abbr_month_names
|
20
20
|
date.standalone_abbr_month_names
|
21
21
|
date.order
|
22
|
-
|
22
|
+
|
23
23
|
time.formats.default
|
24
24
|
time.formats.short
|
25
25
|
time.formats.long
|
26
26
|
time.am
|
27
27
|
time.pm
|
28
|
-
).each do |key|
|
28
|
+
).each do |key|
|
29
29
|
it "should define '#{key}' in datetime translations" do
|
30
30
|
lookup(key).should_not be_nil
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
it "should load pluralization rules" do
|
35
35
|
lookup(:'i18n.plural.rule').should_not be_nil
|
36
36
|
lookup(:'i18n.plural.rule').is_a?(Proc).should be_true
|
@@ -40,7 +40,7 @@ describe Russian, "loading locales" do
|
|
40
40
|
lookup(:'i18n.transliterate.rule').should_not be_nil
|
41
41
|
lookup(:'i18n.transliterate.rule').is_a?(Proc).should be_true
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
def lookup(*args)
|
45
45
|
I18n.backend.send(:lookup, Russian.locale, *args)
|
46
46
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
require File.dirname(__FILE__) + '/spec_helper'
|
4
4
|
|
@@ -27,12 +27,12 @@ describe Russian do
|
|
27
27
|
t("Ш").should == "SH"
|
28
28
|
t("ц").should == "ts"
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
it "should properly transliterate mixed russian-english strings" do
|
32
|
-
t("Это кусок строки русских букв v peremeshku s latinizey i амперсандом (pozor!) & something").should ==
|
33
|
-
"Eto kusok stroki russkih bukv v peremeshku s latinizey i ampersandom (pozor!) & something"
|
32
|
+
t("Это кусок строки русских букв v peremeshku s latinizey i амперсандом (pozor!) & something").should ==
|
33
|
+
"Eto kusok stroki russkih bukv v peremeshku s latinizey i ampersandom (pozor!) & something"
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
it "should properly transliterate mixed case chars in a string" do
|
37
37
|
t("НЕВЕРОЯТНОЕ УПУЩЕНИЕ").should == "NEVEROYATNOE UPUSCHENIE"
|
38
38
|
t("Невероятное Упущение").should == "Neveroyatnoe Upuschenie"
|