Ki18n
|
#include <ki18n_export.h>
#include <QtCore/QChar>
#include <QtCore/QLatin1Char>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <kuitmarkup.h>
Go to the source code of this file.
Classes | |
class | KLocalizedString |
Class for producing and handling localized messages. More... |
Macros | |
#define | I18N_NOOP(text) text |
#define | I18NC_NOOP(context, text) context, text |
#define | I18N_NOOP2(context, text) text |
#define | I18N_NOOP2_NOSTRIP(context, text) context, text |
Functions | |
QString | i18n (const char *text, const TYPE &arg...) |
QString | i18nc (const char *context, const char *text, const TYPE &arg...) |
QString | i18np (const char *singular, const char *plural, const TYPE &arg...) |
QString | i18ncp (const char *context, const char *singular, const char *plural, const TYPE &arg...) |
QString | i18nd (const char *domain, const char *text, const TYPE &arg...) |
QString | i18ndc (const char *domain, const char *context, const char *text, const TYPE &arg...) |
QString | i18ndp (const char *domain, const char *singular, const char *plural, const TYPE &arg...) |
QString | i18ndcp (const char *domain, const char *context, const char *singular, const char *plural, const TYPE &arg...) |
QString | xi18n (const char *text, const TYPE &arg...) |
QString | xi18nc (const char *context, const char *text, const TYPE &arg...) |
QString | xi18np (const char *singular, const char *plural, const TYPE &arg...) |
QString | xi18ncp (const char *context, const char *singular, const char *plural, const TYPE &arg...) |
QString | xi18nd (const char *domain, const char *text, const TYPE &arg...) |
QString | xi18ndc (const char *domain, const char *context, const char *text, const TYPE &arg...) |
QString | xi18ndp (const char *domain, const char *singular, const char *plural, const TYPE &arg...) |
QString | xi18ndcp (const char *domain, const char *context, const char *singular, const char *plural, const TYPE &arg...) |
KLocalizedString KI18N_EXPORT | ki18n (const char *text) |
KLocalizedString KI18N_EXPORT | ki18nc (const char *context, const char *text) |
KLocalizedString KI18N_EXPORT | ki18np (const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | ki18ncp (const char *context, const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | ki18nd (const char *domain, const char *text) |
KLocalizedString KI18N_EXPORT | ki18ndc (const char *domain, const char *context, const char *text) |
KLocalizedString KI18N_EXPORT | ki18ndp (const char *domain, const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | ki18ndcp (const char *domain, const char *context, const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | kxi18n (const char *text) |
KLocalizedString KI18N_EXPORT | kxi18nc (const char *context, const char *text) |
KLocalizedString KI18N_EXPORT | kxi18np (const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | kxi18ncp (const char *context, const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | kxi18nd (const char *domain, const char *text) |
KLocalizedString KI18N_EXPORT | kxi18ndc (const char *domain, const char *context, const char *text) |
KLocalizedString KI18N_EXPORT | kxi18ndp (const char *domain, const char *singular, const char *plural) |
KLocalizedString KI18N_EXPORT | kxi18ndcp (const char *domain, const char *context, const char *singular, const char *plural) |
QString | tr2i18n (const char *text, const char *comment=0) |
QString | tr2i18nd (const char *domain, const char *text, const char *comment=0) |
QString | tr2xi18n (const char *text, const char *comment=0) |
QString | tr2xi18nd (const char *domain, const char *text, const char *comment=0) |
#define I18N_NOOP | ( | text | ) | text |
Wrap string for extraction.
See Extraction-Only Macros for use cases.
#define I18NC_NOOP | ( | context, | |
text | |||
) | context, text |
Wrap string with context for extraction.
See Extraction-Only Macros for use cases.
#define I18N_NOOP2 | ( | context, | |
text | |||
) | text |
Wrap string with context for extraction, discarding context.
I18NC_NOOP
. #define I18N_NOOP2_NOSTRIP | ( | context, | |
text | |||
) | context, text |
Wrap string with context for extraction.
I18NC_NOOP
. QString i18n | ( | const char * | text, |
const TYPE & | arg... | ||
) |
Translate a string and substitute any arguments.
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18nc | ( | const char * | context, |
const char * | text, | ||
const TYPE & | arg... | ||
) |
Translate a string with context and substitute any arguments.
context | context of the string |
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18np | ( | const char * | singular, |
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a string with plural and substitute any arguments.
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18ncp | ( | const char * | context, |
const char * | singular, | ||
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a string with context and plural and substitute any arguments.
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18nd | ( | const char * | domain, |
const char * | text, | ||
const TYPE & | arg... | ||
) |
Translate a string from domain and substitute any arguments.
domain | domain in which to look for translations |
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18ndc | ( | const char * | domain, |
const char * | context, | ||
const char * | text, | ||
const TYPE & | arg... | ||
) |
Translate a string from domain with context and substitute any arguments.
domain | domain in which to look for translations |
context | context of the string |
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18ndp | ( | const char * | domain, |
const char * | singular, | ||
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a string from domain with plural and substitute any arguments.
domain | domain in which to look for translations |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString i18ndcp | ( | const char * | domain, |
const char * | context, | ||
const char * | singular, | ||
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a string from domain with context and plural and substitute any arguments.
domain | domain in which to look for translations |
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18n | ( | const char * | text, |
const TYPE & | arg... | ||
) |
Translate a markup-aware string and substitute any arguments.
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18nc | ( | const char * | context, |
const char * | text, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string with context and substitute any arguments.
context | context of the string |
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18np | ( | const char * | singular, |
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string with plural and substitute any arguments.
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18ncp | ( | const char * | context, |
const char * | singular, | ||
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string with context and plural and substitute any arguments.
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18nd | ( | const char * | domain, |
const char * | text, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string from domain and substitute any arguments.
domain | domain in which to look for translations |
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18ndc | ( | const char * | domain, |
const char * | context, | ||
const char * | text, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string from domain with context and substitute any arguments.
domain | domain in which to look for translations |
context | context of the string |
text | string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18ndp | ( | const char * | domain, |
const char * | singular, | ||
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string from domain with plural and substitute any arguments.
domain | domain in which to look for translations |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
QString xi18ndcp | ( | const char * | domain, |
const char * | context, | ||
const char * | singular, | ||
const char * | plural, | ||
const TYPE & | arg... | ||
) |
Translate a markup-aware string from domain with context and plural and substitute any arguments.
domain | domain in which to look for translations |
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
arg | arguments to insert (0 to 9), admissible types according to KLocalizedString::subs methods |
KLocalizedString KI18N_EXPORT ki18n | ( | const char * | text | ) |
Create non-finalized translated string.
text | string to translate |
KLocalizedString KI18N_EXPORT ki18nc | ( | const char * | context, |
const char * | text | ||
) |
Create non-finalized translated string with context.
context | context of the string |
text | string to translate |
KLocalizedString KI18N_EXPORT ki18np | ( | const char * | singular, |
const char * | plural | ||
) |
Create non-finalized translated string with plural.
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT ki18ncp | ( | const char * | context, |
const char * | singular, | ||
const char * | plural | ||
) |
Create non-finalized translated string with context and plural.
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT ki18nd | ( | const char * | domain, |
const char * | text | ||
) |
Create non-finalized translated string from domain.
domain | domain in which to look for translations |
text | string to translate |
KLocalizedString KI18N_EXPORT ki18ndc | ( | const char * | domain, |
const char * | context, | ||
const char * | text | ||
) |
Create non-finalized translated string from domain with context.
domain | domain in which to look for translations |
context | context of the string |
text | string to translate |
KLocalizedString KI18N_EXPORT ki18ndp | ( | const char * | domain, |
const char * | singular, | ||
const char * | plural | ||
) |
Create non-finalized translated string from domain with plural.
domain | domain in which to look for translations |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT ki18ndcp | ( | const char * | domain, |
const char * | context, | ||
const char * | singular, | ||
const char * | plural | ||
) |
Create non-finalized translated string from domain with context and plural.
domain | domain in which to look for translations |
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT kxi18n | ( | const char * | text | ) |
Create non-finalized markup-aware translated string.
text | string to translate |
KLocalizedString KI18N_EXPORT kxi18nc | ( | const char * | context, |
const char * | text | ||
) |
Create non-finalized markup-aware translated string with context.
context | context of the string |
text | string to translate |
KLocalizedString KI18N_EXPORT kxi18np | ( | const char * | singular, |
const char * | plural | ||
) |
Create non-finalized markup-aware translated string with plural.
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT kxi18ncp | ( | const char * | context, |
const char * | singular, | ||
const char * | plural | ||
) |
Create non-finalized KUIT markup aware translated string with context and plural.
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT kxi18nd | ( | const char * | domain, |
const char * | text | ||
) |
Create non-finalized markup-aware translated string from domain.
domain | domain in which to look for translations |
text | string to translate |
KLocalizedString KI18N_EXPORT kxi18ndc | ( | const char * | domain, |
const char * | context, | ||
const char * | text | ||
) |
Create non-finalized markup-aware translated string from domain with context.
domain | domain in which to look for translations |
context | context of the string |
text | string to translate |
KLocalizedString KI18N_EXPORT kxi18ndp | ( | const char * | domain, |
const char * | singular, | ||
const char * | plural | ||
) |
Create non-finalized markup-aware translated string from domain with plural.
domain | domain in which to look for translations |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
KLocalizedString KI18N_EXPORT kxi18ndcp | ( | const char * | domain, |
const char * | context, | ||
const char * | singular, | ||
const char * | plural | ||
) |
Create non-finalized markup-aware translated string from domain with context and plural.
domain | domain in which to look for translations |
context | context of the string |
singular | singular form of the string to translate |
plural | plural form of the string to translate |
|
inline |
Redirect Qt's uic
-generated translation calls to Ki18n.
Use -tr tr2i18n
option to uic
to have it redirect calls.
text | string to translate |
comment | Qt equivalent of disambiguation context |
|
inline |
Like tr2i18n
, but look for translation in a specific domain.
Use -tr tr2i18nd
option to uic
to have it redirect calls.
domain | domain in which to look for translations |
text | string to translate |
comment | Qt equivalent of disambiguation context |
|
inline |
Like tr2i18n
, but when UI strings are KUIT markup-aware.
Use -tr tr2xi18n
option to uic
to have it redirect calls.
text | markup-aware string to translate |
comment | Qt equivalent of disambiguation context |
|
inline |
Like tr2xi18n
, but look for translation in a specific domain.
Use -tr tr2xi18nd
option to uic
to have it redirect calls.
domain | domain in which to look for translations |
text | markup-aware string to translate |
comment | Qt equivalent of disambiguation context |