KTextTemplate
abstractlocalizer.h
99 virtual QString localizeDate(const QDate &date, QLocale::FormatType formatType = QLocale::ShortFormat) const = 0;
104 virtual QString localizeTime(const QTime &time, QLocale::FormatType formatType = QLocale::ShortFormat) const = 0;
109 virtual QString localizeDateTime(const QDateTime &dateTime, QLocale::FormatType formatType = QLocale::ShortFormat) const = 0;
114 virtual QString localizeString(const QString &string, const QVariantList &arguments = {}) const = 0;
120 virtual QString localizeContextString(const QString &string, const QString &context, const QVariantList &arguments = {}) const = 0;
126 virtual QString localizePluralString(const QString &string, const QString &pluralForm, const QVariantList &arguments = {}) const = 0;
133 localizePluralContextString(const QString &string, const QString &pluralForm, const QString &context, const QVariantList &arguments = {}) const = 0;
Interface for implementing an internationalization system.
Definition abstractlocalizer.h:35
virtual QString localizeDateTime(const QDateTime &dateTime, QLocale::FormatType formatType=QLocale::ShortFormat) const =0
Localizes dateTime with the specified formatType.
virtual QString localizeContextString(const QString &string, const QString &context, const QVariantList &arguments={}) const =0
Localizes string, disambiguated by context with the specified arguments for substitution.
virtual void unloadCatalog(const QString &catalog)=0
Unloads the catalog.
virtual QString localizeMonetaryValue(qreal value, const QString ¤cyCode={}) const =0
Localizes value as a monetary value in the currency specified by currencyCode.
virtual QString localizePluralContextString(const QString &string, const QString &pluralForm, const QString &context, const QVariantList &arguments={}) const =0
Localizes string or its pluralForm, disambiguated by context with the specified arguments for substit...
virtual QString localizePluralString(const QString &string, const QString &pluralForm, const QVariantList &arguments={}) const =0
Localizes string or its pluralForm with the specified arguments for substitution.
virtual QString localizeNumber(int number) const =0
Localizes number.
virtual void loadCatalog(const QString &path, const QString &catalog)=0
Loads the catalog from path.
virtual QString localizeNumber(qreal number) const =0
Localizes number.
virtual void popLocale()=0
Makes this localizer use the previous locale for output.
virtual QString localizeTime(const QTime &time, QLocale::FormatType formatType=QLocale::ShortFormat) const =0
Localizes time with the specified formatType.
virtual QString localizeString(const QString &string, const QVariantList &arguments={}) const =0
Localizes string with the specified arguments for substitution.
virtual QString currentLocale() const =0
Returns the current locale as a string.
virtual void pushLocale(const QString &localeName)=0
Makes this localizer use the locale specified by localeName for output.
virtual QString localizeDate(const QDate &date, QLocale::FormatType formatType=QLocale::ShortFormat) const =0
Localizes date with the specified formatType.
The KTextTemplate namespace holds all public KTextTemplate API.
Definition Mainpage.dox:8
FormatType
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.