function StringForGenderInt($genderInt)
{
// use language file by Jako
if ($genderInt == 1)
{
return isset($this->LanguageArray[106]) ? $this->LanguageArray[106] : 'Male';
}
else if ($genderInt == 2)
{
return isset($this->LanguageArray[107]) ? $this->LanguageArray[107] : 'Female';
}
else
{
return $this->LanguageArray[33];
}
}
Following strings have to be set i.e. in the german language file:
$wlpe_lang[106] = 'Männlich';
$wlpe_lang[107] = 'Weiblich';
function StringForCountryInt($countryInt)
{
global $modx;
$countryInt = (string) $countryInt;
// use manager country.inc by Jako
$_country_lang = array();
$langFile = isset($this->LanguageArray[44]) ? $this->LanguageArray[44] : 'english';
if(file_exists($modx->config['base_path']."manager/includes/lang/country/".$langFile."_country.inc.php")) {
include $modx->config['base_path']."manager/includes/lang/country/".$langFile."_country.inc.php";
} else {
include $modx->config['base_path']."manager/includes/lang/country/english_country.inc.php";
}
return $_country_lang[$countryInt];
}
Following string has to be set i.e. in the german language file:
$wlpe_lang[44] = 'german';