gettext: Ruby

 
 15.5.11 Ruby
 ------------
 
 RPMs
      ruby, ruby-gettext
 
 Ubuntu packages
      ruby, ruby-gettext
 
 File extension
      ‘rb’
 
 String syntax
      ‘"abc"’, ‘'abc'’, ‘%q/abc/’ etc., ‘%q(abc)’, ‘%q[abc]’, ‘%q{abc}’
 
 gettext shorthand
      ‘_("abc")’
 
 gettext/ngettext functions
      ‘gettext’, ‘ngettext’
 
 textdomain
      —
 
 bindtextdomain
      ‘bindtextdomain’ function
 
 setlocale
      —
 
 Prerequisite
      ‘require 'gettext'’ ‘include GetText’
 
 Use or emulate GNU gettext
      emulate
 
 Extractor
      ‘xgettext’
 
 Formatting with positions
      ‘sprintf("%2$d %1$d", x, y)’
      ‘"%{new} replaces %{old}" % {:old => oldvalue, :new => newvalue}’
 
 Portability
      fully portable
 
 po-mode marking
      —