Hey Thomas
Thanks for replying and excuse me for my delay.
Sorry, I guess the advanced-ads-es_ES.po file is fine but I am not sure how to use it correctly. What I did was to place it at mysite\wp-content\languages\plugins\advanced-ads-en_US.po (along with .mo) and make the translations here (in order to avoid the next updates overwrite my translations).
Besides, I added to my funtions.php file the next code:
function advanced_ads_load_plugin_textdomain() {
$domain = 'advanced-ads';
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
if ( $loaded = load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' ) ) {
return $loaded;
} else {
load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
}
}
add_action( 'init', 'advanced_ads_load_plugin_textdomain' );
The problem is, only some strings are taken, not all.
Do you know other way to translate your plugin without lose the already made translations when it updates?
Regards from Argentina