diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/i18n_fixes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/i18n_fixes.rb b/lib/i18n_fixes.rb index 6e684d44a..dae5437b3 100644 --- a/lib/i18n_fixes.rb +++ b/lib/i18n_fixes.rb @@ -5,6 +5,10 @@ # override behaviour in fast_gettext/translation.rb # so that we can interpolate our translation strings nicely +# TODO: We could simplify a lot of this code (as in remove it) if we moved from using the {{value}} +# convention in the translation strings for interpolation to %{value}. This is apparently the newer +# convention. + def _(key, options = {}) translation = FastGettext._(key) || key gettext_interpolate(translation, options) |