gettext: Smalltalk

1 
1 15.5.10 GNU Smalltalk
1 ---------------------
1 
1 RPMs
1      smalltalk
1 
1 File extension
1      ‘st’
1 
1 String syntax
1      ‘'abc'’
1 
1 gettext shorthand
1      ‘NLS ? 'abc'’
1 
1 gettext/ngettext functions
1      ‘LcMessagesDomain>>#at:’, ‘LcMessagesDomain>>#at:plural:with:’
1 
1 textdomain
1      ‘LcMessages>>#domain:localeDirectory:’ (returns a
1      ‘LcMessagesDomain’ object).
1      Example: ‘I18N Locale default messages domain: 'gettext'
1      localeDirectory: /usr/local/share/locale'’
1 
1 bindtextdomain
1      ‘LcMessages>>#domain:localeDirectory:’, see above.
1 
1 setlocale
1      Automatic if you use ‘I18N Locale default’.
1 
1 Prerequisite
1      ‘PackageLoader fileInPackage: 'I18N'!’
1 
1 Use or emulate GNU gettext
1      emulate
1 
1 Extractor
1      ‘xgettext’
1 
1 Formatting with positions
1      ‘'%1 %2' bindWith: 'Hello' with: 'world'’
1 
1 Portability
1      fully portable
1 
1 po-mode marking
1      —
1 
1    An example is available in the ‘examples’ directory:
1 ‘hello-smalltalk’.
1