German ( de_DE ) "; foreach (glob(dirname(__FILE__) . '/locale/*_*') as $localename) { if (strpos($langopt, "'" . basename($localename) . "'") === false) { $langopt.=""; } } $pohead="# Translation of 4.1.x in English (Australia) # This file is distributed under the same license as the 4.1.x package. msgid \"\" msgstr \"\" \"PO-Revision-Date: 2015-05-19 10:42+1000" . "\\n\" \"MIME-Version: 1.0" . "\\n\" \"Content-Type: text/plain; charset=UTF-8" . "\\n\" \"Content-Transfer-Encoding: 8bit" . "\\n\" \"Plural-Forms: nplurals=2; plural=(n != 1);" . "\\n\" \"X-Generator: Poedit 1.7.6" . "\\n\" \"Project-Id-Version: 4.1.x" . "\\n\" \"POT-Creation-Date: " . "\\n\" \"Last-Translator: " . "\\n\" \"Language-Team: " . "\\n\" \"Language: de_DE" . "\\n\" "; $wordopt=" "; $codeset = "UTF8"; // warning ! not UTF-8 with dash '-' $newpo=''; if (isset($_GET['msgin']) && isset($_GET['msgstr'])) { if (strlen($_GET['msgin']) > 0) { $newpo="\n\n msgid \"" . str_replace('+',' ',urldecode($_GET['msgin'])) . server_remote_addr() . "\"\n msgstr \"" . str_replace('+',' ',urldecode($_GET['msgstr'])) . "\"\n\n"; } } // for windows compatibility (e.g. xampp) : theses 3 lines are useless for linux systems $lang="de_DE"; if (isset($_GET['langin'])) { $lang=str_replace('+',' ',urldecode($_GET['langin'])); if (strpos($langopt, "'" . explode('.', $lang)[0] . "'") === false) { if (sizeof(explode('_', $lang)) > 1 && sizeof(explode('_', $lang)) <= 3) { if (explode('_', $lang)[0] == strtolower(explode('_', $lang)[0]) && explode('_', $lang)[1] == strtoupper(explode('_', $lang)[1])) { if (!file_exists(dirname(__FILE__) . '/locale/' . explode('.', $lang)[0])) { exec('mkdir ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . '; ' . 'mkdir ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES'); //echo " a "; file_put_contents(dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po', str_replace('de_DE',explode('.', $lang)[0],$pohead . $newpo)); //echo " b "; //exit; if ($newpo != '') { $newpo=''; } if (file_exists('/usr/local/bin/msgfmt')) { exec('/usr/local/bin/msgfmt ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po -o ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.mo 2> x555.x555'); } else { exec('/usr/bin/msgfmt ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po -o ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.mo 2> x555.x555'); } //echo " g "; //exit; foreach (glob(dirname(__FILE__) . '/locale/*_*') as $localename) { if (strpos($langopt, "'" . basename($localename) . "'") === false) { $langopt.=""; } } exit; } else if ($newpo != '') { //echo " cc " . $newpo; //exit; file_put_contents(dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po', file_get_contents(dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po') . $newpo); //echo " e "; if (file_exists('/usr/local/bin/msgfmt')) { exec('/usr/local/bin/msgfmt ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po -o ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.mo 2> x55.x55'); } else { exec('/usr/bin/msgfmt ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po -o ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.mo 2> x55.x55'); } //echo " f "; //exit; $newpo=''; exit; } } } } else if ($newpo != '') { //echo " c " . $newpo; //echo "herex"; //exit; file_put_contents(dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po', file_get_contents(dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po') . $newpo); // echo " e "; if (file_exists('/usr/local/bin/msgfmt')) { exec('/usr/local/bin/msgfmt ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po -o ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.mo 2> x5.x5'); } else { exec('/usr/bin/msgfmt ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po -o ' . dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.mo 2> x5.x5'); } //echo " f "; //exit; $newpo=''; exit; } } putenv('LANG='.$lang.'.'.$codeset); putenv('LANGUAGE='.$lang.'.'.$codeset); bind_textdomain_codeset('messages', $codeset); // set locale bindtextdomain('messages', dirname(__FILE__) . '/locale/'); setlocale(LC_ALL, $lang.'.'.$codeset); textdomain('messages'); $word="Sidebar"; if (isset($_GET['wordin'])) { $word=str_replace('+',' ',urldecode($_GET['wordin'])); } $defdiv="
| Language From | Language To | Word/Phrase to Translate |
|---|---|---|
| English ( en_GB ) |