KDECore
klocale_kde.cpp
Go to the documentation of this file.
83 languagesUsingDigitSet.insert(KLocale::ArabicIndicDigits, QStringList() << QString::fromLatin1("ar") << QString::fromLatin1("ps"));
84 languagesUsingDigitSet.insert(KLocale::BengaliDigits, QStringList() << QString::fromLatin1("bn") << QString::fromLatin1("as") );
85 languagesUsingDigitSet.insert(KLocale::DevenagariDigits, QStringList() << QString::fromLatin1("hi") << QString::fromLatin1("ne"));
86 languagesUsingDigitSet.insert(KLocale::EasternArabicIndicDigits, QStringList() << QString::fromLatin1("fa") << QString::fromLatin1("ur"));
87 languagesUsingDigitSet.insert(KLocale::GujaratiDigits, QStringList() << QString::fromLatin1("gu") );
88 languagesUsingDigitSet.insert(KLocale::GurmukhiDigits, QStringList() << QString::fromLatin1("pa") );
89 languagesUsingDigitSet.insert(KLocale::KannadaDigits, QStringList() << QString::fromLatin1("kn") );
90 languagesUsingDigitSet.insert(KLocale::KhmerDigits, QStringList() << QString::fromLatin1("km") );
91 languagesUsingDigitSet.insert(KLocale::MalayalamDigits, QStringList() << QString::fromLatin1("ml") );
92 languagesUsingDigitSet.insert(KLocale::OriyaDigits, QStringList() << QString::fromLatin1("or") );
93 languagesUsingDigitSet.insert(KLocale::TamilDigits, QStringList() << QString::fromLatin1("ta") );
94 languagesUsingDigitSet.insert(KLocale::TeluguDigits, QStringList() << QString::fromLatin1("te") );
229 void KLocalePrivate::init(const QString& catalogName, const QString &language, const QString &country,
246 // If no config given, use the global config and include envvars, otherwise use only the config.
268 // Init the config, this is called during construction and by later setCountry/setLanguage calls.
329 void KLocalePrivate::getLanguagesFromVariable(QStringList &list, const char *variable, bool isLanguageList)
368 if ( putativeCountry.isEmpty() || !validCountries.contains( putativeCountry, Qt::CaseInsensitive ) ) {
373 if ( putativeCountry.isEmpty() || !validCountries.contains( putativeCountry, Qt::CaseInsensitive ) ) {
378 if ( putativeCountry.isEmpty() || !validCountries.contains( putativeCountry, Qt::CaseInsensitive ) ) {
456 KConfig entryFile(KStandardDirs::locate("locale", QString::fromLatin1("l10n/%1/entry.desktop").arg(m_country)));
509 readConfigNumEntry("MonetaryDecimalPlaces", m_currency->decimalPlaces(), m_monetaryDecimalPlaces, int);
555 KConfig langCfg(KStandardDirs::locate("locale", QString::fromLatin1("%1/entry.desktop").arg(m_language)));
604 if (putativeCountry.isEmpty() || !validCountries.contains(putativeCountry, Qt::CaseInsensitive)) {
658 // KDE5 Unlike the other setLanguage call this does not reparse the config so the localized config
890 void KLocalePrivate::translateRawFrom(const char *catname, const char *msgctxt, const char *msgid, const char *msgid_plural,
938 for (QList<KCatalog>::ConstIterator it = catalogList.constBegin(); it != catalogList.constEnd();
973 QString KLocalePrivate::translateQt(const char *context, const char *sourceText, const char *comment) const
1145 QString KLocalePrivate::convertDigits(const QString &str, KLocale::DigitSet digitSet, bool ignoreContext) const
1319 QString KLocalePrivate::formatDigitGroup(const QString &number, const QString &groupSeparator, const QString &decimalSeperator, QList<int> groupList) const
1347 // Strips all occurrences of the group separator from a number, returns ok if the separators were all in the valid positions
1348 QString KLocalePrivate::parseDigitGroup(const QString &number, const QString &groupSeparator, const QString &decimalSeparator, QList<int> groupList, bool *ok) const
1411 res = formatDigitGroup(res, monetaryThousandsSeparator(), monetaryDecimalSymbol(), monetaryDigitGrouping());
1604 mantString = formatDigitGroup(mantString, thousandsSeparator(), decimalSymbol(), numericDigitGrouping());
1700 QString KLocalePrivate::formatByteSize(double size, int precision, KLocale::BinaryUnitDialect dialect,
1828 return i18nc("@item:intext days and hours. This uses the previous item:intext messages. If this does not fit the grammar of your language please contact the i18n team to solve the problem",
1834 return i18nc("@item:intext hours and minutes. This uses the previous item:intext messages. If this does not fit the grammar of your language please contact the i18n team to solve the problem",
1841 return i18nc("@item:intext minutes and seconds. This uses the previous item:intext messages. If this does not fit the grammar of your language please contact the i18n team to solve the problem",
1984 if (!negSign.isEmpty() && (str.left(negLen) == negSign || str.right(negSign.length()) == negSign)) {
1991 if (!posSign.isEmpty() && (str.left(posLen) == posSign || str.right(posSign.length()) == posSign)) {
2117 QTime KLocalePrivate::readTime(const QString &intstr, KLocale::ReadTimeFlags flags, bool *ok) const
2119 return readLocaleTime(intstr, ok, (flags == KLocale::WithSeconds) ? KLocale::TimeDefault : KLocale::TimeWithoutSeconds,
2192 QTime KLocalePrivate::readLocaleTime(const QString &intstr, bool *ok, KLocale::TimeFormatOptions options,
2341 QString KLocalePrivate::formatLocaleTime(const QTime &time, KLocale::TimeFormatOptions options) const
2463 // If no Day Periods currently loaded then it means there were no country specific ones defined
2504 QString KLocalePrivate::formatDateTime(const KLocale *locale, const QDateTime &dateTime, KLocale::DateFormat format,
2507 // Have to do Fancy Date formatting here rather than using normal KCalendarSystem::formatDate()
2547 QString KLocalePrivate::formatDateTime(const QDateTime &dateTime, KLocale::DateFormat format, bool includeSeconds) const
2566 dt = KLocalePrivate::formatDateTime(q, dateTime.dateTime(), format, (options & KLocale::Seconds), daysTo, secsTo);
2577 tz = i18n(dateTime.toString(QString::fromLatin1((format == KLocale::ShortDate) ? "%Z" : "%:Z")).toUtf8());
2814 } else if ((uc < min_uc) || (uc >= 0xd800 && uc <= 0xdfff) || nonCharacter || uc >= 0x110000) {
3094 QStringList paths = KGlobal::dirs()->findAllResources("locale", QLatin1String("*/entry.desktop"));
3116 const QStringList paths = KGlobal::dirs()->findAllResources("locale", QLatin1String("l10n/*/entry.desktop"));
3129 QString entryFile = KStandardDirs::locate("locale", QString::fromLatin1("l10n/") + country.toLower() + QLatin1String("/entry.desktop"));
3138 KLocale::CalendarSystem KLocalePrivate::calendarTypeToCalendarSystem(const QString &calendarType) const
3169 QString KLocalePrivate::calendarSystemToCalendarType(KLocale::CalendarSystem calendarSystem) const
QString periodName(KLocale::DateTimeComponentFormat format=KLocale::ShortName) const
Return translated Period Name in the required format e.g.
Definition: kdayperiod.cpp:138
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
virtual void setPositiveMonetarySignPosition(KLocale::SignPosition signpos)
Definition: klocale_kde.cpp:2962
#define read3ConfigBoolEntry(key, default, save)
static void notifyCatalogsUpdated(const QStringList &languages, const QList< KCatalogName > &catalogs)
Definition: klocalizedstring.cpp:974
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
Date/times with associated time zone.
Japanese Calendar, Gregorian calculation using Japanese Era (Nengô)
Definition: klocale.h:799
Only accept a time string with seconds. Default (no flag set)
Definition: klocale.h:1298
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
Definition: klocale.h:661
static QString formatSingleDuration(KLocalePrivate::DurationType durationType, int n)
Definition: klocale_kde.cpp:1795
static QString catalogLocaleDir(const QString &name, const QString &language)
Finds the locale directory for the given catalog in given language.
Definition: kcatalog.cpp:149
static void put_it_in(QChar *buffer, int &index, const QString &s)
Definition: klocale_kde.cpp:1294
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
Spec timeSpec() const
Returns the time specification of the date/time, i.e.
Definition: kdatetime.cpp:842
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
#define readConfigEntry(key, default, save)
bool setCountryDivisionCode(const QString &countryDivision)
Definition: klocale_kde.cpp:629
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition: kstandarddirs.cpp:2085
virtual KLocale::CalendarSystem calendarTypeToCalendarSystem(const QString &calendarType) const
Definition: klocale_kde.cpp:3138
QTime time(int hourInPeriod, int minute, int second, int millisecond=0) const
Calculate and return the 24hr time for a given hms in the Day Period.
Definition: kdayperiod.cpp:161
static QString toArabicDigits(const QString &str)
Definition: klocale_kde.cpp:1169
static void stripStringAndSucceedingSeparator(QString &inout, const QLatin1String &strip2char)
Definition: klocale_kde.cpp:2153
int hourInPeriod(const QTime &time) const
Calculate and return the hour in the Day Period for a given 24h time.
Definition: kdayperiod.cpp:149
QString formatLocaleTime(const QTime &pTime, TimeFormatOptions options=KLocale::TimeDefault) const
Definition: klocale.cpp:424
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
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition: kconfigbase.cpp:44
QString toString(const QString &format) const
Returns the date/time as a string.
Definition: kdatetime.cpp:1434
virtual QString calendarSystemToCalendarType(KLocale::CalendarSystem) const
Definition: klocale_kde.cpp:3169
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Writes a value to the configuration object.
Definition: kconfiggroup.cpp:1038
Coptic Calendar as used Coptic Church and some parts of Egypt.
Definition: klocale.h:785
static QString langLookup(const QString &fname, const char *rtype="html")
Definition: klocale_kde.cpp:2589
bool isDateOnly() const
Returns whether the instance represents a date/time or a date-only value.
Definition: kdatetime.cpp:832
Definition: kcatalogname_p.h:25
QString removeAcceleratorMarker(const QString &label_)
Definition: common_helpers.cpp:52
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 QString dateFormatShort() const
Definition: klocale_kde.cpp:2921
virtual void initFileNameEncoding()
Definition: klocale_kde.cpp:2668
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 KCalendarSystem * create(const QString &calType=QLatin1String("gregorian"), const KLocale *locale=0)
Definition: kcalendarsystem.cpp:47
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
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
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
void deleteEntry(const QString &pKey, WriteConfigFlags pFlags=Normal)
Deletes the entry specified by pKey in the current group.
Definition: kconfiggroup.cpp:1113
Indian National Calendar, not the Lunar Calendar.
Definition: klocale.h:794
Definition: kcurrencycode.h:45
#define readConfigNumEntry(key, default, save, type)
const KCalendarSystem * calendar() const
Returns a pointer to the calendar system object.
Definition: klocale.cpp:705
KConfig * copyTo(const QString &file, KConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file...
Definition: kconfig.cpp:512
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
Minguo Calendar, aka ROC, Republic of China or Taiwanese.
Definition: klocale.h:802
virtual QString formatDate(const QDate &fromDate, KLocale::DateFormat toFormat=KLocale::LongDate) const
Returns a string formatted to the current locale's conventions regarding dates.
Definition: kcalendarsystem.cpp:2048
virtual void setActiveCatalog(const QString &catalog)
Sets the active catalog for translation lookup.
Definition: klocale_kde.cpp:878
QString i18ncp(const char *ctxt, const char *sing, const char *plur, const A1 &a1)
Returns a localized version of a string with 1 argument and a context using correct plural form...
Definition: klocalizedstring.h:1123
Jalali Calendar, aka Persian or Iranian, also used in Afghanistan.
Definition: klocale.h:796
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
QDateTime dateTime() const
Returns the date/time component of the instance, ignoring the time zone.
Definition: kdatetime.cpp:840
KDE Default, hybrid of Gregorian and Julian as used by QDate.
Definition: klocale.h:781
Read/format time string without am/pm suffix but keep the 12/24h format as specified by locale time f...
Definition: klocale.h:1021
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
a clock time which ignores time zones and simply uses whatever the local system clock says the time i...
Definition: kdatetime.h:203
void setWeekNumberSystem(KLocale::WeekNumberSystem weekNumberSystem)
Definition: klocale_kde.cpp:3232
Definition: klocale_p.h:980
int secsTo(const KDateTime &other) const
Returns the number of seconds from this date/time to the other date/time.
Definition: kdatetime.cpp:1159
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
Gregorian Calendar, pure proleptic implementation.
Definition: klocale.h:788
virtual void setMonetaryDigitGrouping(QList< int > groupList)
Definition: klocale_kde.cpp:2993
virtual QStringList systemLanguageList() const
Definition: klocale_kde.cpp:447
static KDateTime currentDateTime(const Spec &spec)
Returns the current date and time, as reported by the system clock, expressed in a given time specifi...
Definition: kdatetime.cpp:1262
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
int decimalPlaces() const
Return the number of decimal places required to display the currency subunits.
Definition: kcurrencycode.cpp:256
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
static int readInt(const QString &str, int &pos)
helper function to read integers
Definition: klocale_kde.cpp:2079
QStringList resourceDirs(const char *type) const
This function is used internally by almost all other function as it serves and fills the directories ...
Definition: kstandarddirs.cpp:1069
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition: kconfiggroup.cpp:1156
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
QString isoCurrencyCode() const
Return the ISO 4217 Currency Code in Alpha 3 format, e.g.
Definition: kcurrencycode.cpp:167
virtual void setCurrencyCode(const QString &newCurrencyCode)
Definition: klocale_kde.cpp:711
#define CACHE_BYTE_FMT(ctxt_text)
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
QStringList languageList() const
Returns the language codes selected by user, ordered by decreasing priority.
Definition: klocale.cpp:439
virtual void setDayPeriods(const QList< KDayPeriod > &dayPeriods)
Definition: klocale_kde.cpp:2449
virtual void setMonetaryThousandsSeparator(const QString &separator)
Definition: klocale_kde.cpp:2987
KConfig * config()
Return the config object that this group belongs to.
Definition: kconfiggroup.cpp:610
virtual QDate readDate(const QString &str, bool *ok=0) const
Converts a localized date string to a QDate.
Definition: kcalendarsystem.cpp:2333
virtual bool negativePrefixCurrencySymbol() const
Definition: klocale_kde.cpp:1279
static void stripStringAndPreceedingSeparator(QString &inout, const QLatin1String &strip2char)
Definition: klocale_kde.cpp:2126
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
static QString defaultCurrencyCode()
Definition: klocale_kde.cpp:3040
bool isValid() const
Return if the currency object loaded/initialised correctly.
Definition: kcurrencycode.cpp:266
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
Q_GLOBAL_STATIC_WITH_ARGS(org::kde::KLauncher, klauncherIface,(QString::fromLatin1("org.kde.klauncher"), QString::fromLatin1("/KLauncher"), QDBusConnection::sessionBus())) org
Definition: ktoolinvocation.cpp:55
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: klocale.h:635
Definition: kdayperiod_p.h:54
virtual void setDecimalPlaces(int digits)
Definition: klocale_kde.cpp:2931
QString formatDate(const QDate &date, DateFormat format=LongDate) const
Returns a string formatted to the current locale's conventions regarding dates.
Definition: klocale.cpp:368
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
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
Tries to find all resources with the specified type.
Definition: kstandarddirs.cpp:900
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
static void splitLocale(const QString &locale, QString &language, QString &country, QString &modifier, QString &charset)
Parses locale string into distinct parts.
Definition: klocale.cpp:105
0123456789 (European and some Asian languages and western Arabic dialects)
Definition: klocale.h:310
Definition: klocale_p.h:34
virtual QString formatMoney(double num, const QString ¤cy=QString(), int precision=-1) const
Definition: klocale_kde.cpp:1392
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition: kconfiggroup.h:248
virtual int workingWeekStartDay() const
Definition: klocale_kde.cpp:1197
SpecType timeType() const
Returns the time specification type of the date/time, i.e.
Definition: kdatetime.cpp:843
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 QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
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
QString defaultSymbol() const
Return the default Symbol for the Currency, e.g.
Definition: kcurrencycode.cpp:218
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
static QString defaultLanguage()
Returns the name of the internal language.
Definition: klocale.cpp:615
Islamic Civil Calendar, aka Hijri, not the Lunar Calendar.
Definition: klocale.h:792
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
Exclude the seconds part of the time from display.
Definition: klocale.h:1020
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.