diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-11-25 21:07:08 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-11-25 21:07:08 +0100 |
commit | 813751ac7a0e3f17af791397fa7e6b60d526f0a0 (patch) | |
tree | ca1a0949a37b4dc61b261b908d7dc028fcbbb3ef /includes/view | |
parent | aad54bfe885e2ce69801597c791bff4b7f0e1521 (diff) |
language cleanup
Diffstat (limited to 'includes/view')
-rw-r--r-- | includes/view/Sprache_view.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/includes/view/Sprache_view.php b/includes/view/Sprache_view.php deleted file mode 100644 index 88c7435c..00000000 --- a/includes/view/Sprache_view.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -/** - * Names of available languages. - */ -$languages = array ( - 'DE' => "Deutsch", - 'EN' => "English" -); - -/** - * Display acutual translation of given text id. - * @param string $TextID - * @param bool $NoError - * @return string - */ -function Get_Text($TextID, $NoError = false) { - global $debug; - - if (!isset ($_SESSION['Sprache'])) - $_SESSION['Sprache'] = "EN"; - if ($_SESSION['Sprache'] == "") - $_SESSION['Sprache'] = "EN"; - if (isset ($_GET["SetLanguage"])) - $_SESSION['Sprache'] = $_GET["SetLanguage"]; - - $sprache_source = Sprache($TextID, $_SESSION['Sprache']); - if($sprache_source === false) - engelsystem_error("Unable to load text key."); - if($sprache_source == null) { - if($NoError && !$debug) - return ""; - return $TextID; - } - return $sprache_source['Text']; -} -?>
\ No newline at end of file |