Advertisement:

Multiple Language Board

Aloittaja Phasar, heinäkuu 31, 2006, 02:05:02 IP

« edellinen - seuraava »

Phasar

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
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

sawz

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.
keep smiling, they'll always wonder what your up too.....

Phasar

But how do I install the Russian language pack without overwriting the english?
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

Thantos

Language files are named in such a way that one language won't overwrite another language.

For example:
Admin.english.php
Admin.russian.php

Phasar

I did, no instructions included  :(
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

sawz

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.
keep smiling, they'll always wonder what your up too.....

Phasar

I'm uploading it now. I'll let you know how it works out :)
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

Phasar

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 :(
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

sawz

are the language packs installed in the theme your using?
keep smiling, they'll always wonder what your up too.....

Phasar

They should be. The language packs are for Babylon, classic and default, and I'm using default
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

H

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
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Phasar

Well, that doesn't do me any good. I want multiple language. Can I have the mod you used on this site?
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

Grudge

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.
I'm only a half geek really...

Phasar

I suppose I could.
Where would I add it?
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

Phasar

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???  :)
I once boiled a hyena in water and made myself a laughing stock!!!:)
[nofollow]

Advertisement: