• 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
Typedefs | Functions
klocalizedstring.cpp File Reference
#include <klocalizedstring.h>
#include <config.h>
#include <kglobal.h>
#include <kdebug.h>
#include <klocale.h>
#include <klocale_p.h>
#include <klibrary.h>
#include <kstandarddirs.h>
#include <ktranscript_p.h>
#include <kuitsemantics_p.h>
#include "kcatalogname_p.h"
#include <QMutexLocker>
#include <QStringList>
#include <QByteArray>
#include <QChar>
#include <QHash>
#include <QList>
#include <QVector>
Include dependency graph for klocalizedstring.cpp:

Go to the source code of this file.

Typedefs

typedef KTranscript *(* InitFunc )()
 
typedef qlonglong intn
 
typedef qulonglong pluraln
 
typedef double realn
 
typedef qulonglong uintn
 

Functions

KLocalizedString ki18n (const char *msg)
 
KLocalizedString ki18nc (const char *ctxt, const char *msg)
 
KLocalizedString ki18ncp (const char *ctxt, const char *singular, const char *plural)
 
KLocalizedString ki18np (const char *singular, const char *plural)
 
static QString shortenMessage (const QString &str)
 
static QString wrapNum (const QString &tag, const QString &numstr, int fieldWidth, const QChar &fillChar)
 

Typedef Documentation

typedef KTranscript*(* InitFunc)()

Definition at line 947 of file klocalizedstring.cpp.

typedef qlonglong intn

Definition at line 53 of file klocalizedstring.cpp.

typedef qulonglong pluraln

Definition at line 52 of file klocalizedstring.cpp.

typedef double realn

Definition at line 55 of file klocalizedstring.cpp.

typedef qulonglong uintn

Definition at line 54 of file klocalizedstring.cpp.

Function Documentation

KLocalizedString ki18n ( const char *  msg)

Creates localized string from a given message.

Normaly you should use i18n() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

Parameters
msgmessage text
Returns
created KLocalizedString

Definition at line 924 of file klocalizedstring.cpp.

KLocalizedString ki18nc ( const char *  ctxt,
const char *  msg 
)

Creates localized string from a given message, with added context.

Context is only for disambiguation purposes (both for lookup and for translators), it is not part of the message. Normaly you should use i18nc() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

Parameters
ctxtcontext text
msgmessage text
Returns
created KLocalizedString

Definition at line 929 of file klocalizedstring.cpp.

KLocalizedString ki18ncp ( const char *  ctxt,
const char *  singular,
const char *  plural 
)

Creates localized string from a given plural and singular form, with added context.

Context is only for disambiguation purposes (both for lookup and for translators), it is not part of the message. Normaly you should use i18ncp() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

Parameters
ctxtcontext text
singularmessage text in singular
pluralmessage text in plural
Returns
created KLocalizedString

Definition at line 939 of file klocalizedstring.cpp.

KLocalizedString ki18np ( const char *  singular,
const char *  plural 
)

Creates localized string from a given plural and singular form.

Normaly you should use i18np() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

Parameters
singularmessage text in singular
pluralmessage text in plural
Returns
created KLocalizedString

Definition at line 934 of file klocalizedstring.cpp.

static QString shortenMessage ( const QString &  str)
static

Definition at line 43 of file klocalizedstring.cpp.

static QString wrapNum ( const QString &  tag,
const QString &  numstr,
int  fieldWidth,
const QChar &  fillChar 
)
static

Definition at line 777 of file klocalizedstring.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 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