I did a it_IT.mo and po file with the strings translate.
Then, I have to insert
function ce_language() {
load_plugin_textdomain('ce', false, dirname( plugin_basename( __FILE__ ) ));
}
add_action('init','ce_language');
in php file. The plugin has two php file: the first one contains the “installation” and menus; the second one contain the code for the mail and the string to translate.
So, I’ve inserted the code above in second one file, before all functions. But it doesn’t works.
Someone can help me?
tnx
Hi, your plugin did what I wanted thanks, just one thing- the icon in the settings does not show up so I replaced:
<h2><img src=”<?php bloginfo(‘url’); ?>/wp-content/plugins/comment-emailer/images/email-icon.png”/> Commented Emailer</h2>
with:
<div id=”icon-options-general” class=”icon32″>
</div><h2>Commented Emailer</h2>
in comment-emailer.php
]]>