Category Order and Taxonomy Terms Order
[resolved] localization not work : how to repair it (3 posts)

  1. mfrerebeau
    Posted 2 years ago #

    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' );
      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 ?


  2. nsp-code
    Plugin Author

    Posted 2 years ago #

    This is a know bug which will be fixed in the next version.
    Thanks for the code.

  3. mfrerebeau
    Posted 2 years ago #

    Super !

    That will be good to insert patches in next version
    Thanks !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Order and Taxonomy Terms Order
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic