''){ $traductor = "YANDEX"; } if ($GOOGLE_TRANSLATE_API_KEY <> ''){ $traductor = "GOOGLE"; } if (!$_REQUEST['language2translate']) { print("
"); print("".ucfirst(_TRANSLATE)." "._FROM." ".langname($NATIVE_LANGUAGE)." "._TO.": "); print(""); print("
"); if ($traductor == "YANDEX") { echo '

Powered by Yandex.Translate'; } }else{ $to = trim(strtolower($_REQUEST[language2translate])); $blankrecords = query("SELECT count(string) FROM ml_languages WHERE $to IS NULL OR $to = ''",1); $registros=0; $data = query("SELECT * FROM ml_languages WHERE $to IS NULL OR $to = '' ORDER BY string",0); $totalblank = $blankrecords[0]; OutputInfo('statusinfo', ''); echo "

"; while($row=mysql_fetch_array($data)) { $registros++; $traduccion = translate($row[$NATIVE_LANGUAGE],$NATIVE_LANGUAGE,$to,$traductor); $blankrecords[0] --; OutputInfo("statusinfo", "".$blankrecords[0]." ".lang('_PHRASES_UNTRANSLATED')."

$registros/$totalblank: $row[$NATIVE_LANGUAGE]  ==>  $traduccion"); $query = "UPDATE ml_languages SET ".$to." = '".$traduccion."' WHERE string = '".$row[string]."' LIMIT 1"; if (!mysql_query($query)) {echo '
ERROR
'.mysql_error(); exit;} } echo "
"; if ($registros==0) { print("0 ".lang('_PHRASES_UNTRANSLATED').""); } } include("footer.php"); ?>