Skip to:
Content
Pages
Categories
Search
Top
Bottom

Are there any localization files?

Viewing 25 replies - 1 through 25 (of 65 total)

  • Matt Mullenweg
    Keymaster

    @matt

    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?


    Matt Mullenweg
    Keymaster

    @matt

    Sure.

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


    Matt Mullenweg
    Keymaster

    @matt

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

    You can read about us internationalizing things here:

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


    Stefano Aglietti
    Member

    @steveagl

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


    Stefano Aglietti
    Member

    @steveagl

    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:

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

    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();


    lstelie
    Member

    @lstelie

    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:

    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

    @lstelie

    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.


    Stefano Aglietti
    Member

    @steveagl

    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.


    lstelie
    Member

    @lstelie

    thanks aka and selad, it works !!!


    lstelie
    Member

    @lstelie

    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.


    Potter_System
    Member

    @potter_system

    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