Module | GLoc::Helpers |
In: |
lib/gloc-helpers.rb
|
These helper methods will be included in the InstanceMethods module.
# File lib/gloc-helpers.rb, line 12 12: def l_YesNo(value) l(value ? :general_text_Yes : :general_text_No) end
# File lib/gloc-helpers.rb, line 8 8: def l_datetime(date) l_strftime date, :general_fmt_datetime end
# File lib/gloc-helpers.rb, line 9 9: def l_datetime_short(date) l_strftime date, :general_fmt_datetime_short end
# File lib/gloc-helpers.rb, line 15 15: def l_lang_name(lang, display_lang=nil) 16: ll display_lang || current_language, "general_lang_#{lang}" 17: end