Different languages for different users
-
Here is what I was trying to get some kind of multi-language support going:
Index: bb-includes/l10n.php
===================================================================
— bb-includes/l10n.php (revision 2040)
+++ bb-includes/l10n.php (working copy)
@@ -2,6 +2,9 @@
function get_locale() {
global $locale;
+ if (isset($_GET))
+ $locale=$_GET;
+
if (isset($locale))
return $locale;
Then I go to: http://bitfreedom.com/help/?lang=ja and it supplies that language. Great, but of course none of the links that bbPress generates has the ?lang=en_US option set. So I guess, is there a plugin for this?
I’m not looking for (but would be better than nothing):
Something that lets a user set their language, and changes the language when logged in.
I am looking for (ideal plugin):
Something that allows multi-language support by virtue of URL location and/or variable (as above). What language you are viewing makes more sense to depend on the URL, not on your login. Especially, since forums are also useful to the public when they don’t have a login to begin with.
Even just being able to set the language on a per-forum basis would be good, then I could just make different forums for different languages.
I guess I can modify my theme to include “language translation” links and keep my current hack.
Any ideas?
- You must be logged in to reply to this topic.