class_mcLanguage.inc.php
701 Bytes
<?php
class mcLanguage {
private static $Language = 'deu';
private static $Words = array(
'deu' => array(
)
);
public static function setLanguage($param_Language, $param_LanguageTranslationArray=null) {
if(array_key_exists($param_Language, Language::$Words)) {
self::$Language = $param_Language;
} else if(is_array($param_LanguageTranslationArray)) {
self::$Language = $param_Language;
self::$Words[self::$Language] = $param_LanguageTranslationArray;
}
}
public static function getWord($param_Word) {
if(array_key_exists($param_Word, self::$Words[self::$Language])) {
return self::$Words[self::$Language][$param_Word];
} else {
return $param_Word;
}
}
}
?>