Thread Starter
verbre
(@verbre)
I have solved this with adding :
load_plugin_textdomain(‘quick-mail’, false, basename( dirname( __FILE__ ) ) . ‘/lang’ );
in quick-mail.php
Thread Starter
verbre
(@verbre)
You can download the fr_FR files here if you want :
http://laurent-chabaud.com/extras/quick-mail/quick-mail-fr_FR.zip
Thanks for your great plugin !
Hello Verbre:
I will add your translation to next version, for WP 4.6.
I would like to know why translation did not work on your system, so I can fix it.
Translations should be loaded with plugins_loaded on line 102:
add_action( 'plugins_loaded', array($this, 'init_quick_mail_translation' ) );
WP documentation for load_plugin_textdomain says:
Call this function in your plugin as early as the plugins_loaded action.
Where did you add load_plugin_textdomain ?
Thank you,
Mitchell
Thread Starter
verbre
(@verbre)
Hi Mitchell,
i have addded “load_plugin-textdomain…” after the header in quick-mail.php, line 12.
I used the code found also in the WP codex here
I do not know why just add-actions does not work with my site. Perhaps because the dir-path of language files is not declared.
Cordially
Laurent
Thread Starter
verbre
(@verbre)
I thinks it’s perhaps necessary to declare the path of languages folder
Look the example so in your codex link.
I fixed the translations and added French.
Best wishes,
Mitchell