Sha256: fc96d52fd854a905620b45d0d72bab4452db7749b9eafd1444897a9e4e658217
Contents?: true
Size: 396 Bytes
Versions: 3
Compression:
Stored size: 396 Bytes
Contents
#coding: utf-8 def _(str) kas = _kas session = _session return str.to_s.encode("utf-8") if !kas or !session session[:locale] = kas.config[:locale_default] if !session[:locale] and kas.config[:locale_default] raise "No locale set for session and ':locale_default' not set in config." if !session[:locale] str = kas.gettext.trans(session[:locale], str) return str.to_s.encode("utf-8") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
knjappserver-0.0.19 | lib/include/gettext_funcs.rb |
knjappserver-0.0.18 | lib/include/gettext_funcs.rb |
knjappserver-0.0.17 | lib/include/gettext_funcs.rb |