KCatalogue Class Reference
This class abstracts a gettext message catalog. More...
#include <kcatalogue.h>
Public Member Functions | |
KCatalogue (const QString &name=QString::null, const QString &language=QString::null) | |
KCatalogue (const KCatalogue &rhs) | |
KCatalogue & | operator= (const KCatalogue &rhs) |
virtual | ~KCatalogue () |
QString | name () const |
QString | language () const |
int | pluralType () const |
void | setPluralType (int pluralType) |
const char * | translate (const char *msgid) const |
Detailed Description
This class abstracts a gettext message catalog.It will take care of opening the file and reading the catalog.
- See also:
- KLocale
Definition at line 37 of file kcatalogue.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 55 of file kcatalogue.cpp. |
|
Copy constructor.
Definition at line 73 of file kcatalogue.cpp. |
|
Destructor.
Definition at line 89 of file kcatalogue.cpp. |
Member Function Documentation
|
Assignment operator.
Definition at line 79 of file kcatalogue.cpp. References d, fileName(), language(), name(), and pluralType(). |
|
Returns the name of the catalog.
Definition at line 96 of file kcatalogue.cpp. Referenced by operator=(). |
|
Returns the language of the catalog.
Definition at line 101 of file kcatalogue.cpp. Referenced by operator=(). |
|
Returns the plural type for the catalog. This type is based on the language of the catalog and is cached for performance.
Definition at line 111 of file kcatalogue.cpp. Referenced by operator=(). |
|
Sets the plural type for the catalog. The caller has probably looked it up in a kdelibs.mo-catalog for the appropriate language
Definition at line 106 of file kcatalogue.cpp. |
|
Retrieves a translation of the specified message id. Do not pass 0 or "" strings as message ids.
Definition at line 140 of file kcatalogue.cpp. |
The documentation for this class was generated from the following files: