![]() |
And another problem - my site is in polish, I set $fl = 'pl'; but when hitting polish flag instead going to same page it translates it :eek: From polish to polish - it looks awful and also polish special letters disappears (i see rectangles instead).
|
Sorry for spamming - I have 1st at night right now and it's hard to think ;)
But it's best time to do things like installing your mod ;) So next thing - is it possible to also translate vbSEO links? Why after translation main page all links goes to normal languege? Can you make those going to actual language? |
Quote:
What about on my test site going from english to polish, are the words correct? http://www.blogboost.org/showthread.php?t=1&hl=pl Thanks. |
Quote:
If the script did that it would translate your registration, login everything and that would cause problems. This translates pages for bots and traffic, not users. |
Quote:
I have noted all your other issues and agree, they will be fixed in next update, after we finish improving the database speed for large sites. |
Quote:
I also sow in code that actual language is skipped during translation, but still something goes wrong - special letters disappears and result is like in wrong encoding, so I think that even skipped encoding is changes - maybe in headers. It should be just same link under flag without hl parameter and then we will have no problem with that. But still with translation of words with special letters. Speed is really awful, but I still think that its good idea - after cache it will give better places in google (i think so:)) and maybe better clicks in advertisements, because I will not have to cut off links about same theme - in other countries it's not my competition :P So there will be more good advertise in adSense. Great job and waiting for fast bug correction :up: |
Quote:
As I wrote I think there is encoding problem. You have everything in UTF8 so it is ok to show any language. But when someone starts i.e. from ISO-8859-2 and You send it to Google telling that it's in utf8 then its gibberish for google and such strange thing happens... It should recognize correctly start encoding. Also this is probablu cuse of strange behaviour with translation fomr polih to polish - translation is skilled, byt encoding written as utf8 even if it was not parsed to utf8, but stayed in ISO-8859-2... Correction in meta is still charset=ISO-8859-2, so I suppose that not everything is skipped during translation... I will look in code, but suppose that it translates to utf8, but in meta stays charset=ISO-8859-2 and thats the problem... |
I solved my problem with translation from polish to polish - simply edited translateflags.php and removed all " . '?hl=pl'".
If you make $fl global and import translate.php to translateflags.php you could check and don't add param hl for default language - this solves the problem in generic way. After all I just removed whole polish flag - all links are pushing back to polish so what for?... |
And that's why we have problem with translation from polish to polish - even if it's skipped:
Code:
// Enable UTF-8 characters |
Hie hie - I solved problem for you - where is avard :D
To solve problem with translate words with national signs like ąęśćł... you have to reencode it first to utf8 before send to google. So it is enough to set global variable i.e. $defEncoding and then change in translate.php this line: Code:
@curl_setopt($ch, CURLOPT_URL, "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=".urlencode($fl.'|'.$tl)."&q=".urlencode($text)); Code:
@curl_setopt($ch, CURLOPT_URL, "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=".urlencode($fl.'|'.$tl)."&q=".urlencode(iconv($defEncoding, 'utf-8', $text))); Of course this works assuming that all pages have same encoding - if not it must be parsed from meta. Now - sleep it's 3:27 at night in my place :eek: |
All times are GMT. The time now is 05:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|