One day, through a freelance exchange, another order came in to translate a large amount of data from a website — from English into Russian.

To quickly complete the task and meet the agreed deadlines, it was necessary to process large chunks of text and parse a lot of information. But this was not a problem, since we have software called :ZennoPoster:. With its help, we can implement the process as efficiently and easily as possible, because it already has a special module that allows connecting the Yandex Translator API.

api-translate

Difficulties Encountered During Translation

The only drawback was the lack of a standard feature in the module settings to switch API keys from the provided list. It was inconvenient to switch them each time in the program's settings, especially when dealing with large volumes of text — this action made no sense.

Other software flaws included the program's inability to function when manually changing the API key and continuing the translation process, as well as the necessity to restart the program every time after entering a key in the software settings. In other words, if you decided to change the key, you had to restart ZennoPoster and continue translating the text from the last paragraph, which was extremely illogical. However, there is a ready-made solution for this!

Finding a Solution on the Zennolab Forum

Usually, if you encounter any difficulty while writing a script for :ZennoPoster:, you will definitely get help solving the problem on the Zennolab forum. I also created an additional thread on the forum describing the difficulty I faced during translation, but unfortunately, I did not immediately find a ready-made solution. A friend came to the rescue, pointing me to where I could find the answer to my question, and this solution worked perfectly for me. The essence was as follows:

  • You insert the API key using C# code (which can later be changed, of course);
  • Next, you collect the data sentence by sentence and add it to a list (to avoid errors when translating large volumes of text);
  • Then, you perform the translation, store the collected data in a variable, and save it in the required format (TXT, CSV, EXCEL).

Conclusions

The software is truly a versatile product that can be used to solve almost any task. It supports translation modules not only from Yandex but also from Google, Microsoft, Bing, and others.

To make routine tasks faster and avoid spending too much time on them, I recommend following the link...

Was this helpful?

A
Admin

Blogger and educator on photography, design, and digital creativity.

All articles