Are there any localization files?
bbPress uses the exact same translation framework, gettext.
Large parts of it have already been translated as part of WordPress.com, but we don’t want to localize the default templates until we have proper themes. (Like in WP.)
Thanks matt. So I can build the po file myself, right?
Just one more quick one: how many strings are still hard coded into bbPress?
It shouldn’t be too many, just try it.
You can read about us internationalizing things here:
I generated a it_IT.mo files with few strings translated (mostly from the templates) and tried to set define (‘WPLANG’, ‘it_IT’); in config file using BBLANG and WPLANG that seem used in the code, but the strings wont’ get translated… why?
What exactly did you enter in the config file?
If you do get it to work please post here how.
I put the same language config string that WordPress use setting a constat named WPLANG, i tried to set BBlang too.. but the translation didn’t work, so or the config line is wrong or the gettext function didn’t work yet
Can you please send me the po file:
selad at optiwater dot com
I`ve uploaded the po file:
I think that the following call in bb-settings.php is missing:
// Load the default text localization domain.
Please, where could I find the mo file to translate (in French in my xase) and where must i place it on the bbpress install ?
You need to translate the po file (see 4 messages above). Then the mo file should go to bb-includes/languages.
But… I could not get it to work
A few japanese users and I are trying to localize.
- put your-lang.mo into bb-inclues/languages/;
- add define (‘WPLANG’, ‘your-lang’); in config.php( line 56 is fine);
- add load_default_textdomain(); in bb-settings.php(line 135 is fine);
- replace ABSPATH to BBPATH in bb-inclues/i18n.php.
…and these fixes are work well.
You can see here: http://hiromasa.zone.ne.jp/files/wordpress/bbPress01.png
The problem is (perhaps) there is no variable in config.php to indicate the language file to be taken in acount (as it is the case for wordpress)
You have to enter:
define (‘WPLANG’, ‘your-lang’); in the config file.
The suggestions signaled by Aka works flawlessy, after them BB takes the languae file and use it… I’m going to submit a ticket to Trac just now with a patch file
aka: yes, it works! The only thing I did change it to plave the call:
just after line 75.
By the way, in the front page :
Don’t seem to be gettexted
These strings are hard-coded in:
$views = array(‘no-replies’ => __(‘Topics with no replies’), ‘untagged’ => __(‘Topics with no tags’), ‘unresolved’ => __(‘Unresolved topics’));
Just translate them in the code and you are done
Sorry!!! please ignore my last post – I was wrong.
lstelie: The Views links’ names are used in another place (view.php), so at this time it’s difficult. I think it’s possible to add another array value to make the names get-text-able, or even use the values the array currently have for next version
== Update ==
BTW, if you don’t want to wait, you can replace the
echo $viewin your front-page.php file with
You must be logged in to reply to this topic.