The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
4 благодарности(ей) от: | ||
CarpCharacin, Code Geass, hexeditor, Toorak Times |
Comments |
#32
|
||||
|
||||
with ie8 i noticed the Google Translator coming on just under the tabs.. but it don't stay there..
I wouldn't call it a tool bar... I also think it could be disabled.. in ie or jsy tick the little box on the right of the bar.. screen shot ...attached |
#33
|
||||
|
||||
Infopro, thanks for your reply. These are 2 options I like. Whatever is easier, but I think the 1st choice will look better.
See attached image. Attachment 126408 Thanks a million for this mod and your help! Margaret |
#34
|
|||
|
|||
We use Google Analytics and it provides a breakdown that shows visitors to our site by what language they're using.
It follows that there must be a variable on connection that can be interrogated to determine that information? Would anyone know how to do that, so that we could have this mod display ONLY if the user is connecting using anything except English? Thanks for any feedback.. Regards, Doug |
#35
|
|||
|
|||
Quote:
Well, this is not perfect I don't think, but should put you in the right direction. In your navbar template, find: Code:
<vb:if condition="$vboptions['enablesearches']"> Code:
<!-- Translate vBulletin --> <div style="position:absolute; right:200px;top:28px;" id="google_translate_element" class="select"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', multilanguagePage: true, layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <!-- /Translate vBulletin --> I didn't want to spend much time on this today but If I find some time I'd like to tweak the CSS and js to not be called from Google. In doing so the drop down and menu could be styled a bit nicer to match your site. The stuff inside the div can be placed where ever you like, the js should be placed as close to the bottom of your page as possible for speed. That's why I originally placed it in footer. In looking into the CSS end of this I did find one small tweak some might like: Simply add this to the additional.css template to hide the "toolbar thing" and the balloon tips. Code:
/* gtranslate */ .goog-te-banner-frame{display: none !important;} body{top: 0px !important;} .goog-te-balloon-frame{display: none !important;} font{background: transparent !important;} /* gtranslate */ Shamelessly stolen tip from here: http://www.google.com/support/forum/...48c8591e&hl=en Lots can be done with this. Just depends on how much playtime you have to experiment. |
#36
|
|||
|
|||
Quote:
As for ONLY display if user is connecting using anything other than English, well, you can look at the google site in an earlier post and select your options yourself. Then just add your new code where this old code is located. This can be set to automatically translate and other things. |
#37
|
||||
|
||||
Infopro, many thanks again! I will give it a try
Margaret |
#38
|
|||
|
|||
but how to add URDU lang in it becouse Google Translater has urdu but this don't have. any sulotion?
|
#39
|
|||
|
|||
I really like this modification, though I noticed a increased loading time because it is connecting to the Google servers each time. Is there a possibility to use this modification and let it access the Google servers only when you actually need it?
|
#40
|
|||
|
|||
Quote:
Quote:
|
#41
|
|||
|
|||
Quote:
Code:
pageLanguage: 'en', Code:
includedLanguages: 'ur' Quote:
If you mean the same thing as this comment: Quote:
When it is in use, sure the time it takes translate a page and finish "transferring data from translate.googleapis.com" to your browser there might be some delay. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|