bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

localizing plugins

(4 posts)
  • Started 1 year ago by nicola86
  • Latest reply from A1ex
  • This topic is not resolved
  1. Hi,
    I've localized a plugin with
    $ xgettext --keyword=__ --keyword=_e -j --from-code=UTF-8 -o plugin.pot *.php

    I translated it all and made the .mo file from the .po
    $ msgfmt plugin-it_IT.po -o plugin-it_IT.mo

    Now, what I have to write in the plugin file? With this line the plugin outputs in english, instead of italian:

    load_plugin_textdomain('onlinelist','my-plugins/');

    Posted 1 year ago #
  2. I tried that also.
    but cannot succeed, any clue?

    Posted 2 months ago #
  3. If you go into the plugin browser on this site and then go to the admin area of your plugin you will find some localization tools on that page.

    One will add a textdomain to a PHP file that you upload, the other will generate a POT file from any of your tagged versions in the subversion repository.

    Posted 2 months ago #
  4. All calls of functions "__()" and "_e()" should be with textdomains.
    For example

    _e('Hello!', 'onlinelist');

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.