Title: Make some UI strings internationalizable
Last modified: October 7, 2022

---

# Make some UI strings internationalizable

 *  Resolved [Alex Lion (阿力獅)](https://wordpress.org/support/users/alexclassroom/)
 * (@alexclassroom)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/make-some-ui-strings/)
 * zh_TW is localized fully and I found several UI strings can be internationalized.
   
   I list them as the following, based on 3.1.
 * \inc\settings-register.php, line 17
    `add_settings_section('settings', __( 'General
   Settings', 'theme-switcha' ), 'theme_switcha_settings_section_options', 'theme_switcha_options');`
 * \inc\settings-register.php, line 19
    `if ($enable_plugin) add_settings_section('
   themes', __( 'Available Themes', 'theme-switcha' ), 'theme_switcha_themes_section_options','
   theme_switcha_options');`
 * \inc\settings-register.php, line 22 to 31
 *     ```
       add_settings_field('enable_plugin',  __( 'Enable Switching', 'theme-switcha' ),    'theme_switcha_callback_checkbox', 'theme_switcha_options', 'settings', array('id' => 'enable_plugin',  'label' => esc_html__('Enable theme switching', 'theme-switcha')));
       	add_settings_field('enable_admin',   __( 'Enable Admin Area', 'theme-switcha' ),   'theme_switcha_callback_checkbox', 'theme_switcha_options', 'settings', array('id' => 'enable_admin',   'label' => esc_html__('Apply switched theme to Admin Area', 'theme-switcha') .' (<a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/support/topic/important-please-read-2/">'. esc_html__('Important Note', 'theme-switcha') .'</a>)'));
       	add_settings_field('enable_toolbar', __( 'Enable Toolbar Menu', 'theme-switcha' ), 'theme_switcha_callback_checkbox', 'theme_switcha_options', 'settings', array('id' => 'enable_toolbar', 'label' => esc_html__('Enable Theme Switch menu in Toolbar', 'theme-switcha')));
       	add_settings_field('disable_widget', __( 'Dashboard Widget', 'theme-switcha' ),    'theme_switcha_callback_checkbox', 'theme_switcha_options', 'settings', array('id' => 'disable_widget', 'label' => esc_html__('Disable dashboard widget for non-admin users', 'theme-switcha')));
       	add_settings_field('allowed_users',  __( 'Allowed Users', 'theme-switcha' ),       'theme_switcha_callback_select',   'theme_switcha_options', 'settings', array('id' => 'allowed_users',  'label' => esc_html__('Allow these users to switch themes', 'theme-switcha')));
       	add_settings_field('cookie_expire',  __( 'Cookie Expiration', 'theme-switcha' ),   'theme_switcha_callback_number',   'theme_switcha_options', 'settings', array('id' => 'cookie_expire',  'label' => esc_html__('Cookie Expiration (in seconds)', 'theme-switcha')));
       	add_settings_field('passkey',        __( 'Passkey', 'theme-switcha' ),             'theme_switcha_callback_text',     'theme_switcha_options', 'settings', array('id' => 'passkey',        'label' => esc_html__('Passkey for theme-switch links (alphanumeric only)', 'theme-switcha') .' <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/plugins/theme-switcha/#installation">'. esc_html__('More info &raquo;', 'theme-switcha') .'</a>'));
       	add_settings_field('reset_options',  __( 'Reset Options', 'theme-switcha' ),       'theme_switcha_callback_reset',    'theme_switcha_options', 'settings', array('id' => 'reset_options',  'label' => esc_html__('Restore default plugin options', 'theme-switcha')));
       	add_settings_field('rate_plugin',    __( 'Rate Plugin', 'theme-switcha' ),         'theme_switcha_callback_rate',     'theme_switcha_options', 'settings', array('id' => 'rate_plugin',    'label' => esc_html__('Show support with a 5-star rating &raquo;', 'theme-switcha')));
       	add_settings_field('show_support',   __( 'Show Support', 'theme-switcha' ),        'theme_switcha_callback_support',  'theme_switcha_options', 'settings', array('id' => 'show_support',   'label' => esc_html__('Show support with a small donation&nbsp;&raquo;', 'theme-switcha')));
       ```
   
 * I think this implement is good for this awesome plugin.
    -  This topic was modified 3 years, 8 months ago by [Alex Lion (阿力獅)](https://wordpress.org/support/users/alexclassroom/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/make-some-ui-strings/#post-16080053)
 * Thanks for reporting, Alex. Will get those fixed up for the next plugin update.
 *  Thread Starter [Alex Lion (阿力獅)](https://wordpress.org/support/users/alexclassroom/)
 * (@alexclassroom)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/make-some-ui-strings/#post-16083430)
 * Hope to see the fully internationalized version plugin soon.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make some UI strings internationalizable’ is closed to new replies.

 * ![](https://ps.w.org/theme-switcha/assets/icon-256x256.png?rev=1501320)
 * [Theme Switcha - Easily Switch Themes for Development and Testing](https://wordpress.org/plugins/theme-switcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-switcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-switcha/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-switcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-switcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-switcha/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Alex Lion (阿力獅)](https://wordpress.org/support/users/alexclassroom/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/make-some-ui-strings/#post-16083430)
 * Status: resolved