r18n-core 2.1.4 → 2.1.5
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/ChangeLog.md +4 -1
- data/lib/r18n-core/i18n.rb +1 -1
- data/lib/r18n-core/locale.rb +1 -1
- data/lib/r18n-core/translation.rb +1 -1
- data/lib/r18n-core/version.rb +1 -1
- data/locales/az.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd9a66e4eaa844bf54da00c46f9cee94cc17aeae
|
|
4
|
+
data.tar.gz: 96922df7f0f8e8a2a1aaf0780209fc8cc31a65f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76c32b637fdd52c47d95c4c7231ed1de6cd917bcc975a3b05ef2a459a488a9633729f641222f90fe8e14e3eb0d98c0e6d796e24a2565beca76496f91cc675a26
|
|
7
|
+
data.tar.gz: ea6dd26bae7c951de5507ad81976677bbf44d37449f0ea70e6e38eb29f5d68997beed374acddbdf46eaf5e702b4a234bffab8f43ed9dc0f7bd3341a648d84d47
|
data/ChangeLog.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
## 2.1.5 (මාතර)
|
|
2
|
+
* Fix Ruby 2.4 support (by Alexander Popov)
|
|
3
|
+
|
|
1
4
|
## 2.1.4 (Bakı)
|
|
2
5
|
* Add Azerbaijani locale (by Adil Aliyev).
|
|
3
6
|
|
|
@@ -91,7 +94,7 @@
|
|
|
91
94
|
* Add `Translation#inspect` to easy debug.
|
|
92
95
|
* Return translation, when pluralization filter didn’t get count.
|
|
93
96
|
* Set R18n backend on Rails plugin init, to use it in console.
|
|
94
|
-
* Allow to use
|
|
97
|
+
* Allow to use Integer in translation keys.
|
|
95
98
|
|
|
96
99
|
### 1.0.1 (Phuket Town)
|
|
97
100
|
* Fix translation reloading in Rails and Sinatra.
|
data/lib/r18n-core/i18n.rb
CHANGED
|
@@ -252,7 +252,7 @@ module R18n
|
|
|
252
252
|
end
|
|
253
253
|
|
|
254
254
|
# Convert +object+ to String, according to the rules of the current locale.
|
|
255
|
-
# It support
|
|
255
|
+
# It support Integer, Float, Time, Date and DateTime.
|
|
256
256
|
#
|
|
257
257
|
# For time classes you can set +format+ in standard +strftime+ form,
|
|
258
258
|
# <tt>:full</tt> (“01 Jule, 2009”), <tt>:human</tt> (“yesterday”),
|
data/lib/r18n-core/locale.rb
CHANGED
|
@@ -141,7 +141,7 @@ module R18n
|
|
|
141
141
|
"Locale #{code} (#{title})"
|
|
142
142
|
end
|
|
143
143
|
|
|
144
|
-
# Convert +object+ to String. It support
|
|
144
|
+
# Convert +object+ to String. It support Integer, Float, Time, Date
|
|
145
145
|
# and DateTime.
|
|
146
146
|
#
|
|
147
147
|
# For time classes you can set +format+ in standard +strftime+ form,
|
|
@@ -145,7 +145,7 @@ module R18n
|
|
|
145
145
|
# Translation can contain variable part. Just set is as <tt>%1</tt>,
|
|
146
146
|
# <tt>%2</tt>, etc in translations file and set values in next +params+.
|
|
147
147
|
def [](name, *params)
|
|
148
|
-
name = name.to_s if not name.is_a? String and not name.is_a?
|
|
148
|
+
name = name.to_s if not name.is_a? String and not name.is_a? Integer
|
|
149
149
|
value = @data[name]
|
|
150
150
|
case value
|
|
151
151
|
when TranslatedString
|
data/lib/r18n-core/version.rb
CHANGED
data/locales/az.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: r18n-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrey Sitnik
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |2
|
|
14
14
|
R18n is a i18n tool to translate your Ruby application.
|
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
171
171
|
version: '0'
|
|
172
172
|
requirements: []
|
|
173
173
|
rubyforge_project:
|
|
174
|
-
rubygems_version: 2.5.
|
|
174
|
+
rubygems_version: 2.5.2
|
|
175
175
|
signing_key:
|
|
176
176
|
specification_version: 4
|
|
177
177
|
summary: I18n tool to translate your Ruby application.
|