C# Class Kimono.KLocale

Inheritance: Object, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross Class Usage Examples

Protected Properties

Property Type Description
interceptor Qyoto.SmokeInvocation

Public Methods

Method Description
AllCountriesList ( ) : List Provides list of all known country codes. Use countryCodeToName(country) to get human readable, localized country names.
AllLanguagesList ( ) : List Provides list of all known language codes. Use languageCodeToName(language) to get human readable, localized language names.
Calendar ( ) : KCalendarSystem Returns a pointer to the calendar system object.
CalendarType ( ) : string Returns the name of the calendar system that is currently being used by the system.
CodecForEncoding ( ) : QTextCodec Returns the user's preferred encoding. Should never be NULL.
CopyCatalogsTo ( KLocale locale ) : void Copies the catalogs of this objct to an other KLocale object.
Country ( ) : string Returns the country code of the country where the user lives. defaultCountry() is returned by default, if no other available. Use countryCodeToName(country) to get human readable, localized country names.
CountryCodeToName ( string country ) : string Convert a known country code to a human readable, localized form. If an unknown country code is supplied, empty string is returned; this will never happen if the code has been obtained by one of the KLocale methods. name="code" the country code
CurrencySymbol ( ) : string Returns what the symbol denoting currency in the current locale as as defined by user settings should look like.
DateFormatShort ( ) : string Returns the currently selected short date format.
DateMonthNamePossessive ( ) : bool Use this to determine whether in dates a possessive form of month name is preferred ("of January" rather than "January")
DecimalSymbol ( ) : string Returns what a decimal point should look like ("." or "," etc.) according to the current locale or user settings.
DefaultCountry ( ) : string Returns the name of the default country.
DefaultLanguage ( ) : string Returns the name of the internal language.
Dispose ( ) : void
Encoding ( ) : Qyoto.QByteArray Returns the user's preferred encoding.
EncodingMib ( ) : int Returns the user's preferred encoding.
FileEncodingMib ( ) : int Returns the file encoding.
FormatByteSize ( double size ) : string Converts size from bytes to the string representation using the IEC 60027-2 standard Example: formatByteSize(1024) returns "1.0 KiB" name="size" size in bytes
FormatDate ( QDate date ) : string
FormatDate ( QDate date, KLocale format ) : string Returns a string formatted to the current locale's conventions regarding dates. name="date" the date to be formatted. name="format" category of date format to use
FormatDateTime ( KDateTime dateTime ) : string
FormatDateTime ( KDateTime dateTime, KLocale format ) : string
FormatDateTime ( KDateTime dateTime, KLocale format, uint options ) : string Returns a string formatted to the current locale's conventions regarding both date and time. name="dateTime" the date and time to be formatted name="format" category of date format to use name="options" additional output options
FormatDateTime ( Qyoto.QDateTime dateTime ) : string
FormatDateTime ( Qyoto.QDateTime dateTime, KLocale format ) : string
FormatDateTime ( Qyoto.QDateTime dateTime, KLocale format, bool includeSecs ) : string Returns a string formatted to the current locale's conventions regarding both date and time. name="dateTime" the date and time to be formatted name="format" category of date format to use name="options" additional output options
FormatDuration ( ulong mSec ) : string Given a number of milliseconds, converts that to a string containing the localized equivalent e.g. given formatDuration(60000), returns "1.0 minutes" name="mSec" Time duration in milliseconds
FormatLong ( long num ) : string Given an integer, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456L, return "123,456" (for some European country). name="num" The number to convert
FormatMoney ( double num ) : string
FormatMoney ( double num, string currency ) : string
FormatMoney ( double num, string currency, int digits ) : string Given a double, converts that to a numeric string containing the localized monetary equivalent. e.g. given 123456, return "$ 123,456.00". name="num" The number we want to format name="currency" The currency symbol you want. name="digits" Number of fractional digits, or -1 for the default value
FormatNumber ( double num ) : string
FormatNumber ( double num, int precision ) : string Given a double, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456.78F, return "123,456.78" (for some European country). If precision isn't specified, 2 is used. This function is a wrapper that is provided for convenience. name="num" The number to convert name="precision" Number of fractional digits used.
FormatNumber ( string numStr ) : string
FormatNumber ( string numStr, bool round ) : string
FormatNumber ( string numStr, bool round, int precision ) : string Given a string representing a number, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456.78F, return "123,456.78" (for some European country). name="numStr" The number to format, as a string. name="round" Round fractional digits. (default true) name="precision" Number of fractional digits used for rounding. Unused if round=false. (default 2)
FormatTime ( Qyoto.QTime pTime ) : string
FormatTime ( Qyoto.QTime pTime, bool includeSecs ) : string
FormatTime ( Qyoto.QTime pTime, bool includeSecs, bool isDuration ) : string Returns a string formatted to the current locale's conventions regarding times. name="pTime" The time to be formatted. name="includeSecs" if true, seconds are included in the output, otherwise only hours and minutes are formatted. name="isDuration" if true, the given time is a duration, not a clock time. This means "am/pm" shouldn't be displayed.
FracDigits ( ) : int The number of fractional digits to include in numeric/monetary values (usually 2).
InsertCatalog ( string catalog ) : void Adds another catalog to search for translation lookup. This function is useful for extern libraries and/or code, that provide there own messages. If the catalog does not exist for the chosen language, it will be ignored and en_US will be used. name="catalog" The catalog to add.
IsApplicationTranslatedInto ( string language ) : bool Checks whether or not the active catalog is found for the given language. name="language" language to check
KLocale ( KLocale rhs ) : System Copy constructor.
KLocale ( string catalog ) : System
KLocale ( string catalog, Kimono.KSharedConfig config ) : System Constructs a KLocale with the given catalog name. The constructor looks for an entry Locale/Language in the configuration file. If no config file is specified, it will also look for languages using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG), as well as the global configuration file. If KLocale is not able to use any of the specified languages, the default language (en_US) will be used. If you specify a configuration file, it has to be valid until the KLocale object is destroyed. name="catalog" The name of the main language file name="config" The configuration file to use.
KLocale ( string catalog, string language ) : System
KLocale ( string catalog, string language, string country ) : System
KLocale ( string catalog, string language, string country, Kimono.KConfig config ) : System
Language ( ) : string Returns the language code used by this object. The domain AND the library translation must be available in this language. defaultLanguage() is returned by default, if no other available. Use languageCodeToName(language) to get human readable, localized language name.
LanguageCodeToName ( string language ) : string Convert a known language code to a human readable, localized form. If an unknown language code is supplied, empty string is returned; this will never happen if the code has been obtained by one of the KLocale methods. name="language" the language code
LanguageList ( ) : List Returns the language codes selected by user, ordered by decreasing priority. Use languageCodeToName(language) to get human readable, localized language name.
LocalizedFilePath ( string filePath ) : string Tries to find a path to the localized file for the given original path. This is intended mainly for non-text resources (images, sounds, etc.), whereas text resources should be handled in more specific ways. The possible localized paths are checked in turn by priority of set languages, in form of dirname/l10n/ll/basename, where dirname and basename are those of the original path, and ll is the language code. KDE core classes which resolve paths internally (e.g. KStandardDirs) will usually perform this lookup behind the scene. In general, you should pipe resource paths through this method only on explicit translators' request, or when a resource is an obvious candidate for localization (e.g. a splash screen or a custom icon with some text drawn on it). name="filePath" path to the original file
MonetaryDecimalSymbol ( ) : string Returns what a decimal point should look like ("." or "," etc.) for monetary values, according to the current locale or user settings.
MonetaryThousandsSeparator ( ) : string Returns what a thousands separator for monetary values should look like ("," or " " etc.) according to the current locale or user settings.
NegativeMonetarySignPosition ( ) : KLocale.SignPosition Denotes where to place a negative sign in relation to a monetary value.
NegativePrefixCurrencySymbol ( ) : bool If and only if the currency symbol precedes a negative value, this will be true.
NegativeSign ( ) : string Returns what a negative sign should look like ("-", etc.) according to the current locale or user settings.
NounDeclension ( ) : bool Use this to determine whether nouns are declined in locale's language. This property should remain read-only (no setter function)
PageSize ( ) : int Returns the preferred page size for printing.
PositiveMonetarySignPosition ( ) : KLocale.SignPosition Returns the position of a positive sign in relation to a monetary value.
PositivePrefixCurrencySymbol ( ) : bool If and only if the currency symbol precedes a positive value, this will be true.
PositiveSign ( ) : string Returns what a positive sign should look like ("+", " ", etc.) according to the current locale or user settings.
ReadDate ( string str ) : QDate
ReadDate ( string str, KLocale flags ) : QDate
ReadDate ( string str, KLocale flags, bool &ok ) : QDate Converts a localized date string to a QDate. This method is stricter than readDate(str,&ok): it will either accept a date in full format or a date in short format, depending on flags. name="str" the string we want to convert. name="flags" whether the date string is to be in full format or in short format. name="ok" the boolean that is set to false if it's not a valid date. If ok is 0, it will be ignored
ReadDate ( string str, bool &ok ) : QDate Converts a localized date string to a QDate. The bool pointed by ok will be invalid if the date entered was not valid. name="str" the string we want to convert. name="ok" the boolean that is set to false if it's not a valid date. If ok is 0, it will be ignored
ReadDate ( string intstr, string fmt ) : QDate
ReadDate ( string intstr, string fmt, bool &ok ) : QDate Converts a localized date string to a QDate, using the specified format. You will usually not want to use this method.
ReadMoney ( string numStr ) : double
ReadMoney ( string numStr, bool &ok ) : double Converts a localized monetary string to a double. name="numStr" the string we want to convert. name="ok" the boolean that is set to false if it's not a number. If ok is 0, it will be ignored
ReadNumber ( string numStr ) : double
ReadNumber ( string numStr, bool &ok ) : double Converts a localized numeric string to a double. name="numStr" the string we want to convert. name="ok" the boolean that is set to false if it's not a number. If ok is 0, it will be ignored
ReadTime ( string str ) : Qyoto.QTime
ReadTime ( string str, KLocale flags ) : Qyoto.QTime
ReadTime ( string str, KLocale flags, bool &ok ) : Qyoto.QTime Converts a localized time string to a QTime. This method is stricter than readTime(str,&ok): it will either accept a time with seconds or a time without seconds. Use this method when the format is known by the application. name="str" the string we want to convert. name="flags" whether the time string is expected to contain seconds or not. name="ok" the boolean that is set to false if it's not a valid time. If ok is 0, it will be ignored
ReadTime ( string str, bool &ok ) : Qyoto.QTime Converts a localized time string to a QTime. This method will try to parse it with seconds, then without seconds. The bool pointed to by ok will be set to false if the time entered was not valid. name="str" the string we want to convert. name="ok" the boolean that is set to false if it's not a valid time. If ok is 0, it will be ignored
RemoveCatalog ( string catalog ) : void Removes a catalog for translation lookup. name="catalog" The catalog to remove.
SetActiveCatalog ( string catalog ) : void Sets the active catalog for translation lookup. name="catalog" The catalog to activate.
SetCalendar ( string calendarType ) : void Changes the current calendar system to the calendar specified. Currently "gregorian" and "hijri" are supported. If the calendar system specified is not found, gregorian will be used. name="calendarType" the name of the calendar type
SetCountry ( string country, Kimono.KConfig config ) : bool Changes the current country. The current country will be left unchanged if failed. It will force a reload of the country specific configuration. name="country" The ISO 3166 country code.
SetCurrencySymbol ( string symbol ) : void Changes the current currency symbol. name="symbol" The new currency symbol
SetDateFormat ( string format ) : void Changes the current date format. The format of the date is a string which contains variables that will be replaced:
  • %Y with the whole year (e.g. "1984" for "1984")
  • %y with the lower 2 digits of the year (e.g. "84" for "1984")
  • %n with the month (January="1", December="12")
  • %m with the month with two digits (January="01", December="12")
  • %e with the day of the month (e.g. "1" on the first of march)
  • %d with the day of the month with two digits(e.g. "01" on the first of march)
  • %b with the short form of the month (e.g. "Jan" for January)
  • %B with the long form of the month (e.g. "January")
  • %a with the short form of the weekday (e.g. "Wed" for Wednesday)
  • %A with the long form of the weekday (e.g. "Wednesday" for Wednesday)
  • Everything else in the format string will be taken as is. For example, March 20th 1989 with the format "%y:%m:%d" results in "89:03:20". name="format" The new date format
    SetDateFormatShort ( string format ) : void Changes the current short date format. The format of the date is a string which contains variables that will be replaced:
  • %Y with the whole year (e.g. "1984" for "1984")
  • %y with the lower 2 digits of the year (e.g. "84" for "1984")
  • %n with the month (January="1", December="12")
  • %m with the month with two digits (January="01", December="12")
  • %e with the day of the month (e.g. "1" on the first of march)
  • %d with the day of the month with two digits(e.g. "01" on the first of march)
  • %b with the short form of the month (e.g. "Jan" for January)
  • %B with the long form of the month (e.g. "January")
  • %a with the short form of the weekday (e.g. "Wed" for Wednesday)
  • %A with the long form of the weekday (e.g. "Wednesday" for Wednesday)
  • Everything else in the format string will be taken as is. For example, March 20th 1989 with the format "%y:%m:%d" results in "89:03:20". name="format" The new short date format
    SetDateMonthNamePossessive ( bool possessive ) : void Changes the form of month name used in dates. name="possessive" True if possessive forms should be used
    SetDecimalSymbol ( string symbol ) : void Changes the symbol used to identify the decimal pointer. name="symbol" The new decimal symbol.
    SetEncoding ( int mibEnum ) : bool Changes the current encoding. name="mibEnum" The mib of the preferred codec
    SetFracDigits ( int digits ) : void Changes the number of digits used when formating numbers. name="digits" The default number of digits to use.
    SetLanguage ( List languages ) : bool Changes the list of preferred languages for the locale. The first valid language in the list will be used, or the default language (en_US) if none of the specified languages were available. name="languages" the list of language codes
    SetLanguage ( string language, Kimono.KConfig config ) : bool Changes the current language. The current language will be left unchanged if failed. It will force a reload of the country specific configuration as well. name="language" the language code
    SetMainCatalog ( string catalog ) : void Use this as main catalog for all KLocales, if not the appname will be used. This function is best to be the very first instruction in your program's main function as it only has an effect before the first KLocale object is created. name="catalog" Catalog to override all other main Catalogs.
    SetMeasureSystem ( KLocale value ) : void Changes the preferred measuring system.
    SetMonetaryDecimalSymbol ( string symbol ) : void Changes the symbol used to identify the decimal pointer for monetary values. name="symbol" The new decimal symbol.
    SetMonetaryThousandsSeparator ( string separator ) : void Changes the separator used to group digits when formating monetary values. name="separator" The new thousands separator.
    SetNegativeMonetarySignPosition ( KLocale signpos ) : void Changes the sign position used for negative monetary values. name="signpos" The new sign position
    SetNegativePrefixCurrencySymbol ( bool prefix ) : void Changes the position where the currency symbol should be printed for negative monetary values. name="prefix" True if the currency symbol should be prefixed instead of postfixed
    SetNegativeSign ( string sign ) : void Changes the sign used to identify a negative number. name="sign" Sign used for negative numbers.
    SetPageSize ( int paperFormat ) : void Changes the preferred page size when printing. name="paperFormat" the new preferred page size in the format QPrinter.PageSize
    SetPositiveMonetarySignPosition ( KLocale signpos ) : void Changes the sign position used for positive monetary values. name="signpos" The new sign position
    SetPositivePrefixCurrencySymbol ( bool prefix ) : void Changes the position where the currency symbol should be printed for positive monetary values. name="prefix" True if the currency symbol should be prefixed instead of postfixed
    SetPositiveSign ( string sign ) : void Changes the sign used to identify a positive number. Normally this is left blank. name="sign" Sign used for positive numbers.
    SetThousandsSeparator ( string separator ) : void Changes the separator used to group digits when formating numbers. name="separator" The new thousands separator.
    SetTimeFormat ( string format ) : void Changes the current time format. The format of the time is string a which contains variables that will be replaced:
  • %H with the hour in 24h format and 2 digits (e.g. 5pm is "17", 5am is "05")
  • %k with the hour in 24h format and one digits (e.g. 5pm is "17", 5am is "5")
  • %I with the hour in 12h format and 2 digits (e.g. 5pm is "05", 5am is "05")
  • %l with the hour in 12h format and one digits (e.g. 5pm is "5", 5am is "5")
  • %M with the minute with 2 digits (e.g. the minute of 07:02:09 is "02")
  • %S with the seconds with 2 digits (e.g. the minute of 07:02:09 is "09")
  • %p with pm or am (e.g. 17.00 is "pm", 05.00 is "am")
  • Everything else in the format string will be taken as is. For example, 5.23pm with the format "%H:%M" results in "17:23". name="format" The new time format
    SetWeekStartDay ( int day ) : void Changes how KLocale defines the first day in week. name="day" first day of the week (Monday=1..Sunday=7) as integer
    SplitLocale ( string locale, StringBuilder language, StringBuilder country, StringBuilder modifier, StringBuilder charset ) : void Parses locale string into distinct parts. The format of locale is [email protected] name="locale" the locale string to split name="language" set to the language part of the locale name="country" set to the country part of the locale name="modifier" set to the modifer part of the locale name="charset" set to the charset part of the locale
    ThousandsSeparator ( ) : string Returns what the thousands separator should look like ("," or "." etc.) according to the current locale or user settings.
    TimeFormat ( ) : string Returns the currently selected time format.
    TranslateQt ( string context, string sourceText, string comment ) : string Translates a message as a QTranslator is supposed to. The parameters are similar to i18n(), but the result value has other semantics (it can be string())
    TranslateRaw ( string msg, StringBuilder lang, StringBuilder trans ) : void Raw translation from message catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="msg" the message. Must not be null. Must be UTF-8 encoded. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported. If null, the translation is not reported.
    TranslateRaw ( string ctxt, string msg, StringBuilder lang, StringBuilder trans ) : void Raw translation from message catalogs, with given context. Context + message are used as the lookup key in catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="ctxt" the context. Must not be null. Must be UTF-8 encoded. name="msg" the message. Must not be null. Must be UTF-8 encoded. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported. If null, the translation is not reported.
    TranslateRaw ( string ctxt, string singular, string plural, ulong n, StringBuilder lang, StringBuilder trans ) : void Raw translation from message catalogs, with given context and singular/plural form. Context + singular form is used as the lookup key in catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="ctxt" the context. Must not be null. Must be UTF-8 encoded. name="singular" the singular form. Must not be null. Must be UTF-8 encoded. name="plural" the plural form. Must not be null. Must be UTF-8 encoded. name="n" number on which the forms are decided. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported (either plural or singular, as determined by n ). If null, the translation is not reported.
    TranslateRaw ( string singular, string plural, ulong n, StringBuilder lang, StringBuilder trans ) : void Raw translation from message catalogs, with given singular/plural form. Singular form is used as the lookup key in catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="singular" the singular form. Must not be null. Must be UTF-8 encoded. name="plural" the plural form. Must not be null. Must be UTF-8 encoded. name="n" number on which the forms are decided. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported (either plural or singular, as determined by n ). If null, the translation is not reported.
    Use12Clock ( ) : bool Use this to determine if the user wants a 12 hour clock.
    UseTranscript ( ) : bool Reports whether evaluation of translation scripts is enabled.
    WeekStartDay ( ) : int Use this to determine which day is the first day of the week.
    dateFormat ( ) : string Returns the currently selected date format.
    measureSystem ( ) : KLocale.MeasureSystem Returns which measuring system we use.

    Protected Methods

    Method Description
    CreateProxy ( ) : void
    KLocale ( Type dummy ) : System

    Private Methods

    Method Description
    KLocale ( ) : System

    Method Details

    AllCountriesList() public method

    Provides list of all known country codes. Use countryCodeToName(country) to get human readable, localized country names.
    public AllCountriesList ( ) : List
    return List

    AllLanguagesList() public method

    Provides list of all known language codes. Use languageCodeToName(language) to get human readable, localized language names.
    public AllLanguagesList ( ) : List
    return List

    Calendar() public method

    Returns a pointer to the calendar system object.
    public Calendar ( ) : KCalendarSystem
    return KCalendarSystem

    CalendarType() public method

    Returns the name of the calendar system that is currently being used by the system.
    public CalendarType ( ) : string
    return string

    CodecForEncoding() public method

    Returns the user's preferred encoding. Should never be NULL.
    public CodecForEncoding ( ) : QTextCodec
    return Qyoto.QTextCodec

    CopyCatalogsTo() public method

    Copies the catalogs of this objct to an other KLocale object.
    public CopyCatalogsTo ( KLocale locale ) : void
    locale KLocale
    return void

    Country() public method

    Returns the country code of the country where the user lives. defaultCountry() is returned by default, if no other available. Use countryCodeToName(country) to get human readable, localized country names.
    public Country ( ) : string
    return string

    CountryCodeToName() public method

    Convert a known country code to a human readable, localized form. If an unknown country code is supplied, empty string is returned; this will never happen if the code has been obtained by one of the KLocale methods. name="code" the country code
    public CountryCodeToName ( string country ) : string
    country string
    return string

    CreateProxy() protected method

    protected CreateProxy ( ) : void
    return void

    CurrencySymbol() public method

    Returns what the symbol denoting currency in the current locale as as defined by user settings should look like.
    public CurrencySymbol ( ) : string
    return string

    DateFormatShort() public method

    Returns the currently selected short date format.
    public DateFormatShort ( ) : string
    return string

    DateMonthNamePossessive() public method

    Use this to determine whether in dates a possessive form of month name is preferred ("of January" rather than "January")
    public DateMonthNamePossessive ( ) : bool
    return bool

    DecimalSymbol() public method

    Returns what a decimal point should look like ("." or "," etc.) according to the current locale or user settings.
    public DecimalSymbol ( ) : string
    return string

    DefaultCountry() public static method

    Returns the name of the default country.
    public static DefaultCountry ( ) : string
    return string

    DefaultLanguage() public static method

    Returns the name of the internal language.
    public static DefaultLanguage ( ) : string
    return string

    Dispose() public method

    public Dispose ( ) : void
    return void

    Encoding() public method

    Returns the user's preferred encoding.
    public Encoding ( ) : Qyoto.QByteArray
    return Qyoto.QByteArray

    EncodingMib() public method

    Returns the user's preferred encoding.
    public EncodingMib ( ) : int
    return int

    FileEncodingMib() public method

    Returns the file encoding.
    public FileEncodingMib ( ) : int
    return int

    FormatByteSize() public method

    Converts size from bytes to the string representation using the IEC 60027-2 standard Example: formatByteSize(1024) returns "1.0 KiB" name="size" size in bytes
    public FormatByteSize ( double size ) : string
    size double
    return string

    FormatDate() public method

    public FormatDate ( QDate date ) : string
    date QDate
    return string

    FormatDate() public method

    Returns a string formatted to the current locale's conventions regarding dates. name="date" the date to be formatted. name="format" category of date format to use
    public FormatDate ( QDate date, KLocale format ) : string
    date QDate
    format KLocale
    return string

    FormatDateTime() public method

    public FormatDateTime ( KDateTime dateTime ) : string
    dateTime KDateTime
    return string

    FormatDateTime() public method

    public FormatDateTime ( KDateTime dateTime, KLocale format ) : string
    dateTime KDateTime
    format KLocale
    return string

    FormatDateTime() public method

    Returns a string formatted to the current locale's conventions regarding both date and time. name="dateTime" the date and time to be formatted name="format" category of date format to use name="options" additional output options
    public FormatDateTime ( KDateTime dateTime, KLocale format, uint options ) : string
    dateTime KDateTime
    format KLocale
    options uint
    return string

    FormatDateTime() public method

    public FormatDateTime ( Qyoto.QDateTime dateTime ) : string
    dateTime Qyoto.QDateTime
    return string

    FormatDateTime() public method

    public FormatDateTime ( Qyoto.QDateTime dateTime, KLocale format ) : string
    dateTime Qyoto.QDateTime
    format KLocale
    return string

    FormatDateTime() public method

    Returns a string formatted to the current locale's conventions regarding both date and time. name="dateTime" the date and time to be formatted name="format" category of date format to use name="options" additional output options
    public FormatDateTime ( Qyoto.QDateTime dateTime, KLocale format, bool includeSecs ) : string
    dateTime Qyoto.QDateTime
    format KLocale
    includeSecs bool
    return string

    FormatDuration() public method

    Given a number of milliseconds, converts that to a string containing the localized equivalent e.g. given formatDuration(60000), returns "1.0 minutes" name="mSec" Time duration in milliseconds
    public FormatDuration ( ulong mSec ) : string
    mSec ulong
    return string

    FormatLong() public method

    Given an integer, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456L, return "123,456" (for some European country). name="num" The number to convert
    public FormatLong ( long num ) : string
    num long
    return string

    FormatMoney() public method

    public FormatMoney ( double num ) : string
    num double
    return string

    FormatMoney() public method

    public FormatMoney ( double num, string currency ) : string
    num double
    currency string
    return string

    FormatMoney() public method

    Given a double, converts that to a numeric string containing the localized monetary equivalent. e.g. given 123456, return "$ 123,456.00". name="num" The number we want to format name="currency" The currency symbol you want. name="digits" Number of fractional digits, or -1 for the default value
    public FormatMoney ( double num, string currency, int digits ) : string
    num double
    currency string
    digits int
    return string

    FormatNumber() public method

    public FormatNumber ( double num ) : string
    num double
    return string

    FormatNumber() public method

    Given a double, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456.78F, return "123,456.78" (for some European country). If precision isn't specified, 2 is used. This function is a wrapper that is provided for convenience. name="num" The number to convert name="precision" Number of fractional digits used.
    public FormatNumber ( double num, int precision ) : string
    num double
    precision int
    return string

    FormatNumber() public method

    public FormatNumber ( string numStr ) : string
    numStr string
    return string

    FormatNumber() public method

    public FormatNumber ( string numStr, bool round ) : string
    numStr string
    round bool
    return string

    FormatNumber() public method

    Given a string representing a number, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456.78F, return "123,456.78" (for some European country). name="numStr" The number to format, as a string. name="round" Round fractional digits. (default true) name="precision" Number of fractional digits used for rounding. Unused if round=false. (default 2)
    public FormatNumber ( string numStr, bool round, int precision ) : string
    numStr string
    round bool
    precision int
    return string

    FormatTime() public method

    public FormatTime ( Qyoto.QTime pTime ) : string
    pTime Qyoto.QTime
    return string

    FormatTime() public method

    public FormatTime ( Qyoto.QTime pTime, bool includeSecs ) : string
    pTime Qyoto.QTime
    includeSecs bool
    return string

    FormatTime() public method

    Returns a string formatted to the current locale's conventions regarding times. name="pTime" The time to be formatted. name="includeSecs" if true, seconds are included in the output, otherwise only hours and minutes are formatted. name="isDuration" if true, the given time is a duration, not a clock time. This means "am/pm" shouldn't be displayed.
    public FormatTime ( Qyoto.QTime pTime, bool includeSecs, bool isDuration ) : string
    pTime Qyoto.QTime
    includeSecs bool
    isDuration bool
    return string

    FracDigits() public method

    The number of fractional digits to include in numeric/monetary values (usually 2).
    public FracDigits ( ) : int
    return int

    InsertCatalog() public method

    Adds another catalog to search for translation lookup. This function is useful for extern libraries and/or code, that provide there own messages. If the catalog does not exist for the chosen language, it will be ignored and en_US will be used. name="catalog" The catalog to add.
    public InsertCatalog ( string catalog ) : void
    catalog string
    return void

    IsApplicationTranslatedInto() public method

    Checks whether or not the active catalog is found for the given language. name="language" language to check
    public IsApplicationTranslatedInto ( string language ) : bool
    language string
    return bool

    KLocale() public method

    Copy constructor.
    public KLocale ( KLocale rhs ) : System
    rhs KLocale
    return System

    KLocale() protected method

    protected KLocale ( Type dummy ) : System
    dummy System.Type
    return System

    KLocale() public method

    public KLocale ( string catalog ) : System
    catalog string
    return System

    KLocale() public method

    Constructs a KLocale with the given catalog name. The constructor looks for an entry Locale/Language in the configuration file. If no config file is specified, it will also look for languages using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG), as well as the global configuration file. If KLocale is not able to use any of the specified languages, the default language (en_US) will be used. If you specify a configuration file, it has to be valid until the KLocale object is destroyed. name="catalog" The name of the main language file name="config" The configuration file to use.
    public KLocale ( string catalog, Kimono.KSharedConfig config ) : System
    catalog string
    config Kimono.KSharedConfig
    return System

    KLocale() public method

    public KLocale ( string catalog, string language ) : System
    catalog string
    language string
    return System

    KLocale() public method

    public KLocale ( string catalog, string language, string country ) : System
    catalog string
    language string
    country string
    return System

    KLocale() public method

    public KLocale ( string catalog, string language, string country, Kimono.KConfig config ) : System
    catalog string
    language string
    country string
    config Kimono.KConfig
    return System

    Language() public method

    Returns the language code used by this object. The domain AND the library translation must be available in this language. defaultLanguage() is returned by default, if no other available. Use languageCodeToName(language) to get human readable, localized language name.
    public Language ( ) : string
    return string

    LanguageCodeToName() public method

    Convert a known language code to a human readable, localized form. If an unknown language code is supplied, empty string is returned; this will never happen if the code has been obtained by one of the KLocale methods. name="language" the language code
    public LanguageCodeToName ( string language ) : string
    language string
    return string

    LanguageList() public method

    Returns the language codes selected by user, ordered by decreasing priority. Use languageCodeToName(language) to get human readable, localized language name.
    public LanguageList ( ) : List
    return List

    LocalizedFilePath() public method

    Tries to find a path to the localized file for the given original path. This is intended mainly for non-text resources (images, sounds, etc.), whereas text resources should be handled in more specific ways. The possible localized paths are checked in turn by priority of set languages, in form of dirname/l10n/ll/basename, where dirname and basename are those of the original path, and ll is the language code. KDE core classes which resolve paths internally (e.g. KStandardDirs) will usually perform this lookup behind the scene. In general, you should pipe resource paths through this method only on explicit translators' request, or when a resource is an obvious candidate for localization (e.g. a splash screen or a custom icon with some text drawn on it). name="filePath" path to the original file
    public LocalizedFilePath ( string filePath ) : string
    filePath string
    return string

    MonetaryDecimalSymbol() public method

    Returns what a decimal point should look like ("." or "," etc.) for monetary values, according to the current locale or user settings.
    public MonetaryDecimalSymbol ( ) : string
    return string

    MonetaryThousandsSeparator() public method

    Returns what a thousands separator for monetary values should look like ("," or " " etc.) according to the current locale or user settings.
    public MonetaryThousandsSeparator ( ) : string
    return string

    NegativeMonetarySignPosition() public method

    Denotes where to place a negative sign in relation to a monetary value.
    public NegativeMonetarySignPosition ( ) : KLocale.SignPosition
    return KLocale.SignPosition

    NegativePrefixCurrencySymbol() public method

    If and only if the currency symbol precedes a negative value, this will be true.
    public NegativePrefixCurrencySymbol ( ) : bool
    return bool

    NegativeSign() public method

    Returns what a negative sign should look like ("-", etc.) according to the current locale or user settings.
    public NegativeSign ( ) : string
    return string

    NounDeclension() public method

    Use this to determine whether nouns are declined in locale's language. This property should remain read-only (no setter function)
    public NounDeclension ( ) : bool
    return bool

    PageSize() public method

    Returns the preferred page size for printing.
    public PageSize ( ) : int
    return int

    PositiveMonetarySignPosition() public method

    Returns the position of a positive sign in relation to a monetary value.
    public PositiveMonetarySignPosition ( ) : KLocale.SignPosition
    return KLocale.SignPosition

    PositivePrefixCurrencySymbol() public method

    If and only if the currency symbol precedes a positive value, this will be true.
    public PositivePrefixCurrencySymbol ( ) : bool
    return bool

    PositiveSign() public method

    Returns what a positive sign should look like ("+", " ", etc.) according to the current locale or user settings.
    public PositiveSign ( ) : string
    return string

    ReadDate() public method

    public ReadDate ( string str ) : QDate
    str string
    return QDate

    ReadDate() public method

    public ReadDate ( string str, KLocale flags ) : QDate
    str string
    flags KLocale
    return QDate

    ReadDate() public method

    Converts a localized date string to a QDate. This method is stricter than readDate(str,&ok): it will either accept a date in full format or a date in short format, depending on flags. name="str" the string we want to convert. name="flags" whether the date string is to be in full format or in short format. name="ok" the boolean that is set to false if it's not a valid date. If ok is 0, it will be ignored
    public ReadDate ( string str, KLocale flags, bool &ok ) : QDate
    str string
    flags KLocale
    ok bool
    return QDate

    ReadDate() public method

    Converts a localized date string to a QDate. The bool pointed by ok will be invalid if the date entered was not valid. name="str" the string we want to convert. name="ok" the boolean that is set to false if it's not a valid date. If ok is 0, it will be ignored
    public ReadDate ( string str, bool &ok ) : QDate
    str string
    ok bool
    return QDate

    ReadDate() public method

    public ReadDate ( string intstr, string fmt ) : QDate
    intstr string
    fmt string
    return QDate

    ReadDate() public method

    Converts a localized date string to a QDate, using the specified format. You will usually not want to use this method.
    public ReadDate ( string intstr, string fmt, bool &ok ) : QDate
    intstr string
    fmt string
    ok bool
    return QDate

    ReadMoney() public method

    public ReadMoney ( string numStr ) : double
    numStr string
    return double

    ReadMoney() public method

    Converts a localized monetary string to a double. name="numStr" the string we want to convert. name="ok" the boolean that is set to false if it's not a number. If ok is 0, it will be ignored
    public ReadMoney ( string numStr, bool &ok ) : double
    numStr string
    ok bool
    return double

    ReadNumber() public method

    public ReadNumber ( string numStr ) : double
    numStr string
    return double

    ReadNumber() public method

    Converts a localized numeric string to a double. name="numStr" the string we want to convert. name="ok" the boolean that is set to false if it's not a number. If ok is 0, it will be ignored
    public ReadNumber ( string numStr, bool &ok ) : double
    numStr string
    ok bool
    return double

    ReadTime() public method

    public ReadTime ( string str ) : Qyoto.QTime
    str string
    return Qyoto.QTime

    ReadTime() public method

    public ReadTime ( string str, KLocale flags ) : Qyoto.QTime
    str string
    flags KLocale
    return Qyoto.QTime

    ReadTime() public method

    Converts a localized time string to a QTime. This method is stricter than readTime(str,&ok): it will either accept a time with seconds or a time without seconds. Use this method when the format is known by the application. name="str" the string we want to convert. name="flags" whether the time string is expected to contain seconds or not. name="ok" the boolean that is set to false if it's not a valid time. If ok is 0, it will be ignored
    public ReadTime ( string str, KLocale flags, bool &ok ) : Qyoto.QTime
    str string
    flags KLocale
    ok bool
    return Qyoto.QTime

    ReadTime() public method

    Converts a localized time string to a QTime. This method will try to parse it with seconds, then without seconds. The bool pointed to by ok will be set to false if the time entered was not valid. name="str" the string we want to convert. name="ok" the boolean that is set to false if it's not a valid time. If ok is 0, it will be ignored
    public ReadTime ( string str, bool &ok ) : Qyoto.QTime
    str string
    ok bool
    return Qyoto.QTime

    RemoveCatalog() public method

    Removes a catalog for translation lookup. name="catalog" The catalog to remove.
    public RemoveCatalog ( string catalog ) : void
    catalog string
    return void

    SetActiveCatalog() public method

    Sets the active catalog for translation lookup. name="catalog" The catalog to activate.
    public SetActiveCatalog ( string catalog ) : void
    catalog string
    return void

    SetCalendar() public method

    Changes the current calendar system to the calendar specified. Currently "gregorian" and "hijri" are supported. If the calendar system specified is not found, gregorian will be used. name="calendarType" the name of the calendar type
    public SetCalendar ( string calendarType ) : void
    calendarType string
    return void

    SetCountry() public method

    Changes the current country. The current country will be left unchanged if failed. It will force a reload of the country specific configuration. name="country" The ISO 3166 country code.
    public SetCountry ( string country, Kimono.KConfig config ) : bool
    country string
    config Kimono.KConfig
    return bool

    SetCurrencySymbol() public method

    Changes the current currency symbol. name="symbol" The new currency symbol
    public SetCurrencySymbol ( string symbol ) : void
    symbol string
    return void

    SetDateFormat() public method

    Changes the current date format. The format of the date is a string which contains variables that will be replaced:
  • %Y with the whole year (e.g. "1984" for "1984")
  • %y with the lower 2 digits of the year (e.g. "84" for "1984")
  • %n with the month (January="1", December="12")
  • %m with the month with two digits (January="01", December="12")
  • %e with the day of the month (e.g. "1" on the first of march)
  • %d with the day of the month with two digits(e.g. "01" on the first of march)
  • %b with the short form of the month (e.g. "Jan" for January)
  • %B with the long form of the month (e.g. "January")
  • %a with the short form of the weekday (e.g. "Wed" for Wednesday)
  • %A with the long form of the weekday (e.g. "Wednesday" for Wednesday)
  • Everything else in the format string will be taken as is. For example, March 20th 1989 with the format "%y:%m:%d" results in "89:03:20". name="format" The new date format
    public SetDateFormat ( string format ) : void
    format string
    return void

    SetDateFormatShort() public method

    Changes the current short date format. The format of the date is a string which contains variables that will be replaced:
  • %Y with the whole year (e.g. "1984" for "1984")
  • %y with the lower 2 digits of the year (e.g. "84" for "1984")
  • %n with the month (January="1", December="12")
  • %m with the month with two digits (January="01", December="12")
  • %e with the day of the month (e.g. "1" on the first of march)
  • %d with the day of the month with two digits(e.g. "01" on the first of march)
  • %b with the short form of the month (e.g. "Jan" for January)
  • %B with the long form of the month (e.g. "January")
  • %a with the short form of the weekday (e.g. "Wed" for Wednesday)
  • %A with the long form of the weekday (e.g. "Wednesday" for Wednesday)
  • Everything else in the format string will be taken as is. For example, March 20th 1989 with the format "%y:%m:%d" results in "89:03:20". name="format" The new short date format
    public SetDateFormatShort ( string format ) : void
    format string
    return void

    SetDateMonthNamePossessive() public method

    Changes the form of month name used in dates. name="possessive" True if possessive forms should be used
    public SetDateMonthNamePossessive ( bool possessive ) : void
    possessive bool
    return void

    SetDecimalSymbol() public method

    Changes the symbol used to identify the decimal pointer. name="symbol" The new decimal symbol.
    public SetDecimalSymbol ( string symbol ) : void
    symbol string
    return void

    SetEncoding() public method

    Changes the current encoding. name="mibEnum" The mib of the preferred codec
    public SetEncoding ( int mibEnum ) : bool
    mibEnum int
    return bool

    SetFracDigits() public method

    Changes the number of digits used when formating numbers. name="digits" The default number of digits to use.
    public SetFracDigits ( int digits ) : void
    digits int
    return void

    SetLanguage() public method

    Changes the list of preferred languages for the locale. The first valid language in the list will be used, or the default language (en_US) if none of the specified languages were available. name="languages" the list of language codes
    public SetLanguage ( List languages ) : bool
    languages List
    return bool

    SetLanguage() public method

    Changes the current language. The current language will be left unchanged if failed. It will force a reload of the country specific configuration as well. name="language" the language code
    public SetLanguage ( string language, Kimono.KConfig config ) : bool
    language string
    config Kimono.KConfig
    return bool

    SetMainCatalog() public static method

    Use this as main catalog for all KLocales, if not the appname will be used. This function is best to be the very first instruction in your program's main function as it only has an effect before the first KLocale object is created. name="catalog" Catalog to override all other main Catalogs.
    public static SetMainCatalog ( string catalog ) : void
    catalog string
    return void

    SetMeasureSystem() public method

    Changes the preferred measuring system.
    public SetMeasureSystem ( KLocale value ) : void
    value KLocale
    return void

    SetMonetaryDecimalSymbol() public method

    Changes the symbol used to identify the decimal pointer for monetary values. name="symbol" The new decimal symbol.
    public SetMonetaryDecimalSymbol ( string symbol ) : void
    symbol string
    return void

    SetMonetaryThousandsSeparator() public method

    Changes the separator used to group digits when formating monetary values. name="separator" The new thousands separator.
    public SetMonetaryThousandsSeparator ( string separator ) : void
    separator string
    return void

    SetNegativeMonetarySignPosition() public method

    Changes the sign position used for negative monetary values. name="signpos" The new sign position
    public SetNegativeMonetarySignPosition ( KLocale signpos ) : void
    signpos KLocale
    return void

    SetNegativePrefixCurrencySymbol() public method

    Changes the position where the currency symbol should be printed for negative monetary values. name="prefix" True if the currency symbol should be prefixed instead of postfixed
    public SetNegativePrefixCurrencySymbol ( bool prefix ) : void
    prefix bool
    return void

    SetNegativeSign() public method

    Changes the sign used to identify a negative number. name="sign" Sign used for negative numbers.
    public SetNegativeSign ( string sign ) : void
    sign string
    return void

    SetPageSize() public method

    Changes the preferred page size when printing. name="paperFormat" the new preferred page size in the format QPrinter.PageSize
    public SetPageSize ( int paperFormat ) : void
    paperFormat int
    return void

    SetPositiveMonetarySignPosition() public method

    Changes the sign position used for positive monetary values. name="signpos" The new sign position
    public SetPositiveMonetarySignPosition ( KLocale signpos ) : void
    signpos KLocale
    return void

    SetPositivePrefixCurrencySymbol() public method

    Changes the position where the currency symbol should be printed for positive monetary values. name="prefix" True if the currency symbol should be prefixed instead of postfixed
    public SetPositivePrefixCurrencySymbol ( bool prefix ) : void
    prefix bool
    return void

    SetPositiveSign() public method

    Changes the sign used to identify a positive number. Normally this is left blank. name="sign" Sign used for positive numbers.
    public SetPositiveSign ( string sign ) : void
    sign string
    return void

    SetThousandsSeparator() public method

    Changes the separator used to group digits when formating numbers. name="separator" The new thousands separator.
    public SetThousandsSeparator ( string separator ) : void
    separator string
    return void

    SetTimeFormat() public method

    Changes the current time format. The format of the time is string a which contains variables that will be replaced:
  • %H with the hour in 24h format and 2 digits (e.g. 5pm is "17", 5am is "05")
  • %k with the hour in 24h format and one digits (e.g. 5pm is "17", 5am is "5")
  • %I with the hour in 12h format and 2 digits (e.g. 5pm is "05", 5am is "05")
  • %l with the hour in 12h format and one digits (e.g. 5pm is "5", 5am is "5")
  • %M with the minute with 2 digits (e.g. the minute of 07:02:09 is "02")
  • %S with the seconds with 2 digits (e.g. the minute of 07:02:09 is "09")
  • %p with pm or am (e.g. 17.00 is "pm", 05.00 is "am")
  • Everything else in the format string will be taken as is. For example, 5.23pm with the format "%H:%M" results in "17:23". name="format" The new time format
    public SetTimeFormat ( string format ) : void
    format string
    return void

    SetWeekStartDay() public method

    Changes how KLocale defines the first day in week. name="day" first day of the week (Monday=1..Sunday=7) as integer
    public SetWeekStartDay ( int day ) : void
    day int
    return void

    SplitLocale() public static method

    Parses locale string into distinct parts. The format of locale is [email protected] name="locale" the locale string to split name="language" set to the language part of the locale name="country" set to the country part of the locale name="modifier" set to the modifer part of the locale name="charset" set to the charset part of the locale
    public static SplitLocale ( string locale, StringBuilder language, StringBuilder country, StringBuilder modifier, StringBuilder charset ) : void
    locale string
    language StringBuilder
    country StringBuilder
    modifier StringBuilder
    charset StringBuilder
    return void

    ThousandsSeparator() public method

    Returns what the thousands separator should look like ("," or "." etc.) according to the current locale or user settings.
    public ThousandsSeparator ( ) : string
    return string

    TimeFormat() public method

    Returns the currently selected time format.
    public TimeFormat ( ) : string
    return string

    TranslateQt() public method

    Translates a message as a QTranslator is supposed to. The parameters are similar to i18n(), but the result value has other semantics (it can be string())
    public TranslateQt ( string context, string sourceText, string comment ) : string
    context string
    sourceText string
    comment string
    return string

    TranslateRaw() public method

    Raw translation from message catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="msg" the message. Must not be null. Must be UTF-8 encoded. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported. If null, the translation is not reported.
    public TranslateRaw ( string msg, StringBuilder lang, StringBuilder trans ) : void
    msg string
    lang StringBuilder
    trans StringBuilder
    return void

    TranslateRaw() public method

    Raw translation from message catalogs, with given context. Context + message are used as the lookup key in catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="ctxt" the context. Must not be null. Must be UTF-8 encoded. name="msg" the message. Must not be null. Must be UTF-8 encoded. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported. If null, the translation is not reported.
    public TranslateRaw ( string ctxt, string msg, StringBuilder lang, StringBuilder trans ) : void
    ctxt string
    msg string
    lang StringBuilder
    trans StringBuilder
    return void

    TranslateRaw() public method

    Raw translation from message catalogs, with given context and singular/plural form. Context + singular form is used as the lookup key in catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="ctxt" the context. Must not be null. Must be UTF-8 encoded. name="singular" the singular form. Must not be null. Must be UTF-8 encoded. name="plural" the plural form. Must not be null. Must be UTF-8 encoded. name="n" number on which the forms are decided. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported (either plural or singular, as determined by n ). If null, the translation is not reported.
    public TranslateRaw ( string ctxt, string singular, string plural, ulong n, StringBuilder lang, StringBuilder trans ) : void
    ctxt string
    singular string
    plural string
    n ulong
    lang StringBuilder
    trans StringBuilder
    return void

    TranslateRaw() public method

    Raw translation from message catalogs, with given singular/plural form. Singular form is used as the lookup key in catalogs. Never use this directly to get message translations. See i18n and ki18n calls related to KLocalizedString. name="singular" the singular form. Must not be null. Must be UTF-8 encoded. name="plural" the plural form. Must not be null. Must be UTF-8 encoded. name="n" number on which the forms are decided. name="lang" language in which the translation was found. If no translation was found, KLocale.DefaultLanguage() is reported. If null, the language is not reported. name="trans" raw translation, or original if not found. If no translation was found, original message is reported (either plural or singular, as determined by n ). If null, the translation is not reported.
    public TranslateRaw ( string singular, string plural, ulong n, StringBuilder lang, StringBuilder trans ) : void
    singular string
    plural string
    n ulong
    lang StringBuilder
    trans StringBuilder
    return void

    Use12Clock() public method

    Use this to determine if the user wants a 12 hour clock.
    public Use12Clock ( ) : bool
    return bool

    UseTranscript() public method

    Reports whether evaluation of translation scripts is enabled.
    public UseTranscript ( ) : bool
    return bool

    WeekStartDay() public method

    Use this to determine which day is the first day of the week.
    public WeekStartDay ( ) : int
    return int

    dateFormat() public method

    Returns the currently selected date format.
    public dateFormat ( ) : string
    return string

    measureSystem() public method

    Returns which measuring system we use.
    public measureSystem ( ) : KLocale.MeasureSystem
    return KLocale.MeasureSystem

    Property Details

    interceptor protected_oe property

    protected SmokeInvocation,Qyoto interceptor
    return Qyoto.SmokeInvocation