S
S
SkazochNik2011-04-20 17:11:34
Opera
SkazochNik, 2011-04-20 17:11:34

Translation systems for program interfaces into various languages

Hello dear friends!

Often on the Internet you can find systems for translating texts by paragraphs, where a bunch of people from the street master entire volumes of Harry Potter in just a couple of nights. I even saw systems for writing subtitles for YouTube videos, subtitle translations.

But are there such online translators for xml text, for example? Or is it a myth and is it better to make your bike?

Crowdsourcing is needed for an open source project. Nothing personal.

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
LastDragon, 2011-04-20
@SkazochNik

Look at this question there it was also discussed (briefly: GlotPress , pootle , Crowdin )

B
Baileys, 2011-04-20
@Baileys

All services are paid. There is an option to use Google translator, but not in quite standard ways. The article describes how to use Google .

V
Volka, 2011-04-20
@ibnteo

For this, I wrote a simple script that, in the absence of the required translation, automatically translates in Google and saves it for future use. At the moment, my reference books are in JSON, but you can also translate XML in this way by going through it and translating each text separately.
Translation function:

<?php
function i18n_translate($s_text, $s_lang, $d_lang) {
    $post_data['q'] = $s_text;
    $post_data['langpair'] = $s_lang."|".$d_lang;
    $query = http_build_query($post_data);
    $url = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0";
    $c = curl_init();
    curl_setopt($c, CURLOPT_URL, $url);
    curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($c, CURLOPT_POST, 0);
    curl_setopt($c, CURLOPT_POSTFIELDS, $query);
    $b = curl_exec($c);
    curl_close($c);
    $json = json_decode($b, true);
    if ($json['responseStatus'] != 200) return false;
    return html_entity_decode($json['responseData']['translatedText'], ENT_QUOTES);
}

Just do not need to translate a lot in this way, otherwise Google will ban the IP, and will ask for a captcha, i.e. the script will stop working.

U
Ura78, 2011-04-20
@Ura78

Try TranslateXML

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question