From 01dc6b68ebc2f325cde83b5a6711f19ac78efb47 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Tue, 15 Jan 2013 13:34:16 +1100 Subject: Added comment about the syntax of the interpolations in the translations --- lib/i18n_fixes.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/i18n_fixes.rb') 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) -- cgit v1.2.3