Are there any localization files?
-
Can bbPress be localized like WP?
-
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?
Sure.
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?
SteveAgl,
What exactly did you enter in the config file?
If you do get it to work please post here how.
Thanks
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
thanks
I`ve uploaded the po file:
Falo thanks.
Did you get it to work?
I think that the following call in bb-settings.php is missing:
// Load the default text localization domain.
load_default_textdomain();
hello,
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 ?
Thanks
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
Hi.
A few japanese users and I are trying to localize.
They say:
- 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
selad
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)
lstelie,
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: Thx, that works fine!
aka: yes, it works! The only thing I did change it to plave the call:
load_default_textdomain();
just after line 75.
thanks aka and selad, it works !!!
By the way, in the front page :
* no-replies
* untagged
* unresolved
Don’t seem to be gettexted
Luc
lstelie,
These strings are hard-coded in:
bb-includes/functions.php
line 1394:
$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
lstelie,
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 $view
in your front-page.php file withecho $title
- You must be logged in to reply to this topic.