WordPress.org

Forums

Reusable Text Blocks
[resolved] Localization (6 posts)

  1. patloq
    Member
    Posted 1 year ago #

    I've tried to add a translation but wasn't able to do it. Do you have any plans to make Reusable Text Blocks translatable? I'd really appreciate that.

    https://wordpress.org/plugins/reusable-text-blocks/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    Yes, I'll try to get this added in the next version. I haven't had the time to work on this plugin much lately but will try to get this added in the coming weeks.

  3. Hal Gatewood
    Member
    Plugin Author

    Posted 4 months ago #

    This was just added in version 1.4.6. Let me know if you have any problems with it now!

  4. elvi992
    Member
    Posted 4 months ago #

    Hi,

    It didn't work for me the first time (1.4.7). I noticed that the line numbers were not correct in the .pot file. For example:

    #: text-blocks.php:55 text-blocks.php:67
    msgid "Text Blocks"

    should be:

    #: text-blocks.php:62 text-blocks.php:74
    msgid "Text Blocks"

    ...according to the .php file. But it was not the problem.

    Then I changed this line of code:

    load_plugin_textdomain( 'text_blocks', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    to:

    load_plugin_textdomain( 'text-blocks', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    ("text_blocks" to "text-blocks") And renamed the

    reusable-text-blocks.pot

    file to

    text-blocks.pot

    And now it works! :)

  5. Hal Gatewood
    Member
    Plugin Author

    Posted 4 months ago #

    Thanks for your work on this. I'll get it corrected and a new version submitted soon!

  6. Hal Gatewood
    Member
    Plugin Author

    Posted 2 months ago #

    It has now been added in version 1.4.8. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Reusable Text Blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.