Next: , Previous: , Up: Iconv/I18N packages   [Index]


5.12 I18N.LcMessagesDomain

Defined in namespace I18N
Superclass: I18N.LocaleData
Category: i18n-Messages

This object is an abstract superclass for message domains (catalogs). It contains methods to create instances of its subclasses, but they are commonly used only by LcMessages.

Translations are accessed using either #at: or the shortcut binary messages ‘?’. This way, common idioms to access translated strings will be

string := NLS? ’abc’. string := self? ’abc’.

(in the first case NLS is a class variable, in the second the receiver implements #? through delegation) which is only five or six characters longer than the traditional

string := ’abc’.

(cfr. the _("abc") idiom used by GNU gettext)