[Solved] issue // page semi-translated

Popular automatic website translation tool

[Solved] issue // page semi-translated

Postby ors_86 » Sat Jul 09, 2011 1:40 pm

Hi,

I have installed and configure your software and it works fine.
But it has some issues, and i didn find a solution to the forums.
For example, at the url http://www.mysantorini.com/Santorini-Boat-Tours.html please select a language to translate, and you will replicate the issue, that aproximatelly the 50% content of the page are not been translated to the other language.
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby Edvard » Sat Jul 09, 2011 3:13 pm

I just tried Russian and everything seems to be translated: http://www.mysantorini.com/ru/Santorini-Boat-Tours.html
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: issue // page semi-translated

Postby ors_86 » Sat Jul 09, 2011 5:34 pm

edo888 wrote:I just tried Russian and everything seems to be translated: http://www.mysantorini.com/ru/Santorini-Boat-Tours.html


You havent performed enought tests in order to replicate the issue.
I just tried the Greek language http://www.mysantorini.com/el/Santorini-Boat-Tours.html and the issue was replicated, the page was semi-translated as i mentioned.

You can see at the following screenshot what i am talking about.
http://imageshack.us/photo/my-images/97/40803900.jpg/

Image
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby Edvard » Sat Jul 09, 2011 10:06 pm

Here are the steps to find out the reason for that.

1. Turn on debug mode from gtranslate/config.php - define('DEBUG', true);
2. Delete gtranslate/debug.txt file
3. Delete gtranslate/cache/limit.txt file
4. Go to http://www.mysantorini.com/el/Santorini-Boat-Tours.html
5. Check the debug.txt file and if you don't understand what is the reason, post it here.
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: issue // page semi-translated

Postby ors_86 » Mon Jul 11, 2011 11:24 am

There are the results of the debug file:

