About plugin internationalization
-
Hi @amu02aftab, how are you?
I begin using your plugin Client Logo Carousel yesterday and I liked ??. I wanted to translate it to Spanish (
es
,es_mx
andes_ve
locales), but I saw that the plugin isn’t properly prepared for localization.Looking inside the code, I saw you missed including the text domain in plugin comments header and inside each translation function as second parameter.
The plugin header comment should be updated this way (
wp-client-logo-carousel.php:2
):** * Plugin Name: WP Client Logo Carousel * Plugin URI: https://aftabhusain.wordpress.com/ * Description: Display clients, partners, sponsors, affiliates etc logos responsive carousel slider with the help of a shortcode. * Version: 3.0.0 * Author: Aftab Husain * Author URI: https://aftabhusain.wordpress.com/ * Author Email: [email protected] * License: GPLv2 * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: wp-client-logo-carousel */
And the translation functions this way (
wp-client-logo-carousel.php:23
):[...] 'new_item' => __('New Client Logo', 'wp-client-logo-carousel'), [...]
Other issue I found is that trunk version is using, although you have a 3.0.0 tag. The problem seems to be that you forgot to add the second 0 in the stable field of your Readme file here and here.
Hope this helps you improving your plugin! ??
- The topic ‘About plugin internationalization’ is closed to new replies.