Problems with spanish translation (and one solution)
-
I have translated Easy Custom Sidebars to Spanish. Here you have a ZIP, with .PO and .MO files.
But this translation doesn’t work. After some unsuccessful tests with alternative translation functions, I have searched for inspiration in plugin Easy Google Fonts. Here it is my solution:
1. I have commented the translation function in class-easy-custom-sidebars.php file, lines 128-130.
2. I have added the following function to file easy-custom-sidebars.php, in line 57:
function easy_custom_sidebars_text_domain() { load_plugin_textdomain( 'easy-custom-sidebars', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action( 'plugins_loaded', 'easy_custom_sidebars_text_domain' );
As my PHP skills are very limited, I am not sure if this is the best way to solve the problem of translation.
Anyway, a very nice and useful plugin!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problems with spanish translation (and one solution)’ is closed to new replies.