Skip to:
Content
Pages
Categories
Search
Top
Bottom

Are there any localization files?

Viewing 25 replies - 1 through 25 (of 65 total)
  • @matt

    Keymaster

    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.)

    @selad

    Member

    Thanks matt. So I can build the po file myself, right?

    @matt

    Keymaster

    Sure.

    @selad

    Member

    Just one more quick one: how many strings are still hard coded into bbPress?

    @matt

    Keymaster

    It shouldn’t be too many, just try it.

    You can read about us internationalizing things here:

    https://bbpress.org/blog/2006/06/internationalization/

    @steveagl

    Member

    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?

    @selad

    Member

    SteveAgl,

    What exactly did you enter in the config file?

    If you do get it to work please post here how.

    Thanks :)

    @steveagl

    Member

    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

    @selad

    Member

    Can you please send me the po file:

    selad at optiwater dot com

    thanks :)

    @falo

    Member

    I`ve uploaded the po file:

    http://blogshop.de/images/bbpress.po

    @selad

    Member

    Falo thanks.

    Did you get it to work?

    @selad

    Member

    I think that the following call in bb-settings.php is missing:

    // Load the default text localization domain.

    load_default_textdomain();

    @lstelie

    Member

    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

    @selad

    Member

    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:

    1. put your-lang.mo into bb-inclues/languages/;
    2. add define (‘WPLANG’, ‘your-lang’); in config.php( line 56 is fine);
    3. add load_default_textdomain(); in bb-settings.php(line 135 is fine);
    4. 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

    @lstelie

    Member

    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)

    @selad

    Member

    lstelie,

    You have to enter:

    define (‘WPLANG’, ‘your-lang’); in the config file.

    @steveagl

    Member

    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

    @falo

    Member

    @aka: Thx, that works fine!

    @selad

    Member

    aka: yes, it works! The only thing I did change it to plave the call:

    load_default_textdomain();

    just after line 75.

    @lstelie

    Member

    thanks aka and selad, it works !!!

    @lstelie

    Member

    By the way, in the front page :

    * no-replies

    * untagged

    * unresolved

    Don’t seem to be gettexted

    Luc

    @selad

    Member

    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 :)

    @selad

    Member

    lstelie,

    Sorry!!! please ignore my last post – I was wrong.

    @potter_system

    Member

    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 with echo $title

Viewing 25 replies - 1 through 25 (of 65 total)
  • You must be logged in to reply to this topic.
Skip to toolbar