• Resolved Alex Lion

    (@alexclassroom)


    This plugin is awesome, but all localizable strings have the wrong text domain.
    The following are the modifications.

    admin\class-cf-christmasification-admin.php, line 60 to 61
    add_menu_page( __('Christmasify', 'christmasify'), __('Christmasify!', 'christmasify'), 'manage_options', 'cf-christmasification-admin', array($this, 'options'), 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzcuNzgzcHgiIGhlaWdodD0iMzcuNzgzcHgiIHZpZXdCb3g9IjAgMCAzNy43ODMgMzcuNzgzIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzNy43ODMgMzcuNzgzOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PHBhdGggZD0iTTM0Ljk3MiwyNy4yODFsLTIuNzg5LTEuNjA5bDEuNTI1LTAuODgzYzAuMzczLTAuMjE2LDAuNTAxLTAuNjkzLDAuMjg1LTEuMDY2Yy0wLjIxNy0wLjM3My0wLjY5NC0wLjQ5OS0xLjA2Ny0wLjI4M2wtMi4zMDUsMS4zM2wtMS44OTYtMS4wOTZsNC41MzYtMi42MThjMC4zNzItMC4yMTYsMC41LTAuNjkxLDAuMjg1LTEuMDY2Yy0wLjIxNy0wLjM3MS0wLjY5NS0wLjUwMS0xLjA2Ni0wLjI4M2wtNS4zMTgsMy4wNjdsLTEuMjM4LTAuN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Ljg5NiwxLjA5NWwtNC41MzcsMi42MTljLTAuMzc0LDAuMjE2LTAuNTAxLDAuNjk0LTAuMjg1LDEuMDY3YzAuMTQ1LDAuMjUsMC40MDcsMC4zOTEsMC42NzcsMC4zOTFjMC4xMzIsMCwwLjI2Ni0wLjAzNCwwLjM5MS0wLjEwNmw1LjMxNi0zLjA3bDEuMjQzLDAuNzE3Yy0wLjQzNiwwLjk2Ni0wLjY4MywyLjAzNC0wLjY4MywzLjE2YzAsMS4xMjgsMC4yNDgsMi4xOSwwLjY4MywzLjE1N2wtMS4yNDEsMC43MTdsLTUuMzItMy4wNjVjLTAuMzczLTAuMjE2LTAuODUxLTAuMDg4LTEuMDY2LDAuMjg0Yy0wLjIxNiwwLjM3NC0wLjA4NiwwLjg1MiwwLjI4NywxLjA2N2w0LjUzNiwyLjYxN2wtMS44OTcsMS4wOTdsLTIuMzA0LTEuMzMzYy0wLjM3My0wLjIxMy0wLjg1MS0wLjA4Ny0xLjA2NywwLjI4NWMtMC4yMTYsMC4zNzMtMC4wODgsMC44NTIsMC4yODUsMS4wNjdsMS41MjUsMC44ODJMMi44MSwyNy4yNzdjLTAuMzc0LDAuMjE2LTAuNTAxLDAuNjkzLTAuMjg1LDEuMDY1YzAuMTQ1LDAuMjUsMC40MDcsMC4zOTEsMC42NzcsMC4zOTFjMC4xMzIsMCwwLjI2Ni0wLjAzMiwwLjM5MS0wLjEwN2wyLjc4OS0xLjYwOWwwLjAwMSwxLjc2MmMwLDAuNDMyLDAuMzUsMC43ODEsMC43ODEsMC43ODFsMCwwYzAuNDMxLDAsMC43ODEtMC4zNSwwLjc4MS0wLjc4MWwtMC4wMDItMi42NjVsMS44OTgtMS4wOTVsLTAuMDAxLDUuMjM5YzAsMC40MzEsMC4zNDksMC

    admin\partials\cf-christmasification-admin-display.php
    Line 16
    <h1><?php esc_html_e('Christmasify! Settings', 'christmasify'); ?></h1>

    Line 22
    <th scope="row"><?php esc_html_e('I want Snowflakes!', 'christmasify'); ?></th>

    Line 23
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Snowflakes', 'christmasify'); ?></span></legend><label for="snowflakes">

    Line 28
    <th scope="row"><label for="music"><?php esc_html_e('My visitors would love this jingle:', 'christmasify'); ?></label></th>

    Line 38
    <th scope="row"><?php esc_html_e('Flying Santa would be awesome!', 'christmasify'); ?></th>

    Line 39
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Flying Santa would be awesome!', 'christmasify'); ?></span></legend><label for="santa">

    Line 44
    <th scope="row"><?php esc_html_e('Christmas decorations for images?', 'christmasify'); ?></th>

    Line 45
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Christmasy decorations for images? Okay!', 'christmasify'); ?></span></legend><label for="image_frame">

    Line 50
    <th scope="row"><?php esc_html_e('Christmassy headings?', 'christmasify'); ?></th>

    Line 51
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Christmassy headings?', 'christmasify'); ?></span></legend><label for="font">

    Line 56
    <th scope="row"><?php esc_html_e('Homepage Only?', 'christmasify'); ?></th>

    Line 57
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Only show Christmas effects on the homepage', 'christmasify'); ?></span></legend><label for="homepage_only">

    Line 63
    <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr_x( 'Christmasify!', 'Button Label', 'christmasify' ); ?>"></p>

    Line 66
    <p><?php esc_html_e( 'If you like this plugin please give us a like or share this plugin on Facebook :)', 'christmasify' ); ?></p>

    Line 70
    <p><?php _e( 'If you like this plugin please give us a like or share this plugin on Facebook, or give us a nice rating on <a href="https://wordpress.org/plugins/christmasify/">WordPress</a> :)', 'christmasify' ); ?></p>

    If this plugin has its own public GitHub repository, please let me know, then I will submit PR for this plugin.

    • This topic was modified 1 year, 4 months ago by Alex Lion.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Alex Lion

    (@alexclassroom)

    If this plugin has its public GitHub repository, please let me know, then I will submit PR for this plugin.

    There is no change of I18N in the current 1.3.0, so I make the necessary modifications for 1.3.0 as follows.

    The following modifications let localized UI strings display correctly.

    admin\class-cf-christmasification-admin.php, line 60
    add_menu_page( __('Christmasify', 'christmasify'), __('Christmasify!', 'christmasify'), 'manage_options', 'cf-christmasification-admin', array($this, 'options'),

    \admin\partials\cf-christmasification-admin-display.php
    Line 16
    <h1><?php esc_html_e(‘Christmasify! Settings’, ‘christmasify’); ?></h1>

    Line 22
    <th scope="row"><?php esc_html_e('I want Snowflakes!', 'christmasify'); ?></th>

    Line 23
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Snowflakes', 'christmasify'); ?></span></legend><label for="snowflakes">

    Line 25 to 31

    <option value="0"  <?php selected(get_option('cf_christmasify_snowflakes'), 0)  ?> ><?php esc_html_e('None', 'christmasify'); ?></option>
      <option value="10" <?php selected(get_option('cf_christmasify_snowflakes'), 10) ?> ><?php esc_html_e('Light', 'christmasify'); ?></option>
      <option value="25" <?php selected(get_option('cf_christmasify_snowflakes'), 25) ?> ><?php esc_html_e('Medium', 'christmasify'); ?></option>
      <option value="50" <?php selected(get_option('cf_christmasify_snowflakes'), 50) ?> ><?php esc_html_e('Heavy', 'christmasify'); ?></option>
      <option value="100" <?php selected(get_option('cf_christmasify_snowflakes'), 100) ?> ><?php esc_html_e('Snowstorm', 'christmasify'); ?></option>
      <option value="200" <?php selected(get_option('cf_christmasify_snowflakes'), 200) ?> ><?php esc_html_e('Insanity', 'christmasify'); ?></option>
      <option value="400" <?php selected(get_option('cf_christmasify_snowflakes'), 400) ?> ><?php esc_html_e('Beyond Insanity', 'christmasify'); ?></option>

    Line 37
    <th scope="row"><label for="music"><?php esc_html_e('My visitors would love this jingle:', 'christmasify'); ?></label></th>

    Line 47
    <th scope="row"><?php esc_html_e('Flying Santa would be awesome!', 'christmasify'); ?></th>

    Line 48
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Flying Santa would be awesome!', 'christmasify'); ?></span></legend><label for="santa">

    Line 53
    <th scope="row"><?php esc_html_e('Christmas decorations for images?', 'christmasify'); ?></th>

    Line 54
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Christmasy decorations for images? Okay!', 'christmasify'); ?></span></legend><label for="image_frame">

    Line 59
    <th scope="row"><?php esc_html_e('Christmassy headings?', 'christmasify'); ?></th>

    Line 60
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Christmassy headings?', 'christmasify'); ?></span></legend><label for="font">

    Line 65
    <th scope="row"><?php esc_html_e('Homepage Only?', 'christmasify'); ?></th>

    Line 66
    <td> <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Only show Christmas effects on the homepage', 'christmasify'); ?></span></legend><label for="homepage_only">

    Line 72
    <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr_x( 'Christmasify!', 'Button Label', 'christmasify' ); ?>"></p>

    Line 75
    <p><?php esc_html_e( 'If you like this plugin please give us a like or share this plugin on Facebook :)', 'christmasify' ); ?></p>

    Line 79
    <p><?php _e( 'If you like this plugin please give us a like or share this plugin on Facebook, or give us a nice rating on <a href="https://wordpress.org/plugins/christmasify/">WordPress</a> :)', 'christmasify' ); ?></p>

    Please let this awesome plugin shows its localized UI string correctly. Thanks.

    Thread Starter Alex Lion

    (@alexclassroom)

    \admin\partials\cf-christmasification-admin-display.php, Line 40
    <option value="" <?php selected(get_option('cf_christmasify_music') , 0); ?>><?php esc_html_e('No Music', 'christmasify'); ?></option>

    Thread Starter Alex Lion

    (@alexclassroom)

    @cyberfoxdigital

    Localized UI is very useful for non-English users, and displaying localized UI strings correctly is important for community translators.

    zh_TW UI strings are fully localized but this plugin can’t display localized UI strings, it’s a pity!

    • This reply was modified 1 year, 4 months ago by Alex Lion.
    • This reply was modified 1 year, 4 months ago by Alex Lion.
    Plugin Author Cyber Fox

    (@cyberfoxdigital)

    Hi Alex,

    Honestly this is great, thank you!

    I’ll update the plugin shortly with your changes, let me know if there’s anything else!

    Thanks,
    Adam

    Thread Starter Alex Lion

    (@alexclassroom)

    Thanks for updating this great plugin. I uploaded new translations for the updated GlotPress project, now it can display localized UI strings correctly for ALL languages, including zh_TW (Taiwan).

    I also wrote a simple Facebook post to introduce this plugin to Taiwan users. Hope all of them enjoy this.

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