C# Класс Kimono.KLocale

Наследование: Object, IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
interceptor Qyoto.SmokeInvocation

Открытые методы

Метод Описание
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.

    Защищенные методы

    Метод Описание
    CreateProxy ( ) : void
    KLocale ( Type dummy ) : System

    Приватные методы

    Метод Описание
    KLocale ( ) : System

    Описание методов

    AllCountriesList() публичный Метод

    Provides list of all known country codes. Use countryCodeToName(country) to get human readable, localized country names.
    public AllCountriesList ( ) : List
    Результат List

    AllLanguagesList() публичный Метод

    Provides list of all known language codes. Use languageCodeToName(language) to get human readable, localized language names.
    public AllLanguagesList ( ) : List
    Результат List

    Calendar() публичный Метод

    Returns a pointer to the calendar system object.
    public Calendar ( ) : KCalendarSystem
    Результат KCalendarSystem

    CalendarType() публичный Метод

    Returns the name of the calendar system that is currently being used by the system.
    public CalendarType ( ) : string
    Результат string

    CodecForEncoding() публичный Метод

    Returns the user's preferred encoding. Should never be NULL.
    public CodecForEncoding ( ) : QTextCodec
    Результат Qyoto.QTextCodec

    CopyCatalogsTo() публичный Метод

    Copies the catalogs of this objct to an other KLocale object.
    public CopyCatalogsTo ( KLocale locale ) : void
    locale KLocale
    Результат void

    Country() публичный Метод

    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
    Результат string

    CountryCodeToName() публичный Метод

    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
    Результат string

    CreateProxy() защищенный Метод

    protected CreateProxy ( ) : void
    Результат void

    CurrencySymbol() публичный Метод

    Returns what the symbol denoting currency in the current locale as as defined by user settings should look like.
    public CurrencySymbol ( ) : string
    Результат string

    DateFormatShort() публичный Метод

    Returns the currently selected short date format.
    public DateFormatShort ( ) : string
    Результат string

    DateMonthNamePossessive() публичный Метод

    Use this to determine whether in dates a possessive form of month name is preferred ("of January" rather than "January")
    public DateMonthNamePossessive ( ) : bool
    Результат bool

    DecimalSymbol() публичный Метод

    Returns what a decimal point should look like ("." or "," etc.) according to the current locale or user settings.
    public DecimalSymbol ( ) : string
    Результат string

    DefaultCountry() публичный статический Метод

    Returns the name of the default country.
    public static DefaultCountry ( ) : string
    Результат string

    DefaultLanguage() публичный статический Метод

    Returns the name of the internal language.
    public static DefaultLanguage ( ) : string
    Результат string

    Dispose() публичный Метод

    public Dispose ( ) : void
    Результат void

    Encoding() публичный Метод

    Returns the user's preferred encoding.
    public Encoding ( ) : Qyoto.QByteArray
    Результат Qyoto.QByteArray

    EncodingMib() публичный Метод

    Returns the user's preferred encoding.
    public EncodingMib ( ) : int
    Результат int

    FileEncodingMib() публичный Метод

    Returns the file encoding.
    public FileEncodingMib ( ) : int
    Результат int

    FormatByteSize() публичный Метод

    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
    Результат string

    FormatDate() публичный Метод

    public FormatDate ( QDate date ) : string
    date QDate
    Результат string

    FormatDate() публичный Метод

    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
    Результат string

    FormatDateTime() публичный Метод

    public FormatDateTime ( KDateTime dateTime ) : string
    dateTime KDateTime
    Результат string

    FormatDateTime() публичный Метод

    public FormatDateTime ( KDateTime dateTime, KLocale format ) : string
    dateTime KDateTime
    format KLocale
    Результат string

    FormatDateTime() публичный Метод

    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
    Результат string

    FormatDateTime() публичный Метод

    public FormatDateTime ( Qyoto.QDateTime dateTime ) : string
    dateTime Qyoto.QDateTime
    Результат string

    FormatDateTime() публичный Метод

    public FormatDateTime ( Qyoto.QDateTime dateTime, KLocale format ) : string
    dateTime Qyoto.QDateTime
    format KLocale
    Результат string

    FormatDateTime() публичный Метод

    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
    Результат string

    FormatDuration() публичный Метод

    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
    Результат string

    FormatLong() публичный Метод

    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
    Результат string

    FormatMoney() публичный Метод

    public FormatMoney ( double num ) : string
    num double
    Результат string

    FormatMoney() публичный Метод

    public FormatMoney ( double num, string currency ) : string
    num double
    currency string
    Результат string

    FormatMoney() публичный Метод

    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
    Результат string

    FormatNumber() публичный Метод

    public FormatNumber ( double num ) : string
    num double
    Результат string

    FormatNumber() публичный Метод

    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
    Результат string

    FormatNumber() публичный Метод

    public FormatNumber ( string numStr ) : string
    numStr string
    Результат string

    FormatNumber() публичный Метод

    public FormatNumber ( string numStr, bool round ) : string
    numStr string
    round bool
    Результат string

    FormatNumber() публичный Метод

    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
    Результат string

    FormatTime() публичный Метод

    public FormatTime ( Qyoto.QTime pTime ) : string
    pTime Qyoto.QTime
    Результат string

    FormatTime() публичный Метод

    public FormatTime ( Qyoto.QTime pTime, bool includeSecs ) : string
    pTime Qyoto.QTime
    includeSecs bool
    Результат string

    FormatTime() публичный Метод

    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
    Результат string

    FracDigits() публичный Метод

    The number of fractional digits to include in numeric/monetary values (usually 2).
    public FracDigits ( ) : int
    Результат int

    InsertCatalog() публичный Метод

    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
    Результат void

    IsApplicationTranslatedInto() публичный Метод

    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
    Результат bool

    KLocale() публичный Метод

    Copy constructor.
    public KLocale ( KLocale rhs ) : System
    rhs KLocale
    Результат System

    KLocale() защищенный Метод

    protected KLocale ( Type dummy ) : System
    dummy System.Type
    Результат System

    KLocale() публичный Метод

    public KLocale ( string catalog ) : System
    catalog string
    Результат System

    KLocale() публичный Метод

    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
    Результат System

    KLocale() публичный Метод

    public KLocale ( string catalog, string language ) : System
    catalog string
    language string
    Результат System

    KLocale() публичный Метод

    public KLocale ( string catalog, string language, string country ) : System
    catalog string
    language string
    country string
    Результат System

    KLocale() публичный Метод

    public KLocale ( string catalog, string language, string country, Kimono.KConfig config ) : System
    catalog string
    language string
    country string
    config Kimono.KConfig
    Результат System

    Language() публичный Метод

    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
    Результат string

    LanguageCodeToName() публичный Метод

    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
    Результат string

    LanguageList() публичный Метод

    Returns the language codes selected by user, ordered by decreasing priority. Use languageCodeToName(language) to get human readable, localized language name.
    public LanguageList ( ) : List
    Результат List

    LocalizedFilePath() публичный Метод

    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
    Результат string

    MonetaryDecimalSymbol() публичный Метод

    Returns what a decimal point should look like ("." or "," etc.) for monetary values, according to the current locale or user settings.
    public MonetaryDecimalSymbol ( ) : string
    Результат string

    MonetaryThousandsSeparator() публичный Метод

    Returns what a thousands separator for monetary values should look like ("," or " " etc.) according to the current locale or user settings.
    public MonetaryThousandsSeparator ( ) : string
    Результат string

    NegativeMonetarySignPosition() публичный Метод

    Denotes where to place a negative sign in relation to a monetary value.
    public NegativeMonetarySignPosition ( ) : KLocale.SignPosition
    Результат KLocale.SignPosition

    NegativePrefixCurrencySymbol() публичный Метод

    If and only if the currency symbol precedes a negative value, this will be true.
    public NegativePrefixCurrencySymbol ( ) : bool
    Результат bool

    NegativeSign() публичный Метод

    Returns what a negative sign should look like ("-", etc.) according to the current locale or user settings.
    public NegativeSign ( ) : string
    Результат string

    NounDeclension() публичный Метод

    Use this to determine whether nouns are declined in locale's language. This property should remain read-only (no setter function)
    public NounDeclension ( ) : bool
    Результат bool

    PageSize() публичный Метод

    Returns the preferred page size for printing.
    public PageSize ( ) : int
    Результат int

    PositiveMonetarySignPosition() публичный Метод

    Returns the position of a positive sign in relation to a monetary value.
    public PositiveMonetarySignPosition ( ) : KLocale.SignPosition
    Результат KLocale.SignPosition

    PositivePrefixCurrencySymbol() публичный Метод

    If and only if the currency symbol precedes a positive value, this will be true.
    public PositivePrefixCurrencySymbol ( ) : bool
    Результат bool

    PositiveSign() публичный Метод

    Returns what a positive sign should look like ("+", " ", etc.) according to the current locale or user settings.
    public PositiveSign ( ) : string
    Результат string

    ReadDate() публичный Метод

    public ReadDate ( string str ) : QDate
    str string
    Результат QDate

    ReadDate() публичный Метод

    public ReadDate ( string str, KLocale flags ) : QDate
    str string
    flags KLocale
    Результат QDate

    ReadDate() публичный Метод

    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
    Результат QDate

    ReadDate() публичный Метод

    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
    Результат QDate

    ReadDate() публичный Метод

    public ReadDate ( string intstr, string fmt ) : QDate
    intstr string
    fmt string
    Результат QDate

    ReadDate() публичный Метод

    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
    Результат QDate

    ReadMoney() публичный Метод

    public ReadMoney ( string numStr ) : double
    numStr string
    Результат double

    ReadMoney() публичный Метод

    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
    Результат double

    ReadNumber() публичный Метод

    public ReadNumber ( string numStr ) : double
    numStr string
    Результат double

    ReadNumber() публичный Метод

    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
    Результат double

    ReadTime() публичный Метод

    public ReadTime ( string str ) : Qyoto.QTime
    str string
    Результат Qyoto.QTime

    ReadTime() публичный Метод

    public ReadTime ( string str, KLocale flags ) : Qyoto.QTime
    str string
    flags KLocale
    Результат Qyoto.QTime

    ReadTime() публичный Метод

    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
    Результат Qyoto.QTime

    ReadTime() публичный Метод

    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
    Результат Qyoto.QTime

    RemoveCatalog() публичный Метод

    Removes a catalog for translation lookup. name="catalog" The catalog to remove.
    public RemoveCatalog ( string catalog ) : void
    catalog string
    Результат void

    SetActiveCatalog() публичный Метод

    Sets the active catalog for translation lookup. name="catalog" The catalog to activate.
    public SetActiveCatalog ( string catalog ) : void
    catalog string
    Результат void

    SetCalendar() публичный Метод

    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
    Результат void

    SetCountry() публичный Метод

    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
    Результат bool

    SetCurrencySymbol() публичный Метод

    Changes the current currency symbol. name="symbol" The new currency symbol
    public SetCurrencySymbol ( string symbol ) : void
    symbol string
    Результат void

    SetDateFormat() публичный Метод

    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
    Результат void

    SetDateFormatShort() публичный Метод

    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
    Результат void

    SetDateMonthNamePossessive() публичный Метод

    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
    Результат void

    SetDecimalSymbol() публичный Метод

    Changes the symbol used to identify the decimal pointer. name="symbol" The new decimal symbol.
    public SetDecimalSymbol ( string symbol ) : void
    symbol string
    Результат void

    SetEncoding() публичный Метод

    Changes the current encoding. name="mibEnum" The mib of the preferred codec
    public SetEncoding ( int mibEnum ) : bool
    mibEnum int
    Результат bool

    SetFracDigits() публичный Метод

    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
    Результат void

    SetLanguage() публичный Метод

    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
    Результат bool

    SetLanguage() публичный Метод

    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
    Результат bool

    SetMainCatalog() публичный статический Метод

    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
    Результат void

    SetMeasureSystem() публичный Метод

    Changes the preferred measuring system.
    public SetMeasureSystem ( KLocale value ) : void
    value KLocale
    Результат void

    SetMonetaryDecimalSymbol() публичный Метод

    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
    Результат void

    SetMonetaryThousandsSeparator() публичный Метод

    Changes the separator used to group digits when formating monetary values. name="separator" The new thousands separator.
    public SetMonetaryThousandsSeparator ( string separator ) : void
    separator string
    Результат void

    SetNegativeMonetarySignPosition() публичный Метод

    Changes the sign position used for negative monetary values. name="signpos" The new sign position
    public SetNegativeMonetarySignPosition ( KLocale signpos ) : void
    signpos KLocale
    Результат void

    SetNegativePrefixCurrencySymbol() публичный Метод

    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
    Результат void

    SetNegativeSign() публичный Метод

    Changes the sign used to identify a negative number. name="sign" Sign used for negative numbers.
    public SetNegativeSign ( string sign ) : void
    sign string
    Результат void

    SetPageSize() публичный Метод

    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
    Результат void

    SetPositiveMonetarySignPosition() публичный Метод

    Changes the sign position used for positive monetary values. name="signpos" The new sign position
    public SetPositiveMonetarySignPosition ( KLocale signpos ) : void
    signpos KLocale
    Результат void

    SetPositivePrefixCurrencySymbol() публичный Метод

    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
    Результат void

    SetPositiveSign() публичный Метод

    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
    Результат void

    SetThousandsSeparator() публичный Метод

    Changes the separator used to group digits when formating numbers. name="separator" The new thousands separator.
    public SetThousandsSeparator ( string separator ) : void
    separator string
    Результат void

    SetTimeFormat() публичный Метод

    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
    Результат void

    SetWeekStartDay() публичный Метод

    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
    Результат void

    SplitLocale() публичный статический Метод

    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
    Результат void

    ThousandsSeparator() публичный Метод

    Returns what the thousands separator should look like ("," or "." etc.) according to the current locale or user settings.
    public ThousandsSeparator ( ) : string
    Результат string

    TimeFormat() публичный Метод

    Returns the currently selected time format.
    public TimeFormat ( ) : string
    Результат string

    TranslateQt() публичный Метод

    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
    Результат string

    TranslateRaw() публичный Метод

    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
    Результат void

    TranslateRaw() публичный Метод

    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
    Результат void

    TranslateRaw() публичный Метод

    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
    Результат void

    TranslateRaw() публичный Метод

    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
    Результат void

    Use12Clock() публичный Метод

    Use this to determine if the user wants a 12 hour clock.
    public Use12Clock ( ) : bool
    Результат bool

    UseTranscript() публичный Метод

    Reports whether evaluation of translation scripts is enabled.
    public UseTranscript ( ) : bool
    Результат bool

    WeekStartDay() публичный Метод

    Use this to determine which day is the first day of the week.
    public WeekStartDay ( ) : int
    Результат int

    dateFormat() публичный Метод

    Returns the currently selected date format.
    public dateFormat ( ) : string
    Результат string

    measureSystem() публичный Метод

    Returns which measuring system we use.
    public measureSystem ( ) : KLocale.MeasureSystem
    Результат KLocale.MeasureSystem

    Описание свойств

    interceptor защищенное свойство

    protected SmokeInvocation,Qyoto interceptor
    Результат Qyoto.SmokeInvocation