KWeb  6.4
Strings.php File Reference

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.

Function Documentation

__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.

Parameters:
$nameStrings catalog to use
$textpolish text to be translated
$langLanguage 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

Parameters:
$nameStrings catalog to use
$idSingularId or english text for singular
$idPluralenglish text for plural, or FALSE if you've used id for singular
$number
$langLanguage 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.

Parameters:
$nameStrings catalog to use
$pluralsarray of polish texts for plurals
$number
$langLanguage 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

Parameters:
$nameOrMessageStrings catalog to use, or message if you are using main catalog
$messageId or english text to be translated
$langLanguage to translate to, or FALSE for current language