WordPress.org

Forums

SendPress Newsletters
[Plugin: SendPress] Language file (7 posts)

  1. Manuel Freund
    Member
    Posted 2 years ago #

    I really like the plugin and want to translate it into German. Can you tell me when you will provide a language file / make the hardcoded text translatable?

    Thanks a lot!
    Manuel

    http://wordpress.org/extend/plugins/sendpress/

  2. itdoug
    Member
    Plugin Author

    Posted 2 years ago #

    There have been numerous requests for this. I'll add it to our list.

    I don't have much experience with plugins and language files. Do you know of any good resources to learn how that works?

  3. Manuel Freund
    Member
    Posted 2 years ago #

    Basically this tells you everything you need to know:
    http://codex.wordpress.org/I18n_for_WordPress_Developers

    I went ahead and started a .pot-file containing text from the file sendpress.php. I couldn't get it to work until I changed line 88 from:
    load_plugin_textdomain( 'sendpress', false, SENDPRESS_PATH . 'languages/' );
    to
    load_plugin_textdomain( 'sendpress', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    And here's an example of translating text that contains a string:
    <b>Warning!</b> Before sending any emails please setup your <a href="'.admin_url("admin.php?page=sp-templates&view=information").'">information</a>.
    needs to become
    printf(__('<b>Warning!</b> Before sending any emails please setup your <a href="%s">information</a>.', 'sendpress'), admin_url("admin.php?page=sp-templates&view=information"));

    If your interested in teaming up on the translation issue let me know.

  4. stefan.kruger
    Member
    Posted 2 years ago #

    I've seen you included the gettext instructions in the code so translations can be ready to use.

    I've built my own po file to manage this because I need two languages for a website.

    There's a small error in the code in class-sendpress-view-settings.php line 60.

    The quotes used for the word You're are not ASCII characters therefore poedit fails to update the strings to be translated.

    I've modified this part in the code so it could work.

    Is it possible to have this fixed in the next version ?
    I will not be able to update the plugin without losing those changes.

    Thanks again for this wonderfull plugin.

    If you need a French translation I can work on it.

  5. itdoug
    Member
    Plugin Author

    Posted 2 years ago #

    We are readying SendPress for language translations. I'll see if I can get your change into the next release. Thanks!

  6. mnstyle
    Member
    Posted 2 years ago #

    Hi Doug, hi everyone.

    As I wrote in the e-mail to Doug a few days back, I would be happy to help in translating SendPress into German. :-)

    In addition with the other guys here. Just let me know if you could need help in that.

    Thanks for this great plugin by the way. :-)

    Cheers
    Martin

  7. itdoug
    Member
    Plugin Author

    Posted 2 years ago #

    I believe we have a German translation started. I have asked Josh to add you as a contributor to the translation. We would appreciate all the help you can give us. Can we send the link to the e-mail address that you provided earlier in the week?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SendPress Newsletters
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic