• “Force Regenerate Thumbnails” is its plugin name, but it has a precise meaning when this string shows on the WordPress Dashboard. In some languages, like zh_TW, the translators don’t translate the plugin’s name but need to translate the plugin’s UI strings, so I made some modifications for this issue.

    All modifications are based on 2.1.1.

    class-forceregeneratethumbnails.php, line 71 and 72

    _x( 'Force Regenerate Thumbnails', 'UI Strings', 'force-regenerate-thumbnails' ),
    _x( 'Force Regenerate Thumbnails', 'UI Strings', 'force-regenerate-thumbnails' ),

    Line 244

    $actions['regenerate_thumbnails'] = '<a href="' . esc_url( $url ) . '" title="' . esc_attr__( 'Regenerate the thumbnails for this single image', 'force-regenerate-thumbnails' ) . '">' . _x( 'Force Regenerate Thumbnails', 'UI Strings', 'force-regenerate-thumbnails' ) . '</a>';

    Line 266

    $actions['bulk_force_regenerate_thumbnails'] = _x( 'Force Regenerate Thumbnails', 'UI Strings', 'force-regenerate-thumbnails' );

    Line 335

    <h2><?php echo esc_html_x( 'Force Regenerate Thumbnails', 'UI Strings', 'force-regenerate-thumbnails' ); ?></h2>
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Hi Alex,

    Thanks for providing that, we’ll get those changes made and double-check to ensure we haven’t missed any cases!

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    Thanks for the quick reply. I want to let you know this plugin is fully localized for zh_TW, including its zh_TW plugin page.

    This excellent and free plugin deserves to own a localized UI.

    Plugin Author nosilver4u

    (@nosilver4u)

    Oh that’s fantastic, thank you so much! I should have mentioned earlier, if you’d like to drop your changes on Github, you can do that here: https://github.com/nosilver4u/force-regenerate-thumbnails

    Either way, I’m hoping to work on this more next week after the holidays. Thanks again for all your contributions!

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    I will submit a PR for these changes I made soon.

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    My PR is already submitted.

    Plugin Author nosilver4u

    (@nosilver4u)

    I’ve merged the PR, but before I push it into the dev area on wp.org (via SVN), do you think it would be helpful if I changed the context from “UI Strings” to be more descriptive of the actual location?

    For example, “Media actions row”, “Bulk actions drop-down”, etc.

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    @nosilver4u

    I think you are right if you make the changes you mentioned.

    Plugin Author nosilver4u

    (@nosilver4u)

    Okay, I’ve pushed the updates to svn, they should show up as translatable strings in the Development area soon (not sure how long that takes to refresh).

    I don’t have anything else in the queue for FTR at the moment to warrant a version bump, but if there’s nothing new within the next month or so, I’ll bump the version so that translations can be released to users.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I18N Issue’ is closed to new replies.