Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2005, 06:53 PM
divisortheory divisortheory is offline
 
Join Date: Oct 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hack for Forum Titles & Multiple Languages

My forum supports multiple languages using the Phrase Manager. This works great for menus, standard text, etc but it doesn't work for the title and description of each forum. The reason is that in the Admin CP I am only allowed to choose one and only name for the forum. Now, regardless of what Language a visitor to the forum chooses, they will only see the one and only one title that I have chosen for the forum (likewise with description).

What I would like is to be able to add a phrase through Phrase Manager, and insert a translation for all of the languages that my forum supports. Then, somehow have the title and description fields reference these variable, and have the vBulletin system choose the correct translation based on the language setting. Just as an example, say I have a simple forum with only one forum called Milk. My forum supports two langauges, English & Spanish. If the user has selected English, I want it to say "Milk", and if the user has selected Spanish, it should say "Leche".

I looked at index.php, and I see some code that could maybe potentially be changed. (btw, I don't know -anything- about PHP although I am experienced in other non web related languages, so I just pinpointed this as potential code, I don't know specifically what its doing)

foreach ($parentlist AS $forumID)
{
$forumTitle =& $vbulletin->forumcache["$forumID"]['title'];
$navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle;
}

What I would -like- is to be able to go into Phrase Manager, and instead of the actual title of the forum, type the name of the variable name for the Phrase that contains all the translations, and somehow have the code dereference that variable to get its value. Would that work? If so, what would be some appropriate code to do it and where would I put that code?

Thanks kindly for any suggestions
Zachary Turner
Reply With Quote
  #2  
Old 10-10-2005, 02:43 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've requested this before on many occassions.... with no progress. :disappointed:

https://vborg.vbsupport.ru/showthrea...496#post785496
pyro999 started to help...but then it fizzled.

I wish vbulletin themselves would address this as language support is increasingly an issue for a "universal" product. I'm sure there are many many boards that would benefit from this.

HELP!! Anyone!!!??!!
Reply With Quote
  #3  
Old 10-13-2005, 03:16 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lalalalalala. *bump*
Reply With Quote
  #4  
Old 10-13-2005, 03:18 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Coding such a hack is easy - doing it efficiently is difficult, if not nearly impossible (the reason why I am not going to release my code).
Furthermore, I don't think that it makes too much sense - Thread Titles and Posts will always be in one language only.
Reply With Quote
  #5  
Old 10-27-2005, 11:10 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
Coding such a hack is easy - doing it efficiently is difficult, if not nearly impossible (the reason why I am not going to release my code).
Furthermore, I don't think that it makes too much sense - Thread Titles and Posts will always be in one language only.
I'd settle for the inefficient versoin. ^_^ *hint hint nudge nudge*

but about it not making too much sense... I'm not sure if I understand what you don't think makes sense. And I'm sure there tons of ppl that disagree with you completely on that. me be one of them. do deal with a multi-language forum at all? Its obvious why it makes sense if you do.

And why would you say that they will always be one language? THAT doesn't seem to make sense to me, imo, considering there is an entire language phrase system for dealing with handling multiple language swithcing for everything BUT the Thread titles (more specifically..FORUM and CATEGORY TITLES). Why does that make sense but forum titles don't? :/

Content is still king and many people want to see content in both languages...pure and simple.

I see why it is way overboard for a hack to handle posts like this...
but I'm just talking about for FORUM and CATEGORY TITLES. that is, for the stuff that is listed in the Forumhome and that is psuedo-permanent.

eg: My "Open Discussions Forums" category title and forums title hasn't changed in forever and it kills me that its half broken in broken fonts for half my members. That should be so unneccesary.

again, I'm not talking every post or thread title..I'm talking about category and forum titles (that you set in the admincp >> forums&moderators>>forum manager)

and...begging your pardon but ... why did you code it all for yourself if it didn't make sense?

in any case, whether it makes sense to you doesn't change the fact many people need it.

So, if you aren't going to release even your "not efficient" code, can you give some hints as to what is needed to do this?

any information would be appreciated.
Reply With Quote
  #6  
Old 11-11-2005, 03:27 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A first version of a hack for this has been released: Forum Title Language
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:56 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.12760 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete