WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mfrerebeau
    Member
    Posted 11 months 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' );
    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/

  2. nsp-code
    Member
    Plugin Author

    Posted 11 months ago #

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

  3. mfrerebeau
    Member
    Posted 11 months ago #

    Super !

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

Reply

You must log in to post.

About this Plugin

About this Topic