![]() |
Quote:
|
Quote:
If not, I have a forum that is 95% english and then also a Spanish section, will this skrew anything up? |
Use if conditions and exclude the flags from showing on non english pages.
|
Quote:
Quote:
|
Quote:
|
Nice script. Although I can see how it`s generating alot of MySQL usage.
After a page loads in a certain language and you use cache, it will search for the text in the new database, which, when searching for text without full text search enable, it will put pressure weather you like it or not. Alternatives can be adopted though ... |
Does it have to be InnoDB? :confused: I don't see it on my DB list. Was wondering if I could pick another option.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
I really need this hack :(
But it didn't work with me ! |
Quote:
|
What will happened if your forum it is, lets say, in italian and people starts to write in russian or arabian?.
The Spanish translation is funny though. |
Quote:
They cant, this is a translator that allows the site to be read and indexed in other languages not a plugin that allows users to post in other languages. |
please add persian language
|
Hi I Installed this and the Flags Look good but If I choose any other language other than English I get the following error:
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Can you help me resolve this? I do not mind PM'ing you the required access. I am using ZointsSEO , since VBSEO will not accept my site. HTTP://FreeOnlineMoviesForum.com |
It is ONLY working with normal vb or vbseo. That's IT.
|
Hey Dave Can I turn Zoints Tag off and have it work? Not Exactly sure how the SEO would interfere with translating pages.
|
Quote:
|
I appreciate your feedback on this Dave you are truly a great asset. I do have a question though, I believe zoints tag is rewritting the urls in much the same way that VBSEO is, wouldn't it just be a matter of showing how the URL's are being rewritten, or have your addon ignore it and just create it's own url's as it is gonna do anyways? That is what your add on is doing right, creating a new page in the new language and storing that in the DB?
Interesting thing though I see the translator worked on my downloads.php page. So Maybe it is working just will take time to do my main page? Is there a way I can chk in the DB to see if its truly working? |
Hi,
i just installed this on my Forum. I have two suggestions for an upcoming Version. 1.If possible ad a Pull down Menu were the user ca set the Source Language. So my Forum is in German but sometimes the Users also write in Portuguese or in English. 2.If possible add the Meta Tag for the Language in the translated page: <meta name="language" content="xx"> Greetings Christian |
Quote:
|
Quote:
Seems to be working well on your forum. Congrats. |
Quote:
For example behind the scenes when you click the arabic flag on a vbseo site the url is called using this command. <a rel="novbseo"href="<?php echo (strstr($_SERVER["VBSEO_URI"],'?hl='.@$_GET['hl'])) ? str_replace('?hl='.@$_GET['hl'], '', $_SERVER["VBSEO_URI"]) . '?hl=ar' : str_replace('?hl='.@$_GET['hl'], '', $_SERVER["VBSEO_URI"]) . "?hl=ar"; ?>"><img src="/flags/Saudi Arabia.gif" alt="Arabic" border="0" /></a> I have no idea how zoints calls re-written urls from the server, have a play, you might be able to something to work. |
FYI I'm working on a new version, it gets rid of MySQL altogether (it just cannot cope with very large sites) and speed is even better. Will keep you updated.
|
I don't really have the time to read 19 pages so I want to ask a question it may has been addressed before, can Google considers this as a duplicated content?, meaning bad for the Adsense?.
|
Quote:
|
Installed :)
But have a problem - with special letters. In Polish we have ąęśćł?żź an words with those are not translated, just appears without this letters. So "Społeczność" is shown as "Spoeczno" instead of beeing translated to "Society" or "Community". I'm pretty sure that google should translate it, and I think that this is some encoding issue. Any solution? |
And next thing - when we solve this how to flush all the cache, so it will be translated again but correctly??
|
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 06:23 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:
|