temp disable limit.txt

Popular automatic website translation tool

temp disable limit.txt

Postby radicio » Mon Feb 27, 2012 5:22 pm

Hello,

I am now using my own API key, and would like entire website translated fast
But, limit.txt blocks translation process, to save translation resources ( which is normally VERY good )
How can i please disable this limit for a few days, so that my website gets translated faster, at Google API limit of 2M characters/day?

Thank you
radicio
 
Posts: 9
Joined: Tue Dec 06, 2011 5:46 pm

Re: temp disable limit.txt

Postby Yana » Wed Feb 29, 2012 2:27 am

Hi,
You can delete limit.txt file but also you can append ?force_translation=1 to the end of the URL and it will forcibly translate the content to the end. It will ignore limit.txt file.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: temp disable limit.txt

Postby radicio » Thu Mar 01, 2012 3:35 pm

Hello Y

I knew about those 2 "tricks", cannot do either:

Deleting the file helps for a few seconds, the file is created again every few seconds. My site has more than a hundred thousand pages indexed by Google, multiply by 3 for just 3 languages. Means i should be deleting that file manually by hand , day and night, for a year :)

Second solution, cannot do either, as i already have a BIG problem with Google duplicates, due to the poor programming of the forum part ( invision forum ) . Adding this parameter will cause Google to register even more duplicate pages


Solution is this file STOP generated, or disabled somehow.
At the moment, with this file, Google APi use stops at 160.000 characters a day.

EDIT
If we can disable that limit file, translation can proceed at 100X times faster, and instead of waiting 2 years, it will finish in 3-4 days.
radicio
 
Posts: 9
Joined: Tue Dec 06, 2011 5:46 pm

Re: temp disable limit.txt

Postby radicio » Wed Mar 07, 2012 12:05 pm

add in config.php something like:

Code: Select all
$myFile = "cache/limit.txt";
unlink($myFile);


looks ok ?


or, in config.php, write a timestamp that is old and will force translate, like

Code: Select all
$fh = fopen('cache/limit.txt', 'a');
fwrite($fh, '1331106417');
fclose($fh);


looks ok?
you think one of those 2 solutions is better?
radicio
 
Posts: 9
Joined: Tue Dec 06, 2011 5:46 pm

Re: temp disable limit.txt

Postby radicio » Thu Mar 08, 2012 12:48 pm

Edvard i can pay you $20 for your time

open translate.php find where you have that 5*60 ( the 5 minutes you say it is in the time stamp) and make it 1*60 ( 1 minute )
or, even better DELETE that conditional statement you have there, and send me that file to my email

I can then put in place that file for a week, have my site translated, and then switch back to the original file
Is this so hard?
Please respond
radicio
 
Posts: 9
Joined: Tue Dec 06, 2011 5:46 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux