Context
By default poEdit (here version 1.6.4 for Mac OSX 1O.9) forget to import translators comment in po file.
like here
/* translators: added in child functions by xili */
$to_post_column = sprintf (__('The content in %1$s below must be translated in %2$s !', 'twentyfourteen'), $from_lang, $to_lang ) ;
to obtain this result in .po file:
#. translators: added in child functions by xili #: ../functions.php:408 #, php-format msgid "The content in %1$s below must be translated in %2$s !" msgstr "Le contenu %1$s ci-dessous doit être traduit en %2$s !"
After some researches, it seems that a command must be added to the php parser “–add-comments=translators”. No need to modify via terminal the config… just go to preferences of poEdit and the line in php parser config tab:
As in WP codex ‘translators’ is low case !
Enjoy !
M.