air18n 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Air18n
2
- VERSION = "0.1.21"
2
+ VERSION = "0.1.22"
3
3
  end
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.21
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-22 00:00:00.000000000 Z
16
+ date: 2012-10-28 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: i18n