Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using mo/po files to change terminology

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    Hey, thanks.
    Yes! Courseware should be fully aware of the changes you make in `languages/lang_LANG-bpsp.mo/po` files.

    Avatar of Andreas Karsten
    Andreas Karsten
    Participant

    @sospetto

    Then I am doing something wrong! My language is set to en_EN, I have the two files en_EN-bpsp.mo and en_EN-bpsp.po in the languages subdirectory, but nothing changes. Do I need to change anything else, especially in courseware-php?

    `/**
    * i18n
    */
    function bpsp_textdomain() {
    load_plugin_textdomain( ‘bpsp’, false, basename( BPSP_PLUGIN_DIR ) . ‘/i18n’ );
    }
    add_action( ‘init’, ‘bpsp_textdomain’ );`

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    Oops, I think I missed something.
    Can you please edit the `i18n` into `languages`.
    http://github.com/scholarpress/buddypress-courseware/commit/f835814b8ed011ada8a217c30f26d0986fe521f8

    Thanks.

    Avatar of Andreas Karsten
    Andreas Karsten
    Participant

    @sospetto

    Done, and didn’t help. Can/Should I try something else?

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    Ok, again my bad, the name of the `.po/mo` files should be like this:
    `bpsp-lang_LANG.po/.mo`

    Rediscovered it here:

    http://github.com/scholarpress/buddypress-courseware/tree/stable/languages/

    Avatar of mlopezcol
    mlopezcol
    Participant

    @mlopezcol

    Hello Stas, this is a great idea, I’m working in a e.learning project And everythin is running well except for the spanish translation, I have done everythin that is in the forums and is not working, still on english. Do you have some place where one can folow instructions for that. I’m tired to look in every forum that talks about this and there is many different info, some of them talks about i18n directory, but there is other where they just talk about put .mo/po files on languages directory. If I uninstall and install again it coul work? And I dont’t loose the information about courses in this process? As you know I been tryng to setup this an I can’t find any solution and it looks that is possible. Please give some link with the oficial instructions for that.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.