Welcome, Guest. Please Login or Register.
September 28, 2024, 08:59:22 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Graphics and Templates  |  Language-specific buttons for different languages « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Language-specific buttons for different languages  (Read 988 times)
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Language-specific buttons for different languages
« on: April 04, 2002, 02:45:15 AM »
Reply with quote

With the new user-selectable languages support in 1.3.0, is it possible to get buttons for the language that the user chooses in their Profile, instead of all buttons always being in the default language for the forum?
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Language-specific buttons for different languages
« Reply #1 on: April 04, 2002, 08:54:59 AM »
Reply with quote

Yes, edit your language.lng. In the end of it there are the button images. Just take the translated images and rename them lets say logoutse.gif and then change the logout.gif to logoutse.gif from the swedish.lng. That works.
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Language-specific buttons for different languages
« Reply #2 on: April 04, 2002, 11:33:17 PM »
Reply with quote

or, an alternative is to put the images in a separate sub directory, and simply add that directory into the path of the images.

so you could change
   $img['admin'] = "<img src=\"$imagesdir/admin.gif\" alt=\"$txt[2]\" border=\"0\">";
   $img['delete'] = "<img src=\"$imagesdir/delete.gif\" alt=\"$txt[121]\" border=\"0\">";
   $img['email'] = "<img src=\"$imagesdir/email.gif\" alt=\"$txt[69]\" border=\"0\">";
   $img['email_sm'] = "<img src=\"$imagesdir/email_sm.gif\" alt=\"$txt[69]\" border=\"0\">";
   $img['help'] = "<img src=\"$imagesdir/help.gif\" alt=\"$txt[119]\" border=\"0\">";
   $img['home'] = "<img src=\"$imagesdir/home.gif\" alt=\"$txt[103]\" border=\"0\">";
   $img['im_config'] = "<img src=\"$imagesdir/im_config.gif\" alt=\"$txt[323]\" border=\"0\">";
to something like
   $img['admin'] = "<img src=\"$imagesdir/german/admin.gif\" alt=\"$txt[2]\" border=\"0\">";
   $img['delete'] = "<img src=\"$imagesdir/german/delete.gif\" alt=\"$txt[121]\" border=\"0\">";
   $img['email'] = "<img src=\"$imagesdir/german/email.gif\" alt=\"$txt[69]\" border=\"0\">";
   $img['email_sm'] = "<img src=\"$imagesdir/german/email_sm.gif\" alt=\"$txt[69]\" border=\"0\">";
   $img['help'] = "<img src=\"$imagesdir/german/help.gif\" alt=\"$txt[119]\" border=\"0\">";
   $img['home'] = "<img src=\"$imagesdir/german/home.gif\" alt=\"$txt[103]\" border=\"0\">";
   $img['im_config'] = "<img src=\"$imagesdir/german/im_config.gif\" alt=\"$txt[323]\" border=\"0\">";
Logged

Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Language-specific buttons for different languages
« Reply #3 on: April 05, 2002, 09:08:24 AM »
Reply with quote

Btw. Why aren't the admin_buttons.gif in the language file? I noticed that after I translated my forum to different languages everything else works but the little moderator buttons below the messages
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Language-specific buttons for different languages
« Reply #4 on: April 06, 2002, 09:24:50 AM »
Reply with quote

Can one not simplify this somehow? For instance to automatically let the variable $imagesdir append the name of the language that is active for the user? The disadvantage of course is that I have to copy all images, but I would not much care about that.

I would be very happy if this would be possible since I would like to activate 4 languages in my board. To edit 4 language files is a big work, and the next release or patch upgrade I maybe would have to edit again and again.
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Language-specific buttons for different languages
« Reply #5 on: April 15, 2002, 04:49:07 AM »
Reply with quote

Maybe somebody could make this thread a sticky topic?
Logged

Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:Language-specific buttons for different languages
« Reply #6 on: April 17, 2002, 09:50:14 AM »
Reply with quote

Not Really


You Could Go Out On The Web And Cut And Paste The English Terminology into a word translator of any language and then alter the img source and the default template if your using multiple templates to point to a diff dir.. Such As

This Is How I Have Mine:

Created Five Dir
English
Spanish
Latin
Hawaiian
Filipino

Then I Went Out To A Word Translator Site And Pasted All The Enlish info into it then remapped all the images
and templates to these specified dir. That Way If The User Is Spanish All My Images Would Show In Spanish and so forth ;).. Ive Got About 4 Lan Packs To Go And Ill Be Done.. If Ne One Is Interested In The Lan Packs Let me Know .. They Also Come With Predefine Buttons with Marking Languages And Random Colors.

I Was Thinkin Of Releasing A Multilingual pack As  Yabb Pack But Dont Know Anything About It So.. Im Still Working On Some Other Idea Mods...
 :) :) :)
Logged

ALL MODS Cancelled projected terminated
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Language-specific buttons for different languages « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 21 queries.