air18n 0.1.21 → 0.1.22
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.
- data/lib/air18n/class_methods.rb +10 -1
- data/lib/air18n/version.rb +1 -1
- metadata +2 -2
data/lib/air18n/class_methods.rb
CHANGED
@@ -51,7 +51,7 @@ module Air18n
|
|
51
51
|
raise TypeError if count.is_a?(String)
|
52
52
|
default_text = "%{smart_count} #{singular}#{SmartCount::DELIMITER}%{smart_count} #{plural || singular.pluralize}"
|
53
53
|
key = "shared.pluralize.#{singular}"
|
54
|
-
translate(key, :default => default_text, :smart_count => count)
|
54
|
+
translate(key, :default => default_text, :smart_count => count, :suppress_ct => true)
|
55
55
|
end
|
56
56
|
|
57
57
|
# For a locale (like :en, :en-GB, :pt-PT), returns the "language"
|
@@ -196,6 +196,15 @@ module Air18n
|
|
196
196
|
@air18n_backend.check_for_new_translations(I18n.full_locale)
|
197
197
|
end
|
198
198
|
|
199
|
+
# Reloads translations for the current locale.
|
200
|
+
def reload_translations
|
201
|
+
reload_translations_in(I18n.full_locale)
|
202
|
+
end
|
203
|
+
|
204
|
+
def reload_translations_in(locale)
|
205
|
+
@air18n_backend.reload_translations([locale])
|
206
|
+
end
|
207
|
+
|
199
208
|
def rescreenshot(routes_context)
|
200
209
|
@air18n_backend.rescreenshot(routes_context)
|
201
210
|
end
|
data/lib/air18n/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: air18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2012-10-
|
16
|
+
date: 2012-10-28 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: i18n
|