Title: localization not work : how to repair it
Last modified: August 21, 2016

---

# localization not work : how to repair it

 *  Resolved [mfrerebeau](https://wordpress.org/support/users/mfrerebeau/)
 * (@mfrerebeau)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/localization-not-work/)
 * By default localization not work.
    To make to work I modify the plugin as this:
 * **Correct the domain language statement in wp-content/plugins/taxonomy-terms-
   order/taxonomy-terms-order.php :**
 *     ```
       $domaine = dirname( plugin_basename( __FILE__ ) ) . '/lang/';
       load_plugin_textdomain('to', FALSE, $domaine);
       ```
   
 * **Make menu localized in wp-content/plugins/taxonomy-terms-order/taxonomy-terms-
   order.php :**
 *     ```
       if ($post_type == 'post')
         add_submenu_page('edit.php', __('Categories Order', 'to'), __('Categories Order', 'to'), 'level_'.$options['level'], 'to-interface-'.$post_type, 'TOPluginInterface' );
       else
         add_submenu_page('edit.php?post_type='.$post_type, __('Taxonomy Order', 'to'), __('Taxonomy Order', 'to'), 'level_'.$options['level'], 'to-interface-'.$post_type, 'TOPluginInterface' );
       ```
   
 * And in the same file :
 *     ```
       add_options_page('Taxonomy Terms Order', '<img class="menu_pto" src="'. TOURL .'/images/menu-icon.gif" alt="" />'. __('Taxonomy Terms Order', 'to'), 'manage_options', 'to-options', 'to_plugin_options');
       ```
   
 * And I add some translation in to-fr_FR.mo
 * Could these corrections be inserted in official code ?
 * [http://wordpress.org/plugins/taxonomy-terms-order/](http://wordpress.org/plugins/taxonomy-terms-order/)

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

 *  Plugin Author [nsp-code](https://wordpress.org/support/users/nsp-code/)
 * (@nsp-code)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/localization-not-work/#post-3987668)
 * This is a know bug which will be fixed in the next version.
    Thanks for the code.
 *  Thread Starter [mfrerebeau](https://wordpress.org/support/users/mfrerebeau/)
 * (@mfrerebeau)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/localization-not-work/#post-3987768)
 * Super !
 * That will be good to insert patches in next version
    Thanks !

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

The topic ‘localization not work : how to repair it’ is closed to new replies.

 * ![](https://ps.w.org/taxonomy-terms-order/assets/icon-256x256.png?rev=1564412)
 * [Category Order and Taxonomy Terms Order](https://wordpress.org/plugins/taxonomy-terms-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/taxonomy-terms-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/taxonomy-terms-order/)
 * [Active Topics](https://wordpress.org/support/plugin/taxonomy-terms-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/taxonomy-terms-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/taxonomy-terms-order/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [Localization](https://wordpress.org/support/topic-tag/localization/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)

 * 2 replies
 * 2 participants
 * Last reply from: [mfrerebeau](https://wordpress.org/support/users/mfrerebeau/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/localization-not-work/#post-3987768)
 * Status: resolved