GrantleeTheme::GrantleeKi18nLocalizer

Search for usage in LXR

GrantleeTheme::GrantleeKi18nLocalizer Class Reference

#include <grantleeki18nlocalizer.h>

Inheritance diagram for GrantleeTheme::GrantleeKi18nLocalizer:

Public Member Functions

QString currentLocale () const override
 
QString localizeContextString (const QString &string, const QString &context, const QVariantList &arguments) const override
 
QString localizeMonetaryValue (qreal value, const QString &currentCode) const override
 
QString localizePluralContextString (const QString &string, const QString &pluralForm, const QString &context, const QVariantList &arguments) const override
 
QString localizePluralString (const QString &string, const QString &pluralForm, const QVariantList &arguments) const override
 
QString localizeString (const QString &string, const QVariantList &arguments) const override
 
void setApplicationDomain (const QByteArray &domain)
 
- Public Member Functions inherited from KTextTemplate::QtLocalizer
 QtLocalizer (const QLocale &locale=QLocale::system())
 
QString currentLocale () const override
 
void installTranslator (QTranslator *translator, const QString &localeName=QLocale::system().name())
 
void loadCatalog (const QString &path, const QString &catalog) override
 
QString localizeContextString (const QString &string, const QString &context, const QVariantList &arguments={}) const override
 
QString localizeDate (const QDate &date, QLocale::FormatType formatType=QLocale::ShortFormat) const override
 
QString localizeDateTime (const QDateTime &dateTime, QLocale::FormatType formatType=QLocale::ShortFormat) const override
 
QString localizeMonetaryValue (qreal value, const QString &currencyCode={}) const override
 
QString localizeNumber (int number) const override
 
QString localizeNumber (qreal number) const override
 
QString localizePluralContextString (const QString &string, const QString &pluralForm, const QString &context, const QVariantList &arguments={}) const override
 
QString localizePluralString (const QString &string, const QString &pluralForm, const QVariantList &arguments={}) const override
 
QString localizeString (const QString &string, const QVariantList &arguments={}) const override
 
QString localizeTime (const QTime &time, QLocale::FormatType formatType=QLocale::ShortFormat) const override
 
void popLocale () override
 
void pushLocale (const QString &localeName) override
 
void setAppTranslatorPath (const QString &path)
 
void setAppTranslatorPrefix (const QString &prefix)
 
void unloadCatalog (const QString &catalog) override
 
- Public Member Functions inherited from KTextTemplate::AbstractLocalizer
virtual QString localize (const QVariant &variant) const
 

Detailed Description

The GrantleeKi18nLocalizer class.

Definition at line 22 of file grantleeki18nlocalizer.h.

Constructor & Destructor Documentation

◆ GrantleeKi18nLocalizer()

GrantleeKi18nLocalizer::GrantleeKi18nLocalizer ( )
explicit

Definition at line 17 of file grantleeki18nlocalizer.cpp.

Member Function Documentation

◆ currentLocale()

QString GrantleeKi18nLocalizer::currentLocale ( ) const
nodiscardoverridevirtual

Implements KTextTemplate::AbstractLocalizer.

Definition at line 101 of file grantleeki18nlocalizer.cpp.

◆ localizeContextString()

QString GrantleeKi18nLocalizer::localizeContextString ( const QString & string,
const QString & context,
const QVariantList & arguments ) const
nodiscardoverridevirtual

Implements KTextTemplate::AbstractLocalizer.

Definition at line 69 of file grantleeki18nlocalizer.cpp.

◆ localizeMonetaryValue()

QString GrantleeKi18nLocalizer::localizeMonetaryValue ( qreal value,
const QString & currentCode ) const
nodiscardoverridevirtual

Implements KTextTemplate::AbstractLocalizer.

Definition at line 96 of file grantleeki18nlocalizer.cpp.

◆ localizePluralContextString()

QString GrantleeKi18nLocalizer::localizePluralContextString ( const QString & string,
const QString & pluralForm,
const QString & context,
const QVariantList & arguments ) const
nodiscardoverridevirtual

Implements KTextTemplate::AbstractLocalizer.

Definition at line 81 of file grantleeki18nlocalizer.cpp.

◆ localizePluralString()

QString GrantleeKi18nLocalizer::localizePluralString ( const QString & string,
const QString & pluralForm,
const QVariantList & arguments ) const
nodiscardoverridevirtual

Implements KTextTemplate::AbstractLocalizer.

Definition at line 90 of file grantleeki18nlocalizer.cpp.

◆ localizeString()

QString GrantleeKi18nLocalizer::localizeString ( const QString & string,
const QVariantList & arguments ) const
nodiscardoverridevirtual

Implements KTextTemplate::AbstractLocalizer.

Definition at line 75 of file grantleeki18nlocalizer.cpp.

◆ setApplicationDomain()

void GrantleeKi18nLocalizer::setApplicationDomain ( const QByteArray & domain)

Definition at line 111 of file grantleeki18nlocalizer.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.