module HammerCLI::I18n::Debug
include this module to see translations highlighted
Constants
- DL
- DR
Public Instance Methods
_(key)
click to toggle source
slightly modified copy of fast_gettext _ method
# File lib/hammer_cli/i18n.rb, line 15 def _(key) _wrap { FastGettext::Translation._(key) } end
_wrap() { || ... }
click to toggle source
# File lib/hammer_cli/i18n.rb, line 34 def _wrap(&block) result = yield DL + result + DR unless result.nil? end
n_(*keys)
click to toggle source
slightly modified copy of fast_gettext n_ method
# File lib/hammer_cli/i18n.rb, line 20 def n_(*keys) _wrap { FastGettext::Translation.n_(*keys) } end
ns_(*args, &block)
click to toggle source
slightly modified copy of fast_gettext ns_ method
# File lib/hammer_cli/i18n.rb, line 30 def ns_(*args, &block) _wrap { FastGettext::Translation.ns_(*args, &block) } end
s_(key, separator=nil, &block)
click to toggle source
slightly modified copy of fast_gettext s_ method
# File lib/hammer_cli/i18n.rb, line 25 def s_(key, separator=nil, &block) _wrap { FastGettext::Translation.s_(key, separator, &block) } end