Sha256: f41188dc729a53877b887492f9e64d50f4ee90727a1602c22a861c9f3dc03c17

Contents?: true

Size: 340 Bytes

Versions: 10

Compression:

Stored size: 340 Bytes

Contents

# coding: utf-8

def _(str)
	kas = _kas
	return str 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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
knjappserver-0.0.16 lib/include/gettext_funcs.rb
knjappserver-0.0.15 lib/include/gettext_funcs.rb
knjappserver-0.0.14 lib/include/gettext_funcs.rb
knjappserver-0.0.13 lib/include/gettext_funcs.rb
knjappserver-0.0.12 lib/include/gettext_funcs.rb
knjappserver-0.0.11 lib/include/gettext_funcs.rb
knjappserver-0.0.10 lib/include/gettext_funcs.rb
knjappserver-0.0.9 lib/include/gettext_funcs.rb
knjappserver-0.0.8 lib/include/gettext_funcs.rb
knjappserver-0.0.6 lib/include/gettext_funcs.rb