31d30 < $onl=""; 125,138d123 < $lastfile=""; < if (file_exists('/tmp/get_text_moderation.txt')) { < $lines=explode("\n", file_get_contents('/tmp/get_text_moderation.txt')); < for ($ilines=0; $ilines" . explode('_await', explode(' msgid "', $lines[$ilines])[1])[0] . "" . "\n"; < } < } < } < } < 153,165c138 < if ($newpo != '') { < $filepre=dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po' . "\n"; < if (!file_exists('/tmp/get_text_moderation.txt')) { < file_put_contents('/tmp/get_text_moderation.txt', $filepre . " msgid " . str_replace("\n","",explode(' msgstr ',explode(' msgid ', $newpo)[1])[0])); < } else { < $pres=explode(DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR, file_get_contents('/tmp/get_text_moderation.txt')); < if (strpos(substr($pres[-2 + sizeof($pres)] . DIRECTORY_SEPARATOR,-20,20), DIRECTORY_SEPARATOR . explode('.', $lang)[0] . DIRECTORY_SEPARATOR ) !== false) { < $filepre=""; < } < file_put_contents('/tmp/get_text_moderation.txt', file_get_contents('/tmp/get_text_moderation.txt') . "\n " . $filepre . " msgid " . str_replace("\n","",explode(' msgstr ',explode(' msgid ', $newpo)[1])[0])); < } < $newpo=''; < } --- > if ($newpo != '') { $newpo=''; } 193,202d165 < $filepre=dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po' . "\n"; < if (!file_exists('/tmp/get_text_moderation.txt')) { < file_put_contents('/tmp/get_text_moderation.txt', $filepre . " msgid " . str_replace("\n","",explode(' msgstr ',explode(' msgid ', $newpo)[1])[0])); < } else { < $pres=explode(DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR, file_get_contents('/tmp/get_text_moderation.txt')); < if (strpos(substr($pres[-2 + sizeof($pres)] . DIRECTORY_SEPARATOR,-20,20), DIRECTORY_SEPARATOR . explode('.', $lang)[0] . DIRECTORY_SEPARATOR ) !== false) { < $filepre=""; < } < file_put_contents('/tmp/get_text_moderation.txt', file_get_contents('/tmp/get_text_moderation.txt') . "\n " . $filepre . " msgid " . str_replace("\n","",explode(' msgstr ',explode(' msgid ', $newpo)[1])[0])); < } 223,232d185 < $filepre=dirname(__FILE__) . '/locale/' . explode('.', $lang)[0] . DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR . 'messages.po' . "\n"; < if (!file_exists('/tmp/get_text_moderation.txt')) { < file_put_contents('/tmp/get_text_moderation.txt', $filepre . " msgid " . str_replace("\n","",explode(' msgstr ',explode(' msgid ', $newpo)[1])[0])); < } else { < $pres=explode(DIRECTORY_SEPARATOR . 'LC_MESSAGES' . DIRECTORY_SEPARATOR, file_get_contents('/tmp/get_text_moderation.txt')); < if (strpos(substr($pres[-2 + sizeof($pres)] . DIRECTORY_SEPARATOR,-20,20), DIRECTORY_SEPARATOR . explode('.', $lang)[0] . DIRECTORY_SEPARATOR ) !== false) { < $filepre=""; < } < file_put_contents('/tmp/get_text_moderation.txt', file_get_contents('/tmp/get_text_moderation.txt') . "\n " . $filepre . " msgid " . str_replace("\n","",explode(' msgstr ',explode(' msgid ', $newpo)[1])[0])); < } 260,262d212 < if ($word == gettext($word . server_remote_addr())) { < $onl=" onload=\"if (window.self !== window.top) { moreget=moreget; } else { window.open('//translate.google.com/?sl=en&tl=' + '" . substr($lang,0,2) . "' + '&text=' + encodeURIComponent('" . $word . "') + '&op=translate','_blank','top=100,left=700,width=600,height=600'); } \""; < } 266,268d215 < if ($word == _($word)) { < $onl=" onload=\"if (window.self !== window.top) { moreget=moreget; } else { window.open('//translate.google.com/?sl=en&tl=' + '" . substr($lang,0,2) . "' + '&text=' + encodeURIComponent('" . $word . "') + '&op=translate','_blank','top=100,left=700,width=600,height=600'); } \""; < } 314c261 < --- >