org.kde.koala

Class KCatalogue

public class KCatalogue extends Object implements QtSupport

This class abstracts a gettext message catalog. It will take care of opening the file and reading the catalog.

See Also: KLocale

UNKNOWN: This class abstracts a gettext message catalog.

Constructor Summary
protected KCatalogue(Class dummy)
KCatalogue(String name, String language)
Constructor.
KCatalogue(String name)
KCatalogue()
KCatalogue(KCatalogue rhs)
Copy constructor.
Method Summary
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
Stringlanguage()
Returns the language of the catalog.
Stringname()
Returns the name of the catalog.
intpluralType()
Returns the plural type for the catalog.
voidsetPluralType(int pluralType)
Sets the plural type for the catalog.
Stringtranslate(String msgid)
Retrieves a translation of the specified message id.

Constructor Detail

KCatalogue

protected KCatalogue(Class dummy)

KCatalogue

public KCatalogue(String name, String language)
Constructor.

Parameters: name The name of the catalog language The language of this catalog

UNKNOWN: Constructor.

KCatalogue

public KCatalogue(String name)

KCatalogue

public KCatalogue()

KCatalogue

public KCatalogue(KCatalogue rhs)
Copy constructor.

UNKNOWN: Copy constructor.

Method Detail

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

language

public String language()
Returns the language of the catalog.

Returns: The language of the catalog

UNKNOWN: Returns the language of the catalog.

name

public String name()
Returns the name of the catalog.

Returns: The name of the catalog

UNKNOWN: Returns the name of the catalog.

pluralType

public int pluralType()
Returns the plural type for the catalog. This type is based on the language of the catalog and is cached for performance.

Returns: The plural type for the catalog

UNKNOWN: Returns the plural type for the catalog.

setPluralType

public void setPluralType(int pluralType)
Sets the plural type for the catalog. The caller has probably looked it up in a kdelibs.mo-catalog for the appropriate language

Returns: The plural type for the catalog

UNKNOWN: Sets the plural type for the catalog.

translate

public String translate(String msgid)
Retrieves a translation of the specified message id. Do not pass 0 or "" strings as message ids.

Parameters: msgid The message id

Returns: The translated message, in utf8 encoding, or 0 if not found

UNKNOWN: Retrieves a translation of the specified message id.