vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Translate Your Pages Via Google (https://vborg.vbsupport.ru/showthread.php?t=88508)

AN-net 02-21-2004 10:00 PM

Translate Your Pages Via Google
 
Description:
Instantly translate all vb pages that include a footer from English to german,french,italian,and spanish.

Authors:
Sweet22 and Antonbomb22

Credits:
To google for its translation service

Tested only on Vb3 Rc3 and Rc4. There may have been code changes since betas and gamma to the templates that need to be edited by this hack. If you experience difference in code please post it and ill tell you what to do;)

**PLZ NOTE THAT WHEN TRANSLATING IT LOGS YOU OUT AND YOU CAN NOT LOG IN ON A TRANSLATED PAGE!** I hope to fix this issue sometime in the future, if anyone has a fix or suggestion on how to fix it is welcome;).

Vb-Hispano 02-23-2004 05:41 PM

spainish a english? is possible?

AN-net 02-23-2004 10:22 PM

yes it is, since you requested it here it is:
Code:

<option value="es|en">Spanish to English</option>
add that after the english to german option in the footer;)

MGM 02-24-2004 01:45 AM

not bad! will install myself

MGM out

Natch 02-24-2004 10:30 AM

Awesome bit of lateral thinking :) I love it

[high]* Natch clicks install :) :)[/high]

imported_chuanse 02-25-2004 06:39 AM

can someone tell me what ALL possible languages are to translate to (with their code)?

thx 1000 times :D

REAL COOL MOD!!!

gmarik 02-28-2004 08:16 AM

No Russian there, guys?>

AN-net 02-28-2004 04:15 PM

sorry, google doesnt support russian at the moment but you can email them and ask them to consider it.

Dan 02-28-2004 08:07 PM

Nice mod :D but I don't get many foriegners to my boards.

imported_uber 02-28-2004 09:13 PM

Great mod Sweet!

I've integrated your code into a drop down menu on my showthread template.

While doing this, I noticed that there's a little bug you code. Even on your site, when you translate the the site from the showthread or forumdisplay template, the threadid and forumid variables aren't passed.

if you change this

<input type="hidden"name="u" value="http://www.yoursite.com$translationurl">

to

<input type="hidden"name="u" value="http://www.yoursite.com$translationurl?t=$threadid&f=$for uminfo[forumid]">

when you click the translation link from either pages, it will get the proper variables.

Clicks install


All times are GMT. The time now is 02:17 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
  • Page Generation 0.01658 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete