• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Public Member Functions | List of all members
KCatalogue Class Reference

#include <kcatalogue.h>

Public Member Functions

 KCatalogue (const TQString &name=TQString::null, const TQString &language=TQString::null)
 
 KCatalogue (const KCatalogue &rhs)
 
KCatalogue & operator= (const KCatalogue &rhs)
 
virtual ~KCatalogue ()
 
TQString name () const
 
TQString 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
TDELocale

Definition at line 37 of file kcatalogue.h.

Constructor & Destructor Documentation

◆ KCatalogue() [1/2]

KCatalogue::KCatalogue ( const TQString &  name = TQString::null,
const TQString &  language = TQString::null 
)
explicit

Constructor.

Parameters
nameThe name of the catalog
languageThe language of this catalog

Definition at line 55 of file kcatalogue.cpp.

◆ KCatalogue() [2/2]

KCatalogue::KCatalogue ( const KCatalogue &  rhs)

Copy constructor.

Definition at line 77 of file kcatalogue.cpp.

◆ ~KCatalogue()

KCatalogue::~KCatalogue ( )
virtual

Destructor.

Definition at line 93 of file kcatalogue.cpp.

Member Function Documentation

◆ language()

TQString KCatalogue::language ( ) const

Returns the language of the catalog.

Returns
The language of the catalog

Definition at line 105 of file kcatalogue.cpp.

◆ name()

TQString KCatalogue::name ( ) const

Returns the name of the catalog.

Returns
The name of the catalog

Definition at line 100 of file kcatalogue.cpp.

◆ operator=()

KCatalogue & KCatalogue::operator= ( const KCatalogue &  rhs)

Assignment operator.

Definition at line 83 of file kcatalogue.cpp.

◆ pluralType()

int KCatalogue::pluralType ( ) const

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

Definition at line 115 of file kcatalogue.cpp.

◆ setPluralType()

void KCatalogue::setPluralType ( int  pluralType)

Sets the plural type for the catalog.

The caller has probably looked it up in a tdelibs.mo-catalog for the appropriate language

Returns
The plural type for the catalog

Definition at line 110 of file kcatalogue.cpp.

◆ translate()

const char * KCatalogue::translate ( const char *  msgid) const

Retrieves a translation of the specified message id.

Do not pass 0 or "" strings as message ids.

Parameters
msgidThe message id
Returns
The translated message, in utf8 encoding, or 0 if not found

Definition at line 144 of file kcatalogue.cpp.


The documentation for this class was generated from the following files:
  • kcatalogue.h
  • kcatalogue.cpp

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.