google translate

Post Reply
Nikso
Posts: 590
Joined: Tue Mar 05, 2013 3:59 am

google translate

Post by Nikso »

Перевели категории на 1 язык, все прошло нормально. Начинаем переводить на второй язык, часть переводится и затем получаем ошибку.

Code: Select all

php rotation.php action=translate
You are about to translate some of your information. Note, this service is based on Google Translate and it's not free
You can press Ctrl-C to interrupt this action at any time
This is a master site. You can translate texts for it as well as for any of linked sites.
Hit enter to translate texts for master site or enter any of the following numbers if you want to translate text for a linked site:

Type 1 for main_site
Type 15 for itsxxx.com::it
Type 16 for itsxxx.com::de
Type 17 for itsxxx.com::fr
Type 18 for itsxxx.com::es
Type 19 for itsxxx.com::cs
Type 20 for itsxxx.com::da
Type 21 for itsxxx.com::el
Type 22 for itsxxx.com::ko 
Type 23 for itsxxx.com::hu 
Type 24 for itsxxx.com::nl 
Type 25 for itsxxx.com::ja 
Type 26 for itsxxx.com::no 
Type 27 for itsxxx.com::pl 
Type 28 for itsxxx.com::pt 
Type 29 for itsxxx.com::sk 
Type 30 for itsxxx.com::sl 
Type 31 for itsxxx.com::fi 
Type 32 for itsxxx.com::hi 
Type 33 for itsxxx.com::hr 
Type 34 for itsxxx.com::ro 
Type 35 for itsxxx.com::sr 
Enter id or just hit enter for master: 35

What is source language (2 chars code) ? type 'list' if you need a list : en

What language do you want to translate to (2 chars code) ? type 'list' if you need a list : sr

What's your Google API key : xxxxxxxxx

What do you what to translate : categories, galleries or tags? categories

What field do you what to translate ? (Options: custom_name, description, group_keywords, custom_var1, custom_var2, custom_var3) custom_name 

What field do you what to save the result to ? (Options: custom_name, description, group_keywords, custom_var1, custom_var2, custom_var3) custom_name

This is the first translated phrase, we paused the process to show you results to make sure everything goes fine 


Phrase : 'Straight' was translated into 'право' 

If everything's ok - just hit 'enter' , otherwise hit Ctrl-C to interupt the process and start all over

Ok, looks like everything's ok. 

Do you want me to make a stop after each translation and ask for your confirmation or just silently go ahead ? 
Options: type 'stops' to make a stop after each phrase 
'log' - do not make stops but show each translated phrase 
'fast' - do not make stops, do not show translated phrases, just a percent of work done
Type your option (stops, log, fast):  log

Category custom_name: 'Gays' was translated into 'гаис' (4% done)

Category custom_name: 'Shemales' was translated into 'схемалес' (7% done)

Category custom_name: 'Amateur' was translated into 'аматер' (10% done)
Category custom_name: 'Anal' was translated into 'анал' (13% done)

Category custom_name: 'Asian' was translated into 'азијски' (16% done)

Category custom_name: 'Ass' was translated into 'дупе' (19% done)

Not 200 status from translation engine  (65.084529161453, 0.32528209686279)
Google traslation Engine returned an error, check your data
Build 201701091142 (Lastest build: 201701091142 )
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: google translate

Post by admin »

Not 200 status from translation engine

почему то гугл вернул не 200, может быть таймаут, может деньги там закончились

ошибка повторяется ?
Don't forget to run script update
Nikso
Posts: 590
Joined: Tue Mar 05, 2013 3:59 am

Re: google translate

Post by Nikso »

Баланс не могу посмотреть, но переводить начинает каждый раз. Несколько раз пробовали, и потом затык. Если бы баланс закончился то при следующей попытке сразу бы остановился перевод.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: google translate

Post by admin »

Можно проверить еще rot.log что пишет по этому поводу
Или скидывайте шел и что как запустить что б можно было повторить ошибку и понять в чем может быть причина
Don't forget to run script update
Nikso
Posts: 590
Joined: Tue Mar 05, 2013 3:59 am

Re: google translate

Post by Nikso »

в логе тоже также написано

Code: Select all

2017-01-09 09:25:09: Category custom_name: 'Anal' was translated into 'анал' (13% done) 
 (63.989903926849, 0.3351309299469)
2017-01-09 09:25:09: Category custom_name: 'Asian' was translated into 'азијски' (16% done) 
 (64.365653991699, 0.37574601173401)
2017-01-09 09:25:10: Category custom_name: 'Ass' was translated into 'дупе' (19% done) 
 (64.743350028992, 0.37769103050232)
2017-01-09 09:25:10: Not 200 status from translation engine  (65.068646907806, 0.3252911567688)
2017-01-09 09:25:10: Google traslation Engine returned an error, check your data  
Шелл скину в личку чуть позже
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: google translate

Post by admin »

ok
Don't forget to run script update
Post Reply