WordPress.org

Support

Support » Plugins and Hacks » [Plugin: ReciPress] localization

[Plugin: ReciPress] localization

Viewing 15 replies - 1 through 15 (of 27 total)
  • keesiemeijer
    Moderator

    @keesiemeijer

    If recipress is translate ready you can use this plugin to translate it: http://wordpress.org/extend/plugins/codestyling-localization/
    It can scan recipress for all translatable strings and create the necessary .po and .mo files.

    Use the instructions in this tutorial on how to use the plugin.

    Plugin Author Tammy Hart
    Member

    @tammyhart

    Yes, I’ve heard that is a great plugin to use. Here’s another tutorial about translating WordPress themes and plugins. http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/

    Be sure to share your translation with me so that it can added to the official plugin releases. Thanks!

    keesiemeijer
    Moderator

    @keesiemeijer

    @tammy Hart

    Do you have a .pot (or .po) file for your plugin that translators can use?

    Plugin Author Tammy Hart
    Member

    @tammyhart

    off course i will share the translation. could not find the po file in the distribution package 🙁 so i downloaded it from svn. thanks

    MacItaly
    Participant

    @macitaly

    Hi Tammy,
    I translated ReciPress 1.7 in italian, using PoEdit, it need or there is already an italian translation?

    MacItaly
    Participant

    @macitaly

    Hi Tammy,
    seems that ReciPress doesn’t recognize the new language.
    Files are recipress-it_IT.po and .mo in lang folder.
    I tried de/reactivating and reinstalling plugin too but without success.
    Any idea?

    Plugin Author Tammy Hart
    Member

    @tammyhart

    I’m honestly completely new to localization. I had followed a tutorial and thought it was set up correctly but perhaps not. I would love any insight that you could offer. Does WordPress have to be set to that language in order for a plugin to try to use it, or is there a way it can be tested on an English install? Sadly, English is my only language.

    MacItaly
    Participant

    @macitaly

    I’m sorry Tammy but I cannot help you on this, as I’m not a coder but I’m sure that there are a lot, out there, that could help you.
    I only followed the normal procedure to translate, whit GETTEXT standard and, normally the extension recognizes the language file.
    ReciPress is a good plugin, I’m sure that somebody will help you on this.
    Thanks to share it

    keesiemeijer
    Moderator

    @keesiemeijer

    Plugin Author Tammy Hart
    Member

    @tammyhart

    Yes, in the main plugin file:

    // Localization
    add_action('after_theme_setup', 'recipress_plugin_setup');
    
    function recipress_plugin_setup() {
    	load_plugin_textdomain('recipress', false, RECIPRESS_DIR.'/lang/');
    }
    keesiemeijer
    Moderator

    @keesiemeijer

    try it with the ‘init’ hook:

    // Localization
    add_action('init', 'recipress_plugin_setup');
    
    function recipress_plugin_setup() {
    	load_plugin_textdomain('recipress', false, RECIPRESS_DIR.'/lang/');
    }

    Hi there!
    Thanx for this wonderful plugin which we will add to some blogs – very well done 😉

    I recognized the same behavior with the loading of the textdomain and find out that the loading call is wrapped in a function/hook which is wrong.

    There is no function/hook needed for that – just add the loading call at the beginning of the plugin code – to make sure everything after that is included in the display of the translations (also errors etc.).

    Just this line is neccessary not more:

    /** Load translations */
    load_plugin_textdomain( 'recipress', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );

    I changed this on my install and promptly all gets loaded in backend AND frontend! This is also regular WordPress standard.

    You can also add these two lines to the plugin header (in the main file):

    Text Domain: recipress
    Domain Path: /lang/

    This will make the plugin header/description also translateable.

    Thanx for that!

    I have it completely translated into German already and will post the link here too!

    Thanx again for the awesome work with the plugin!

    -Dave from Germany 🙂

    …here are my German translations for download, which you can include in the plugin package if you want:

    download page: http://ddwb.me/5s
    direct URL for the zip: http://ddwb.me/5t

    Thanx, Dave 🙂

    Plugin Author Tammy Hart
    Member

    @tammyhart

    Awesome! Thanks Dave!

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘[Plugin: ReciPress] localization’ is closed to new replies.