* About to connect() to www.mysantorini.com port 80 (#0)
* Trying 94.228.208.10... * connected
* Connected to www.mysantorini.com (94.228.208.10) port 80 (#0)
> GET /Caldera-Sunset-Tour-with-dinner.html HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Host: www.mysantorini.com
Accept: */*
Cookie: dd43749ba89043d8c36c17d3e0e8ab6d=285m13k4rlr1ou0ck1vq8vjvb6; fpssCookie=true

< HTTP/1.1 200 OK
< X-Powered-By: PHP/5.3.6
< P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
< Content-Type: text/html; charset=utf-8
< Expires: Mon, 1 Jan 2001 00:00:00 GMT
< Last-Modified: Mon, 11 Jul 2011 07:20:31 GMT
< Cache-Control: post-check=0, pre-check=0
< Pragma: no-cache
< Transfer-Encoding: chunked
< Date: Mon, 11 Jul 2011 07:20:31 GMT
< Server: lighttpd
<
* Connection #0 to host www.mysantorini.com left intact
* Closing connection #0
* About to connect() to www.mysantorini.com port 80 (#0)
* Trying 94.228.208.10... * connected
* Connected to www.mysantorini.com (94.228.208.10) port 80 (#0)
> GET / HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18
Host: www.mysantorini.com
Accept: */*
Cookie: dd43749ba89043d8c36c17d3e0e8ab6d=bg1oblcej8cofbg3mt3b6h1t41; fpssCookie=true

< HTTP/1.1 200 OK
< X-Powered-By: PHP/5.3.6
< P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
< Content-Type: text/html; charset=utf-8
< Expires: Mon, 1 Jan 2001 00:00:00 GMT
< Last-Modified: Mon, 11 Jul 2011 07:20:32 GMT
< Cache-Control: post-check=0, pre-check=0
< Pragma: no-cache
< Transfer-Encoding: chunked
< Date: Mon, 11 Jul 2011 07:20:32 GMT
< Server: lighttpd
<
* Connection #0 to host www.mysantorini.com left intact
* Closing connection #0
* About to connect() to www.mysantorini.com port 80 (#0)
* Trying 94.228.208.10... * connected
* Connected to www.mysantorini.com (94.228.208.10) port 80 (#0)
> GET /Santorini-Bus-Tours.html HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18
Host: www.mysantorini.com
Accept: */*
Cookie: dd43749ba89043d8c36c17d3e0e8ab6d=bg1oblcej8cofbg3mt3b6h1t41; fpssCookie=true

< HTTP/1.1 200 OK
< X-Powered-By: PHP/5.3.6
< P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
< Content-Type: text/html; charset=utf-8
< Expires: Mon, 1 Jan 2001 00:00:00 GMT
< Last-Modified: Mon, 11 Jul 2011 07:20:46 GMT
< Cache-Control: post-check=0, pre-check=0
< Pragma: no-cache
< Transfer-Encoding: chunked
< Date: Mon, 11 Jul 2011 07:20:46 GMT
< Server: lighttpd
<
* Connection #0 to host www.mysantorini.com left intact
* Closing connection #0
* About to connect() to www.mysantorini.com port 80 (#0)
* Trying 94.228.208.10... * connected
* Connected to www.mysantorini.com (94.228.208.10) port 80 (#0)
> GET /hotels/cori-rigas-hotel-rates-a-reservation HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Host: www.mysantorini.com
Accept: */*
Cookie:

< HTTP/1.1 200 OK
< X-Powered-By: PHP/5.3.6
< Set-Cookie: 78d8427031b089bdf9c70824321a67aa=4ej7b3ptghnhm66uhrlsbf1o93; path=/
< P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
< Content-Type: text/html; charset=utf-8
< Expires: Mon, 1 Jan 2001 00:00:00 GMT
< Last-Modified: Mon, 11 Jul 2011 07:20:49 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Transfer-Encoding: chunked
< Date: Mon, 11 Jul 2011 07:20:49 GMT
< Server: lighttpd
<
* Connection #0 to host www.mysantorini.com left intact
* Closing connection #0


I turned debug mode true, then i accessed the main domain, changed language, click a intrnal link, and the issue appeared.
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby Edvard » Mon Jul 11, 2011 2:25 pm

How much time passed between step 3 and 4? I think that after you deleted limit.txt file it was created again while you were going to step 4.

Do it again or send me FTP access to test it for you.
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: issue // page semi-translated

Postby ors_86 » Mon Jul 11, 2011 2:53 pm

You have sent you with pm the ftp details.
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby Edvard » Mon Jul 11, 2011 3:46 pm

I have checked and can see this response from Google:

Code: Select all
Response: {
"error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceeded",
    "message": "Daily Limit Exceeded"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded"
}
}


Which means that you just need to wait.

I suggest to choose the languages you want to have and disable the rest, so it will save translation traffic and you will get the translations faster.
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: issue // page semi-translated

Postby ors_86 » Mon Jul 11, 2011 4:25 pm

Which means that you just need to wait.

For how long we must wait untill google translates again?

I suggest to choose the languages you want to have and disable the rest, so it will save translation traffic and you will get the translations faster.

How much is the tranlation traffic that google let us to use?
Is there any way to raise that traffic limit?
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby Edvard » Mon Jul 11, 2011 4:40 pm

The daily limit is set to 100.000 characters.

It is being used to translate the most popular contents and languages first. So to force translate that particular page into Greek you need to open it every day.
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: issue // page semi-translated

Postby ors_86 » Mon Jul 11, 2011 4:42 pm

Okay, understood.
I will perform a few tests and update the post.

Thanks.
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby ors_86 » Wed Jul 27, 2011 7:10 pm

So you were right, it was a char limit issue, everthing works fine now, thanks!

Onother issue is that i cant find how to edit translations, i read that i must put "?language_edit=1" at the end of the url but without result. Can you please provide me an example?

Thanks
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: issue // page semi-translated

Postby Edvard » Thu Jul 28, 2011 3:41 pm

OK. Let's say that you are on this page on Spanish version http://domain.com/es/some-url.html.

To edit something on that page, you need to go http://domain.com/es/some-url.html?language_edit=1

If your URL is something similar to this with parameters http://domain.com/es/some-url.php?param1=x&param2=y you need to add &language_edit=1 in the end, so it will be
http://domain.com/es/some-url.php?param ... age_edit=1
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [Solved] issue // page semi-translated

Postby ors_86 » Thu Jul 28, 2011 4:03 pm

Thanks for the reply.
I have tryed that at 3 sites i have Gtranslate Pro without any result.
How can i edit the translations when we go to url?language_edit=1 ?
Please test one of our sites and provide to me an example.
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: [Solved] issue // page semi-translated

Postby Edvard » Thu Jul 28, 2011 4:10 pm

OK, your server seems to be lighttpd. Can you post here the rewrite rules for gtranslate?
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [Solved] issue // page semi-translated

Postby ors_86 » Thu Jul 28, 2011 5:30 pm

Of course, the rewrites are the following:

Code: Select all
url.rewrite-if-not-file = (
"^/([a-z]{2})/(.*)$" => "/gtranslate/translate.php?lang=$1&url=$2",
"^/([a-z]{2})$" => "/gtranslate/translate.php?lang=$1",
"^/(zh-CN)/(.*)$" => "/gtranslate/translate.php?lang=$1&url=$2",
"^/(zh-CN)$" => "/gtranslate/translate.php?lang=$1",
"^/(zh-TW)/(.*)$" => "/gtranslate/translate.php?lang=$1&url=$2",
"^/(zh-TW)$" => "/gtranslate/translate.php?lang=$1",
)
ors_86
 
Posts: 20
Joined: Sat Jul 09, 2011 1:37 pm

Re: [Solved] issue // page semi-translated

Postby Edvard » Thu Jul 28, 2011 11:47 pm

Hi,

There is a need for QSA (Query String Append). You can read this articles where it shows how to add QSA in lighttpd:

http://stackoverflow.com/questions/1451 ... -variables
http://forum.lighttpd.net/topic/7394
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron