(gettext.info)Smalltalk


Next: Java Prev: Scheme Up: List of Programming Languages
Enter node , (file) or (file)node

15.5.10 GNU Smalltalk
---------------------

RPMs
     smalltalk

File extension
     ‘st’

String syntax
     ‘'abc'’

gettext shorthand
     ‘NLS ? 'abc'’

gettext/ngettext functions
     ‘LcMessagesDomain>>#at:’, ‘LcMessagesDomain>>#at:plural:with:’

textdomain
     ‘LcMessages>>#domain:localeDirectory:’ (returns a
     ‘LcMessagesDomain’ object).
     Example: ‘I18N Locale default messages domain: 'gettext'
     localeDirectory: /usr/local/share/locale'’

bindtextdomain
     ‘LcMessages>>#domain:localeDirectory:’, see above.

setlocale
     Automatic if you use ‘I18N Locale default’.

Prerequisite
     ‘PackageLoader fileInPackage: 'I18N'!’

Use or emulate GNU gettext
     emulate

Extractor
     ‘xgettext’

Formatting with positions
     ‘'%1 %2' bindWith: 'Hello' with: 'world'’

Portability
     fully portable

po-mode marking
     —

   An example is available in the ‘examples’ directory:
‘hello-smalltalk’.


automatically generated by info2www version 1.2.2.9