load-gettext.rb

Path: lib/rbot/load-gettext.rb
Last Update: Mon Jul 05 17:14:25 +0200 2010
GetTextVersionError String\n[lib/rbot/botuser.rb\nlib/rbot/core/utils/extends.rb\nlib/rbot/irc.rb\nlib/rbot/ircsocket.rb\nlib/rbot/load-gettext.rb] Exception GetText dot/f_28.png

Load gettext module and provide fallback in case of failure

Required files

gettext/version   gettext   stringio  

Methods

N_   Nn_   _   bindtextdomain_to   n_   s_  

Included Modules

Comparable GetText

Public Instance methods

[Source]

     # File lib/rbot/load-gettext.rb, line 128
128:   def N_(s)
129:     s
130:   end

[Source]

     # File lib/rbot/load-gettext.rb, line 136
136:   def Nn_(s_single, s_plural)
137:     n_(s_single, s_plural)
138:   end

dummy functions that return msg_id without translation

[Source]

     # File lib/rbot/load-gettext.rb, line 124
124:   def _(s)
125:     s
126:   end

[Source]

     # File lib/rbot/load-gettext.rb, line 144
144:   def bindtextdomain_to(*args)
145:   end

[Source]

     # File lib/rbot/load-gettext.rb, line 132
132:   def n_(s_single, s_plural, n)
133:     n > 1 ? s_plural : s_single
134:   end

[Source]

     # File lib/rbot/load-gettext.rb, line 140
140:   def s_(*args)
141:     args[0]
142:   end

[Validate]