diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-15 13:34:16 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-15 13:34:16 +1100 |
commit | 01dc6b68ebc2f325cde83b5a6711f19ac78efb47 (patch) | |
tree | 8a79e128c85833f40a444bb3c0dd4ea114cf215d | |
parent | dbf4bf2a6e47a9a6f9ffaaf7b01dda311ef09bd3 (diff) |
Added comment about the syntax of the interpolations in the translations
-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) |