class KCatalogue

# class KCatalogue | This class abstracts a gettext message catalogue. More...
Definition | `#include <kcatalogue.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- explicit KCatalogue (const QString & name = QString::null)
- KCatalogue (const KCatalogue & rhs)
- KCatalogue & operator = ( const KCatalogue & rhs)
- virtual ~KCatalogue ()
- QString name () const
- void setFileName ( const QString & fileName )
- const char * translate ( const char * msgid ) const

## Detailed Description

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

See also: KLocale

explicit KCatalogue (const QString & name = QString::null) | ### KCatalogue

Constructor.

Parameters:

name | The name of the catalogue

KCatalogue (const KCatalogue & rhs) | ### KCatalogue

Copy constructor.

KCatalogue & operator = ( const KCatalogue & rhs) | ### operator =

Assignment operator.

~KCatalogue () | ### ~KCatalogue

[virtual]

Destructor.

QString name () | ### name

[const]

Returns the name of the catalogue.

Returns: The name of the catalogue

void setFileName ( const QString & fileName ) | ### setFileName

Changes the current file name.

Parameters:

fileName | The new file name

const char * translate ( const char * msgid ) | ### translate

[const]

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

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.