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; } } ?>
Savour every moment to the full at the 5-star hotel in South Tyrol. Immerse yourself in an incredibly rich world of wellbeing, indulgence and gratification. Be impressed by the warmth and sincerity at your 5-star hotel in South Tyrol, discover a completely new attitude to life.
We make the Weinegg hotel into your luxury hotel in South Tyrol: Luxury is time to yourself, luxury is when someone can read you every wish from your face, luxury is doing whatever you fancy. Enjoy this luxury at the 5-star Weinegg hotel in South Tyrol's south, surrounded by a magical landscape of vineyards and mountains, every day.
All rooms and suites have been lovingly designed and ensure you have a relaxing sleep, the romantic restaurant invites you to indulge without being disturbed and the terrace offers you dining with fantastic views. The wonderful Wellviva spa area at our outstanding 5-star hotel in South Tyrol provides you with a first-class relaxing holiday.
At the 5-star hotel in South Tyrol, fragrant wood, natural colours, superb quality materials and plenty of light provide a pure feel-good factor.
The Weinegg hotel is situated in Cornaiano/Girlan, surrounded by vast vineyards and far away from noise, stress and hustle and bustle.