Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-14-2000 Last Update: Never Installs: 0
 
No support by the author.

Oh it's a hack but it works. Suport multiple languages with one template set. Put links on your page that when clicked chance all the vB text like username, pwd, etc to spanish, german etc. Uses dictionary libraries that get importated by the PHP scripts. Goign live tonite on my site. Reply here if you are curious.

J

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-14-2000, 03:12 AM
Guest
 
Posts: n/a
Default

This sounds nice, keep us updated..

-Brian
Reply With Quote
  #3  
Old 05-24-2000, 10:20 AM
Guest
 
Posts: n/a
Default

We've been live on this one for over a week now. We set a cookie variable 'Eng' or 'Ita' and global.php imports a dictinary file based upon that setting. In our templates, all text is replaced with $variables which are cross referenced in the aforementioned included file from global.php.

We'll be adding Italian and French support this week. That brings this hack to six langs (Eng, Spa, Port, Germ), and switching the language of the vB on the fly.

The links are at the top of every page of our site.

Best,

H

[Edited by Huss on 05-24-2000 at 07:22 PM]
Reply With Quote
  #4  
Old 06-15-2000, 03:25 AM
Guest
 
Posts: n/a
Default

Any change you'd share this hack?
Reply With Quote
  #5  
Old 08-24-2000, 11:35 AM
Guest
 
Posts: n/a
Default

We've been live on this one for over a week now. We set a cookie variable 'Eng' or 'Ita' and global.php imports a dictinary file based upon that setting. In our templates, all text is replaced with $variables which are cross referenced in the aforementioned included file from global.php.
[Edited by Huss on 05-24-2000 at 07:22 PM]
[/QUOTE]

I've been using this method to implement multi-language support too, and mostly succesful. However, there seems to be a problem with the forumjump template.

Using this code in forumjump (which is the standard code except for the variables $forumjumpmessage, $selectone and $gobutton that are introduced.

<FONT SIZE="2" FACE="arial, helvetica"><FORM ACTION="forumdisplay.php" METHOD="GET"><B>$forumjumpmessage</B>
<SELECT NAME="forumid">
<option $defaultselected>$selectone</option>
$jumpforumbits
</SELECT>
<input type="hidden" name="daysprune" value="$daysprune">
<INPUT TYPE="SUBMIT" VALUE=$gobutton></FORM></font>

However, the variable-content is not added to the page, resulting in empty strings. I only have this problem with the forumjump template, and the variables are correctly defined in the language files. If I copy this code exactly to the forumdisplay template, there is no problem, and everything works perfectly. I could off course do that for every form that uses the forumjump template, but that's a far-from-nice approach.

Can anybody here please tell me what I'm doing wrong or why the forumjumptemplate is so special. How can I fix this problem?

Thank you in advance

Yves
Reply With Quote
  #6  
Old 08-24-2000, 01:34 PM
Guest
 
Posts: n/a
Default

Are you including the variable definitions via global.php or where?

H
Reply With Quote
  #7  
Old 08-24-2000, 02:15 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Huss
Are you including the variable definitions via global.php or where?

H
Yes... In global.php I have included following code:

if (!(isset($language)))
$language = "Eng";

if ($language == "Eng") include ("English.php");
if ($language == "Ned") include ("Dutch.php");
if ($language == "Fra") include ("French.php");
Reply With Quote
  #8  
Old 08-28-2000, 03:32 PM
Guest
 
Posts: n/a
Default

Any ideas?

Anyone?

Otherwise I'll have to start copying the "Forumjump" template code into the other templates
Reply With Quote
  #9  
Old 08-31-2000, 10:52 AM
Guest
 
Posts: n/a
Default

One last question, and then I'll be of your back

Does anyone have an Idea how to accomplish this without using cookies? I want to be able to switch the language even if the user has the usage of cookies turned of in his browser.

How can I keep the $language variable set during the entire visit of the user?

Thanks!
Reply With Quote
  #10  
Old 09-08-2000, 06:54 AM
Guest
 
Posts: n/a
Default

Any chance of this being released....please.

Thanks.
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 02:27 AM.


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.04831 seconds
  • Memory Usage 2,263KB
  • Queries Executed 23 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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_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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete