class user_parseTSConsts { var $cObj; function main($content,$conf){ // Konstanten-Ordner wählen (absoluter Pfad) // wird in der Konfiguration kein Pfad übergeben wird der relative (relativ zur Script-Datei) Pfad '../../../ts/constants/' gewählt $const_root = (($conf['root'] != '') ? $conf['root'] : dirname(__FILE__).'/../../../ts/constants/'); // Leere Variable für die Ausgabe $content = ""; // Wenn das Verzeichnis nicht existiert wird nichts zurückgegeben if (is_dir($const_root)) { if ($const_files = opendir($const_root)) { // Alle Inhalte auslesen while (($curr_file = readdir($const_files)) !== false) { // Nur Dateien beachten if(is_file($const_root.$curr_file)){ // Variablen aus der 'const.base.ts' werden mit der Property 'global' gewrappt // Variablen aus den Sprachdateien werden mit dem entsprechenen Kürzel gewrappt (z.B.: de) if (strcmp($curr_file, 'const.base.ts') == 0) { $content .= "'global':{"; } else { $tmp = explode('.', $curr_file); $content .= "'".$tmp[0]."':{"; } // Leere Variable für die Property $local_lang = ""; // File Zeilenweise auslesen $locale = fopen($const_root.$curr_file, "r"); while (!feof($locale)) { $line = fgets($locale); // Nur wenn die Zeile mit einem Buchstaben beginnt if (preg_match('/^[a-zA-Z].*/',$line)) { // Aufteilein in Name und Wert durch Trennung an '=' $lineArr = explode('=', $line); // Whitespaces trimmen $local_lang .= "'".trim($lineArr[0])."':'".trim($lineArr[1])."',"; } } fclose($locale); // Sofern Werte gefunden wurden den Beistrich am Ende entfernen if (!empty($local_lang)) { $local_lang = substr($local_lang, 0, -1); } // Property eintragen und schliessen $content .= $local_lang.'},'; } } closedir($const_root); // Letzten Beistrich entfernen $content = substr($content, 0, -1); } } return $content; } } ?>
The gourmet cuisine at the Weinegg hotel is a feast for the senses. Totally in keeping with Goethe, no pleasure should be fleeting here, we strive every single day to leave you with a lasting impression. That is why our kitchen team led by head chef Roland Hofer only uses first-class quality ingredients, values careful preparation and gives every dish a very individual Weinegg touch. That is what makes our gourmet cuisine, which by the way you can also enjoy in our l‘Arena gourmet restaurant, where Masterchef Denny Mair conjures up delicacies, so special. To accompany our menu we serve the finest wines from our wine cellar.
We indulge your taste buds morning, noon and night in a stylish setting. We are happy to consider any intolerances and will prepare menus for special diets and allergies for you on request.
Our cosy hotel bar invites you to enjoy a sociable aperitif beforehand or digestif afterwards.