www.delorie.com/gnu/docs/gettext/gettext_224.html   search  
 
Buy GNU books!


GNU gettext utilities

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

13.5.9 GNU Smalltalk

RPMs
smalltalk

File extension
st

String syntax
"abc"

gettext shorthand
NLS? "abc"
self? "abc"

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

textdomain
LcMessages>>#? (returns a LcMessagesDomain object).
Example: Locale default messages ? 'gettext'

bindtextdomain
LcMessages>>#domain:directory: (returns a LcMessagesDomain object)

setlocale
You can obtain any Locale object from Locale class methods such as #fromString: or #default.
Example: Locale default messages gives the LcMessages object for the default locale.

Prerequisite
The gettext code is contained in the `I18N' package.

Use or emulate GNU gettext
emulate

Extractor
---

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

Portability
fully portable

po-mode marking
---


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003