Support » Plugin: Reusable Text Blocks » Localization

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    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.

    Plugin Author Hal Gatewood

    (@halgatewood)

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

    elvi992

    (@elvi992)

    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! 🙂

    Plugin Author Hal Gatewood

    (@halgatewood)

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

    Plugin Author Hal Gatewood

    (@halgatewood)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Localization’ is closed to new replies.