The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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!!!??!! |
#3
|
||||
|
||||
lalalalalala. *bump*
|
#4
|
||||
|
||||
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. |
#5
|
||||
|
||||
Quote:
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. |
#6
|
|||
|
|||
A first version of a hack for this has been released: Forum Title Language
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|