class KCatalog |
|
|
This class abstracts a gettext message catalog. It will take care of needed gettext bindings. See also KLocale |
|
Constructor.
name - The name of the catalog language - The language of this catalog |
|
Copy constructor. |
|
Finds the locale directory for the given catalog in given language.
name - The name of the catalog language - The language of this catalog Returns The locale directory if found, QString() otherwise. |
|
Returns the language of the catalog. Returns The language of the catalog |
|
Returns locale directory of the catalog. Returns The locale directory of the catalog. |
|
Returns the name of the catalog. Returns The name of the catalog |
|
Retrieves a translation of the specified message id. Do not pass 0 or "" strings as message id.
msgid - The message id Returns The translated message, or msgid if not found |
|
Retrieves a translation of the specified message id with given context. Do not pass 0 or "" strings as message id or context.
msgctxt - The context msgid - The message id Returns The translated message, or msgid if not found |
|
Retrieves a proper plural form of translation for the specified English singular and plural message ids. Do not pass 0 or "" strings as message ids.
msgid - The singular message id msgid_plural - The plural message id n - The number to which the plural form applies Returns The translated message, or proper English form if not found |
|
Retrieves a proper plural form of translation for the specified English singular and plural message ids, with given context. Do not pass 0 or "" strings as message ids or context.
msgctxt - The context msgid - The singular message id msgid_plural - The plural message id n - The number to which the plural form applies Returns The translated message, or proper English form if not found |
|
Retrieves a translation of the specified message id, returning empty if the translation was not found. Do not pass 0 or "" strings as message id.
msgid - The message id Returns The translated message, or QString() if not found |
|
Retrieves a translation of the specified message id with given context, returning empty if the translation was not found. Do not pass 0 or "" strings as message id or context.
msgctxt - The context msgid - The message id Returns The translated message, or QString() if not found |
|
Retrieves a proper plural form of translation for the specified English singular and plural message ids, returning empty if the translation was not found. Do not pass 0 or "" strings as message ids.
msgid - The singular message id msgid_plural - The plural message id n - The number to which the plural form applies Returns The translated message, or QString() if not found |
|
Retrieves a proper plural form of translation for the specified English singular and plural message ids, with given context, returning empty if the translation was not found. Do not pass 0 or "" strings as message ids or context.
msgctxt - The context msgid - The singular message id msgid_plural - The plural message id n - The number to which the plural form applies Returns The translated message, or QString() if not found |