Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Phasar - heinäkuu 31, 2006, 02:05:02 IP

Otsikko: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 02:05:02 IP
I would like to set up SMF to work in mulitple languages, specifically english and russian. I want to put a small link on the top of the page to change between languages, but I want the posts to show in their original languages. I downloaded the russian theme, but I don't want the board just in russian. Is there a way I can do this? Or do I have to set up the board twice, each accessing the same database?

Any help would be appreciated.

Thanks
Frank
Otsikko: Re: Multiple Language Board
Kirjoitti: sawz - heinäkuu 31, 2006, 02:09:00 IP
1.1 rc2 has an option located at
Admin>Features and Options>Basic Features>Enable user-selectable language support

Turning this option on will allow users to select which language file they use. It will not affect the default selection.
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 02:26:57 IP
But how do I install the Russian language pack without overwriting the english?
Otsikko: Re: Multiple Language Board
Kirjoitti: Thantos - heinäkuu 31, 2006, 02:28:55 IP
Language files are named in such a way that one language won't overwrite another language.

For example:
Admin.english.php
Admin.russian.php
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 02:32:12 IP
I did, no instructions included  :(
Otsikko: Re: Multiple Language Board
Kirjoitti: sawz - heinäkuu 31, 2006, 02:33:21 IP
Lainaus käyttäjältä: Thantos - heinäkuu 31, 2006, 02:28:55 IP
Language files are named in such a way that one language won't overwrite another language.

For example:
Admin.english.php
Admin.russian.php
i deleted my post but Thantos is correct.
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 02:37:49 IP
I'm uploading it now. I'll let you know how it works out :)
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 02:52:05 IP
I uploaded it and installed the theme, but I don't have a clue if it's working. I don't have the language option appearing on the top of the page, and I did turn on the option in the admin settings :(
Otsikko: Re: Multiple Language Board
Kirjoitti: sawz - heinäkuu 31, 2006, 02:54:18 IP
are the language packs installed in the theme your using?
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 02:58:26 IP
They should be. The language packs are for Babylon, classic and default, and I'm using default
Otsikko: Re: Multiple Language Board
Kirjoitti: H - heinäkuu 31, 2006, 03:07:56 IP
LainaaI don't have the language option appearing on the top of the page,

Thats a custom option which is only available on this site.

To change a language go to your profile > Account Settings > Preferred Language
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 03:09:31 IP
Well, that doesn't do me any good. I want multiple language. Can I have the mod you used on this site?
Otsikko: Re: Multiple Language Board
Kirjoitti: Grudge - heinäkuu 31, 2006, 03:54:20 IP
Phaser - you could add something like this to index.template.php:

', ($context['user']['language'] == 'english' ? '<a href="' . $scripturl . '?language=russian">Switch to Russian</a>' : '<a href="' . $scripturl . '?language=english'>Switch to English</a>'), '


Somewhere within the existing HTML.
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - heinäkuu 31, 2006, 04:29:05 IP
I suppose I could.
Where would I add it?
Otsikko: Re: Multiple Language Board
Kirjoitti: Phasar - elokuu 20, 2006, 06:35:43 IP
Lainaus käyttäjältä: huwnet - heinäkuu 31, 2006, 03:07:56 IP
Thats a custom option which is only available on this site.

Is this going to be available to the rest of us at any point. Maybe the next version release???  :)