vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Translate a Thread in a Google Pop-Up Window (https://vborg.vbsupport.ru/showthread.php?t=168439)

Lombardo 01-23-2008 05:04 PM

can't translate things to english it takes you to a translation page to do it yourself,can that be changed?

Digital Jedi 01-23-2008 08:45 PM

Quote:

Originally Posted by Lombardo (Post 1427462)
can't translate things to english it takes you to a translation page to do it yourself,can that be changed?

The English link is there as a courtesy mainly. The way Google's "Translate a Web Page" works is it has to know what language your translating to and from. So it is possible to get it to translate to English, but the starting language would always have to be the same, meaning ALWAYS Spanish to English or ALWAYS Dutch to English, etc. Likely not practical to most forums.

I may be able to come up with an modification to the modification (I just like saying that) that adds all of Google's [Insert Language] to English options. But it may take me a bit to make it practical and user friendly. I'll look into it.

Itworx4me 01-23-2008 10:55 PM

I have installed this mod. I also have vbseo installed and it doesn't play very friendly with the mod. I get red x's where images should be. Anyway of making this vbseo friendly?

Thanks,
Itworx4me

Digital Jedi 01-24-2008 12:31 AM

Quote:

Originally Posted by Itworx4me (Post 1427676)
I have installed this mod. I also have vbseo installed and it doesn't play very friendly with the mod. I get red x's where images should be. Anyway of making this vbseo friendly?

Thanks,
Itworx4me

Not without knowing more about vBSEO. My first impression though, presuming the link in your profile is the correct site, is that it's Google causing the problem and not a conflict with the two mods, per se. I took one of your threads and copy and pasted the URL into Google's "Translate a Web Page" directly, and it did the same thing. Apparently, each time it translates a page it thinks the images are in the same directory as your thread. So, for example, if there's a post icon in a thread in General Chat, Google thinks the icon is located at:

/general-chat/images/icons/icon10.gif

Rather than where it actually is, in:

/images/icons/icon10.gif

Same thing for an image in NHRA. It tacks /nhra just after the .com. I hate to leave it at that, but unless I know more about how vBSEO formats your threads, I'm afraid this is one of those "don't know" questions. For now anyway. I'll do my best to look into it.

Digital Jedi 01-24-2008 08:31 AM

Quote:

Originally Posted by Lombardo (Post 1427462)
can't translate things to english it takes you to a translation page to do it yourself,can that be changed?

Lombardo, and to anyone else interested, I added an alternative version of the mod that should do what you asked. Please see Post 2 for more information and let me know this works for you.

Lombardo 01-24-2008 12:56 PM

I can't get it too work mate,first thing its hard to keep your cursor over it to click it because it just closes and when i eventually get to click it nothing happens.

Digital Jedi 01-24-2008 02:04 PM

Well, that might be the problem. Your not supposed to click it. :) It just opens when you move your mouse over it. vBulletin menus just open once you've already opened a window. For example, try opening a regular drop down, and you'll notice when move your mouse over any of the other ones, they open and close without clicking. If you click them, you close it again.

That's what's been happening here. Just mouse over the menu like you would any other kind of drop down menu, and the sub menu will automatically open. If you try to click it, your just going to turn the menu off.

Lombardo 01-24-2008 07:51 PM

Yeah when i put my mouse over it it closes tho.

vbob 01-24-2008 08:30 PM

Hi,
My main Language of my forum is Greek. I want to translate Greek to English...etc...!!! When I press the menu to translate my thread to English, the pop up does not translate anything, but it just shows me the Google translation page...!!! What should I change to the code so it can be functional from Greek to any other language???
Edit: Hmm another issue: ...I have the "Welcome" mod for guests to show them a message and invite them to register to the site...!!! it seems that if the mod translates something from the thread it just translate the welcome message - because google isn't a registered user and sees that message!!!! Is there a way to make the mod tranlate the thread correctly? :-)
(Still...when I press the english flag, it just shows me the Google translation page only and doesn't do any translation)

Thank you...!!! :-)

Digital Jedi 01-24-2008 10:08 PM

Quote:

Originally Posted by Lombardo (Post 1428178)
Yeah when i put my mouse over it it closes tho.

It shouldn't. Can I see a link to where you have it installed?

Quote:

Originally Posted by vbob (Post 1428212)
Hi,
My main Language of my forum is Greek. I want to translate Greek to English...etc...!!! When I press the menu to translate my thread to English, the pop up does not translate anything, but it just shows me the Google translation page...!!! What should I change to the code so it can be functional from Greek to any other language???

See post two of this thread. That's the alternative if you want more [LANGUAGE] to English options.

If you don't want all those options, you could also just remove the block of code marked <!--English--> in the first version and replace it with the line of code marked <!--English To Greek--> in Post 2. EDIT: (Yes, I just realized I have that entire menu marked wrong. They shoud all be marked [LANGUAGE] to English, not English to [LANGUAGE])

Quote:

Edit: Hmm another issue: ...I have the "Welcome" mod for guests to show them a message and invite them to register to the site...!!! it seems that if the mod translates something from the thread it just translate the welcome message - because google isn't a registered user and sees that message!!!! Is there a way to make the mod tranlate the thread correctly? :-)
Unfortunately, no. Google can only translate what it can see. Or conversely, it will translate everything it sees. Basically this mod utilized 3rd party functionality, and as such, is limited by what the 3rd party offers. But I have presented the issue to Google. It remains to be seen when (or if) they'll get back to me. :)

Quote:

(Still...when I press the english flag, it just shows me the Google translation page only and doesn't do any translation)
See above. ;)

Quote:

Thank you...!!! :-)
No problem.


All times are GMT. The time now is 04:54 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.01194 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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