|
KWeb
6.4
|
Data Structures | |
| class | Strings |
| Class for retrieving translation strings. More... | |
| class | KDBSettings_strings |
Functions | |
| __s ($nameOrMessage, $message=false, $lang=false, $default=false) | |
| Translates message using provided strings catalog. | |
| __plural ($name, $idSingular, $idPlural, $number, $lang=false) | |
| Translates plurals using provided strings catalog. | |
| __PL ($nameOrMessage, $text=null, $lang=false) | |
| Translates POLISH message using provided strings catalog. | |
| __pluralPL ($name, $singular, $plural2, $plural5, $number, $lang=false) | |
| Translates POLISH plural using provided strings catalog. | |
| __PL | ( | $ | nameOrMessage, |
| $ | text = null, |
||
| $ | lang = false |
||
| ) |
Translates POLISH message using provided strings catalog.
If $lang is not polish, message is first translated into english id, and then translated to the target language. If the message is not translated, original message is returned.
| $name | Strings catalog to use |
| $text | polish text to be translated |
| $lang | Language to translate to, or FALSE for current language |
| __plural | ( | $ | name, |
| $ | idSingular, | ||
| $ | idPlural, | ||
| $ | number, | ||
| $ | lang = false |
||
| ) |
Translates plurals using provided strings catalog.
If the message is not translated, original message is returned
| $name | Strings catalog to use |
| $idSingular | Id or english text for singular |
| $idPlural | english text for plural, or FALSE if you've used id for singular |
| $number | |
| $lang | Language to translate to, or FALSE for current language |
| __pluralPL | ( | $ | name, |
| $ | singular, | ||
| $ | plural2, | ||
| $ | plural5, | ||
| $ | number, | ||
| $ | lang = false |
||
| ) |
Translates POLISH plural using provided strings catalog.
If $lang is not polish, message is first translated into english id, and then translated to the target language. If the message is not translated, original message is returned.
| $name | Strings catalog to use |
| $plurals | array of polish texts for plurals |
| $number | |
| $lang | Language to translate to, or FALSE for current language |
| __s | ( | $ | nameOrMessage, |
| $ | message = false, |
||
| $ | lang = false, |
||
| $ | default = false |
||
| ) |
Translates message using provided strings catalog.
If the message is not translated, original message is returned
| $nameOrMessage | Strings catalog to use, or message if you are using main catalog |
| $message | Id or english text to be translated |
| $lang | Language to translate to, or FALSE for current language |