localization not work : how to repair it
-
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 ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘localization not work : how to repair it’ is closed to new replies.