• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • localization
kcatalog_p.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (c) 2001 Hans Petter Bieker <bieker@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KCATALOG_H
21 #define KCATALOG_H
22 
23 #include <QtCore/QString>
24 
25 class KCatalogPrivate;
26 
34 //REVISED: hausmann
35 class KCatalog
36 {
37 public:
44  KCatalog( const QString &name, const QString &language );
45 
49  KCatalog(const KCatalog & rhs);
50 
54  KCatalog & operator = ( const KCatalog & rhs);
55 
59  virtual ~KCatalog();
60 
69  static QString catalogLocaleDir( const QString &name,
70  const QString &language );
71 
77  QString name() const;
78 
84  QString language() const;
85 
91  QString localeDir() const;
92 
102  QString translate( const char * msgid ) const;
103 
114  QString translate( const char * msgctxt, const char * msgid ) const;
115 
128  QString translate( const char * msgid, const char * msgid_plural,
129  unsigned long n ) const;
130 
144  QString translate( const char * msgctxt, const char * msgid,
145  const char * msgid_plural, unsigned long n ) const;
146 
157  QString translateStrict( const char * msgid ) const;
158 
170  QString translateStrict( const char * msgctxt, const char * msgid ) const;
171 
185  QString translateStrict( const char * msgid, const char * msgid_plural,
186  unsigned long n ) const;
187 
202  QString translateStrict( const char * msgctxt, const char * msgid,
203  const char * msgid_plural, unsigned long n ) const;
204 
205  friend QDebug operator<<(QDebug debug, const KCatalog &c);
206 
207 private:
208  KCatalogPrivate* const d;
209 };
210 
211 QDebug operator<<(QDebug debug, const KCatalog &c);
212 
213 #endif
KCatalog::operator<<
friend QDebug operator<<(QDebug debug, const KCatalog &c)
Definition: kcatalog.cpp:93
KCatalog::catalogLocaleDir
static QString catalogLocaleDir(const QString &name, const QString &language)
Finds the locale directory for the given catalog in given language.
Definition: kcatalog.cpp:149
KCatalog::translateStrict
QString translateStrict(const char *msgid) const
Retrieves a translation of the specified message id, returning empty if the translation was not found...
Definition: kcatalog.cpp:250
KCatalog::operator=
KCatalog & operator=(const KCatalog &rhs)
Assignment operator.
Definition: kcatalog.cpp:137
KCatalog::KCatalog
KCatalog(const QString &name, const QString &language)
Constructor.
Definition: kcatalog.cpp:100
KCatalog::~KCatalog
virtual ~KCatalog()
Destructor.
Definition: kcatalog.cpp:144
KCatalog::translate
QString translate(const char *msgid) const
Retrieves a translation of the specified message id.
Definition: kcatalog.cpp:212
QString
KCatalog::language
QString language() const
Returns the language of the catalog.
Definition: kcatalog.cpp:162
KCatalog::localeDir
QString localeDir() const
Returns locale directory of the catalog.
Definition: kcatalog.cpp:167
QDebug
KCatalog::name
QString name() const
Returns the name of the catalog.
Definition: kcatalog.cpp:157
KCatalog
This class abstracts a gettext message catalog.
Definition: kcatalog_p.h:35
operator<<
QDebug operator<<(QDebug debug, const KCatalog &c)
Definition: kcatalog.cpp:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal