First of all, add a Language attribute to forums (default "en").
When a user is surfing a site/forum, it is best to allow them see content in there own language,
So if a forum has multiple languages installed, let phpBB determine which forums to display (depending on language).
this includes adding a language switch for guests.
Forums depending on users language
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Re: Forums depending on users language
Moved this to discussion, because it is not detailed enough for an RFC on configuration, standard behaviour implementation ideas, etc.
There will certainly still need to be a way to access forums in other languages. Personally I think this would be better fit for a MOD.
There will certainly still need to be a way to access forums in other languages. Personally I think this would be better fit for a MOD.
Re: Forums depending on users language
Sorry for not giving a bit more details,
What i propose is to do is:
What i propose is to do is:
- Add a "Language Selector" to all pages (a combo box, or a list of languages).
- When $_REQUEST['lang'] is set to an existing Language ISO, display the page in that language.
- Add a new column to the phpbb_forums table named lang, type int(2) unsigned. That will contain the lang_id (from phpbb_lang) of the forum.
- When Creating a new forum/category/link, add a combo-box with the installed languages.
- Display forums only in pages with the same lang_id.
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: Forums depending on users language
Hello,
+1 !!! Would be a very nice feature.
But IMO first browser language detection should be added. Then your requested feature can be really very usefull. It think there is a validated Olympus MOD doing if for guests. There are not a lot of code changes needed.
BTW: Don't forget to change anonymous langauge automatically too then your are changing board default language in future automatically. IMO the Olympus default behaviour makes no sense.
Bye Martin
+1 !!! Would be a very nice feature.
But IMO first browser language detection should be added. Then your requested feature can be really very usefull. It think there is a validated Olympus MOD doing if for guests. There are not a lot of code changes needed.
BTW: Don't forget to change anonymous langauge automatically too then your are changing board default language in future automatically. IMO the Olympus default behaviour makes no sense.
Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Forums depending on users language
I'm not sure I like this... more complex really than it's worth. If you want different forums based on different languages, why not make different boards?
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: Forums depending on users language
Hello imkingdavid,
in past (several years ago) I've been running two board for the same things - one german and one engilsh. And I have used one set user tables. It was quite easy with using only different table prefixes and one database.
I think this is the most important point: Users have no need to register double!.
But I decided to merge the boards into one board ( http://www.pipidae.org/cgi/phpBB3/index.php ) then I was upgrading from phpBB2 to phpBB3. It's just for usability for users (e.g. most of (younger) germans are speaking english too) and less of work for me as the webmaster.
Please excuse my bad English!
Bye Martin
in past (several years ago) I've been running two board for the same things - one german and one engilsh. And I have used one set user tables. It was quite easy with using only different table prefixes and one database.
I think this is the most important point: Users have no need to register double!.
But I decided to merge the boards into one board ( http://www.pipidae.org/cgi/phpBB3/index.php ) then I was upgrading from phpBB2 to phpBB3. It's just for usability for users (e.g. most of (younger) germans are speaking english too) and less of work for me as the webmaster.
Please excuse my bad English!
Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
Re: Forums depending on users language
The idea is to display all forums on the index page, sorted by language (or whatever the board admin chooses). When a user selects a forum, the Language is forces to the forum-specific language.imkingdavid wrote:I'm not sure I like this... more complex really than it's worth. If you want different forums based on different languages, why not make different boards?
Example:
You have a forum with three languages: A, B, C. and x amount of forums, every forum has its own language.
if a user selects a forum with language A, the display of the forum will be forced to the forum's language (the layout increases support for rtl languages: Hebrew, Arabic).
and then if a user selects a forum with language B, the forum display language will be forced to be language B.
forum display language The system language. buttons, texts, etc..
Q: Why not make different boards? A: Its a pain for the user & moderator to keep on switching boards, especially when the board has more than 2 languages.
I am currently setting up a forum for an organization that requires English, Arabic, Hebrew. Its really a pain to keep on switching boards when most of the users know all three languages.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: Forums depending on users language
I'm not sure I understand the point. Changing the language won't change the content (posts and forum descriptions) and if a board is multi-lingual the user would have set their spoken language in their preferences anyways. I don't see any benefit whatsoever in having specific areas of the forum change the language of the displayed labels and images on a per-forum basis. Are you going to override a user's settings when they enter these forums? If so...why?
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Forums depending on users language
+1DavidIQ wrote:I'm not sure I understand the point. Changing the language won't change the content (posts and forum descriptions) and if a board is multi-lingual the user would have set their spoken language in their preferences anyways. I don't see any benefit whatsoever in having specific areas of the forum change the language of the displayed labels and images on a per-forum basis. Are you going to override a user's settings when they enter these forums? If so...why?
If most users speak all three languages, why do you need to change the languages? As DavidIQ already said, post content is not translated so the only change would be in the non-dynamic (static) text. And if a user is able to read those labels in one language, they should have no problem remembering what the language is even if he or she cannot read the language itself.naim wrote:Q: Why not make different boards? A: Its a pain for the user & moderator to keep on switching boards, especially when the board has more than 2 languages.
I am currently setting up a forum for an organization that requires English, Arabic, Hebrew. Its really a pain to keep on switching boards when most of the users know all three languages.
Re: Forums depending on users language
Actually it's a pretty nice idea, it just needs a good way to be implemented. Take Gentoo's forums, they have a bunch of English-speaking forums at the top, they have a pretty extensive list of international forums in Chinese, Dutch, Finnish, etc... The list is pretty long and most users would probably prefer if most of those forums were stashed away in a subforum rather than on their index page, save for the one forum that speaks their native language.
Now I don't know how it should be done (you certainly can't maintain a different forum tree for each language) but that's an idea worth discussing IMO.
A "lang" field could be added to the forums table, and perhaps there's a way to leverage the lang attribute in HTML. One hackish way would be to hide or show forums using CSS selectors. Obviously this is not a complete solution because it means that some forums could become inaccessible.
Perhaps somebody has links to international forums that you could use as examples? It would be interesting to see how bigger forums handle them.
Now I don't know how it should be done (you certainly can't maintain a different forum tree for each language) but that's an idea worth discussing IMO.
A "lang" field could be added to the forums table, and perhaps there's a way to leverage the lang attribute in HTML. One hackish way would be to hide or show forums using CSS selectors. Obviously this is not a complete solution because it means that some forums could become inaccessible.
Perhaps somebody has links to international forums that you could use as examples? It would be interesting to see how bigger forums handle them.