KDECore
klocale_p.h
Go to the documentation of this file.
166 static void getLanguagesFromVariable(QStringList &list, const char *variable, bool isLanguageList = false);
182 virtual void initLanguageList(const QString &language, const QString &configLanguages, bool useEnv);
314 virtual void translateRawFrom(const char *catname, const char *msgctxt, const char *msgid, const char *msgid_plural = 0,
321 virtual QString translateQt(const char *context, const char *sourceText, const char *comment) const;
338 virtual KLocale::CalendarSystem calendarTypeToCalendarSystem(const QString &calendarType) const;
563 virtual QString formatTime(const QTime &pTime, bool includeSecs = false, bool isDuration = false) const;
569 virtual QString formatLocaleTime(const QTime &pTime, KLocale::TimeFormatOptions options = KLocale::TimeDefault) const;
596 static QString formatDateTime(const KLocale *locale, const QDateTime &dateTime, KLocale::DateFormat,
603 virtual QString formatDateTime(const QDateTime &dateTime, KLocale::DateFormat format = KLocale::ShortDate,
610 virtual QString formatDateTime(const KDateTime &dateTime, KLocale::DateFormat format = KLocale::ShortDate,
659 virtual QString convertDigits(const QString &str, KLocale::DigitSet digitSet, bool ignoreContext = false) const;
765 virtual QString formatNumber(const QString &numStr, bool round = true, int precision = -1) const;
958 virtual QString formatMoney(double num, const QString ¤cy = QString(), int precision = -1) const;
1141 QString formatDigitGroup(const QString &number, const QString &groupSeparator, const QString &decimalSeperator, QList<int> groupList) const;
1146 QString parseDigitGroup(const QString &number, const QString &groupSeparator, const QString &decimalSeperator, QList<int> groupList, bool *ok) const;
1164 bool m_languageSensitiveDigits; // FIXME: Temporary until full language-sensitivity implemented.
1170 QList<KCatalog> m_catalogs; // list of all found catalogs, one instance per catalog name and language
virtual void setPositiveMonetarySignPosition(KLocale::SignPosition signpos)
Definition: klocale_kde.cpp:2962
virtual QString prettyFormatDuration(unsigned long mSec) const
Definition: klocale_kde.cpp:1810
virtual QList< int > monetaryDigitGrouping() const
Definition: klocale_kde.cpp:1247
virtual QString formatNumber(double num, int precision=-1) const
Definition: klocale_kde.cpp:1456
virtual QString thousandsSeparator() const
Definition: klocale_kde.cpp:1222
virtual void setDateTimeDigitSet(KLocale::DigitSet digitSet)
Definition: klocale_kde.cpp:3307
virtual QByteArray systemCodeset() const
Definition: klocale_kde.cpp:2649
virtual double readNumber(const QString &numStr, bool *ok=0) const
Definition: klocale_kde.cpp:1863
static QString formatSingleDuration(KLocalePrivate::DurationType durationType, int n)
Definition: klocale_kde.cpp:1795
virtual void setWorkingWeekStartDay(int day)
Definition: klocale_kde.cpp:2895
virtual void setDateMonthNamePossessive(bool possessive)
Definition: klocale_kde.cpp:2878
virtual bool dateMonthNamePossessive() const
Definition: klocale_kde.cpp:1187
virtual QString monetaryThousandsSeparator() const
Definition: klocale_kde.cpp:1242
virtual int workingWeekEndDay() const
Definition: klocale_kde.cpp:1202
virtual KLocale::DigitSet monetaryDigitSet() const
Definition: klocale_kde.cpp:3302
virtual KLocale::MeasureSystem measureSystem() const
Definition: klocale_kde.cpp:3019
virtual void init(const QString &catalogName, const QString &language, const QString &country, KSharedConfig::Ptr persistantconfig, KConfig *tempConfig)
Definition: klocale_kde.cpp:229
QString countryDivisionCode() const
Definition: klocale_kde.cpp:790
MeasureSystem
The Metric system will give you information in mm, while the Imperial system will give you informatio...
Definition: klocale.h:1780
virtual QString monetaryDecimalSymbol() const
Definition: klocale_kde.cpp:1237
bool setCountryDivisionCode(const QString &countryDivision)
Definition: klocale_kde.cpp:629
virtual KLocale::CalendarSystem calendarTypeToCalendarSystem(const QString &calendarType) const
Definition: klocale_kde.cpp:3138
static QString toArabicDigits(const QString &str)
Definition: klocale_kde.cpp:1169
virtual QString localizedFilePath(const QString &filePath) const
Definition: klocale_kde.cpp:3249
static void splitLocale(const QString &locale, QString &language, QString &country, QString &modifier, QString &charset)
Definition: klocale_kde.cpp:742
virtual QList< KLocale::DigitSet > allDigitSetsList() const
Definition: klocale_kde.cpp:1034
virtual QString calendarSystemToCalendarType(KLocale::CalendarSystem) const
Definition: klocale_kde.cpp:3169
static QString langLookup(const QString &fname, const char *rtype="html")
Definition: klocale_kde.cpp:2589
virtual void removeCatalog(const QString &catalog)
Definition: klocale_kde.cpp:861
virtual QString convertDigits(const QString &str, KLocale::DigitSet digitSet, bool ignoreContext=false) const
Definition: klocale_kde.cpp:1145
BinarySizeUnits
These binary units are used in KDE by the formatByteSize() functions.
Definition: klocale.h:621
virtual void initFileNameEncoding()
Definition: klocale_kde.cpp:2668
virtual QString dateFormatShort() const
Definition: klocale_kde.cpp:2921
virtual void setWorkingWeekEndDay(int day)
Definition: klocale_kde.cpp:2902
virtual QString digitSetToName(KLocale::DigitSet digitSet, bool withDigits=false) const
Definition: klocale_kde.cpp:1089
static QByteArray encodeFileNameUTF8(const QString &fileName)
Definition: klocale_kde.cpp:2712
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE...
Definition: kcalendarsystem.h:40
virtual void setPositivePrefixCurrencySymbol(bool prefix)
Definition: klocale_kde.cpp:2972
virtual QStringList installedLanguages()
Definition: klocale_kde.cpp:3091
virtual void setCalendarSystem(KLocale::CalendarSystem)
Definition: klocale_kde.cpp:3206
virtual QString formatByteSize(double size)
Definition: klocale_kde.cpp:1758
virtual void initDayPeriods(const KConfigGroup &cg)
Definition: klocale_kde.cpp:568
Definition: kcurrencycode.h:45
Auto-choose a unit such that the result is in the range [0, 1000 or 1024)
Definition: klocale.h:623
static void setMainCatalog(const char *catalog)
Definition: klocale_kde.cpp:1857
virtual void setCalendar(const QString &calendarType)
Definition: klocale_kde.cpp:3201
virtual QList< int > numericDigitGrouping() const
Definition: klocale_kde.cpp:1227
virtual void setMonetaryDecimalPlaces(int digits)
Definition: klocale_kde.cpp:2982
virtual QString translateQt(const char *context, const char *sourceText, const char *comment) const
Definition: klocale_kde.cpp:973
virtual QString formatLong(long num) const
Definition: klocale_kde.cpp:1465
virtual QStringList currencyCodeList() const
Definition: klocale_kde.cpp:2499
virtual void setMonetaryDigitSet(KLocale::DigitSet digitSet)
Definition: klocale_kde.cpp:3297
virtual void setActiveCatalog(const QString &catalog)
Sets the active catalog for translation lookup.
Definition: klocale_kde.cpp:878
virtual void setNegativeSign(const QString &sign)
Definition: klocale_kde.cpp:2957
Definition: klocale_p.h:979
virtual QStringList allLanguagesList()
Definition: klocale_kde.cpp:3083
virtual QTime readTime(const QString &str, bool *ok=0) const
Definition: klocale_kde.cpp:2108
virtual bool setCountry(const QString &country, KConfig *config)
Definition: klocale_kde.cpp:593
virtual double readMoney(const QString &numStr, bool *ok=0) const
Definition: klocale_kde.cpp:1950
virtual QList< KDayPeriod > dayPeriods() const
Definition: klocale_kde.cpp:2461
virtual void setTimeFormat(const QString &format)
Definition: klocale_kde.cpp:2883
KLocalePrivate & operator=(const KLocalePrivate &rhs)
Assignment operator.
Definition: klocale_kde.cpp:124
void setWeekNumberSystem(KLocale::WeekNumberSystem weekNumberSystem)
Definition: klocale_kde.cpp:3232
Definition: klocale_p.h:980
virtual QTime readLocaleTime(const QString &str, bool *ok=0, KLocale::TimeFormatOptions options=KLocale::TimeDefault, KLocale::TimeProcessingOptions processing=KLocale::ProcessNonStrict) const
Definition: klocale_kde.cpp:2192
virtual QString formatTime(const QTime &pTime, bool includeSecs=false, bool isDuration=false) const
Definition: klocale_kde.cpp:2329
static QString digitSetString(KLocale::DigitSet digitSet)
Definition: klocale_kde.cpp:1055
virtual void setDecimalSymbol(const QString &symbol)
Definition: klocale_kde.cpp:2936
virtual void copyCatalogsTo(KLocale *locale)
Definition: klocale_kde.cpp:3242
virtual void setMeasureSystem(KLocale::MeasureSystem value)
Definition: klocale_kde.cpp:3024
virtual KLocale::SignPosition positiveMonetarySignPosition() const
Definition: klocale_kde.cpp:1284
virtual void setMonetaryDigitGrouping(QList< int > groupList)
Definition: klocale_kde.cpp:2993
virtual QStringList systemLanguageList() const
Definition: klocale_kde.cpp:447
virtual KLocale::SignPosition negativeMonetarySignPosition() const
Definition: klocale_kde.cpp:1289
virtual QString formatLocaleTime(const QTime &pTime, KLocale::TimeFormatOptions options=KLocale::TimeDefault) const
Definition: klocale_kde.cpp:2341
virtual QString languageCodeToName(const QString &language)
Definition: klocale_kde.cpp:3103
virtual void initLanguageList(const QString &language, const QString &configLanguages, bool useEnv)
Definition: klocale_kde.cpp:402
virtual bool setLanguage(const QString &language, KConfig *config)
Definition: klocale_kde.cpp:635
virtual QDate readDate(const QString &str, bool *ok=0)
Definition: klocale_kde.cpp:2093
A class representing a date and time with an associated time zone.
Definition: kdatetime.h:171
QList< QString > dialectUnitsList(KLocale::BinaryUnitDialect dialect)
Definition: klocale_kde.cpp:1620
virtual void setNumericDigitGrouping(QList< int > groupList)
Definition: klocale_kde.cpp:2947
Default formatting using seconds and the format as specified by the locale.
Definition: klocale.h:1018
virtual void setDigitSet(KLocale::DigitSet digitSet)
Definition: klocale_kde.cpp:3287
virtual void setCurrencyCode(const QString &newCurrencyCode)
Definition: klocale_kde.cpp:711
static void getLanguagesFromVariable(QStringList &list, const char *variable, bool isLanguageList=false)
Definition: klocale_kde.cpp:329
virtual void setCurrencySymbol(const QString &symbol)
Definition: klocale_kde.cpp:3003
virtual void setDayPeriods(const QList< KDayPeriod > &dayPeriods)
Definition: klocale_kde.cpp:2449
virtual void setMonetaryThousandsSeparator(const QString &separator)
Definition: klocale_kde.cpp:2987
virtual bool negativePrefixCurrencySymbol() const
Definition: klocale_kde.cpp:1279
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
static QString defaultCurrencyCode()
Definition: klocale_kde.cpp:3040
virtual QString formatDuration(unsigned long mSec) const
Definition: klocale_kde.cpp:1777
virtual void setDateFormat(const QString &format)
Definition: klocale_kde.cpp:2868
SignPosition
Various positions for where to place the positive or negative sign when they are related to a monetar...
Definition: klocale.h:281
virtual void insertCatalog(const QString &catalog)
Definition: klocale_kde.cpp:812
virtual void translateRawFrom(const char *catname, const char *msgctxt, const char *msgid, const char *msgid_plural=0, unsigned long n=0, QString *language=0, QString *translation=0) const
Definition: klocale_kde.cpp:890
virtual void setNegativeMonetarySignPosition(KLocale::SignPosition signpos)
Definition: klocale_kde.cpp:2967
virtual void setPageSize(int paperFormat)
Definition: klocale_kde.cpp:3013
virtual void setThousandsSeparator(const QString &separator)
Definition: klocale_kde.cpp:2941
static QString formatDateTime(const KLocale *locale, const QDateTime &dateTime, KLocale::DateFormat, bool includeSeconds, int daysToNow, int secsToNow)
Definition: klocale_kde.cpp:2504
virtual bool useDefaultLanguage() const
Definition: klocale_kde.cpp:2618
Definition: kdayperiod_p.h:54
virtual void setDecimalPlaces(int digits)
Definition: klocale_kde.cpp:2931
virtual void setPositiveSign(const QString &sign)
Definition: klocale_kde.cpp:2952
KLocale::CalendarSystem calendarSystem() const
Definition: klocale_kde.cpp:3218
virtual KLocale::BinaryUnitDialect binaryUnitDialect() const
Definition: klocale_kde.cpp:1763
virtual QStringList allCountriesList() const
Definition: klocale_kde.cpp:3113
virtual QString countryCodeToName(const QString &country) const
Definition: klocale_kde.cpp:3126
virtual KDayPeriod dayPeriodForTime(const QTime &time) const
Definition: klocale_kde.cpp:2482
static QString decodeFileNameUTF8(const QByteArray &localFileName)
Definition: klocale_kde.cpp:2789
virtual QString formatDate(const QDate &date, KLocale::DateFormat format=KLocale::LongDate)
Definition: klocale_kde.cpp:1852
virtual void setMonetaryDecimalSymbol(const QString &symbol)
Definition: klocale_kde.cpp:2998
Definition: klocale_p.h:34
virtual QString formatMoney(double num, const QString ¤cy=QString(), int precision=-1) const
Definition: klocale_kde.cpp:1392
virtual int workingWeekStartDay() const
Definition: klocale_kde.cpp:1197
virtual int monetaryDecimalPlaces() const
Definition: klocale_kde.cpp:1269
virtual void setWeekDayOfPray(int day)
Definition: klocale_kde.cpp:2909
virtual void setNegativePrefixCurrencySymbol(bool prefix)
Definition: klocale_kde.cpp:2977
virtual bool positivePrefixCurrencySymbol() const
Definition: klocale_kde.cpp:1274
virtual QStringList languageList() const
Definition: klocale_kde.cpp:2494
virtual void initCountry(const QString &country, const QString &configCountry)
Definition: klocale_kde.cpp:359
virtual QString currencySymbol() const
Definition: klocale_kde.cpp:1232
virtual void setDateFormatShort(const QString &format)
Definition: klocale_kde.cpp:2873
virtual void setWeekStartDay(int day)
Definition: klocale_kde.cpp:2888
virtual KLocale::DigitSet dateTimeDigitSet() const
Definition: klocale_kde.cpp:3312
virtual bool isApplicationTranslatedInto(const QString &language)
Definition: klocale_kde.cpp:720
virtual QTextCodec * codecForEncoding() const
Definition: klocale_kde.cpp:3068
virtual QString removeAcceleratorMarker(const QString &label) const
Definition: klocale_kde.cpp:3282
KLocale::WeekNumberSystem weekNumberSystem()
Definition: klocale_kde.cpp:3237
virtual void setBinaryUnitDialect(KLocale::BinaryUnitDialect newDialect)
Definition: klocale_kde.cpp:1768
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.