I am trying to translate a theme using Poedit, every thing is alright except two strings which give me errors like this:
Error: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: The character that terminates the directive number 1 is not a valid conversation specifier.
The string itself is this:
% comments
Both errors are in strings having % comment
(not sth like % s
).
Now I have two problems:
1. How can I resolve these errors? Do I need to change theme code?
2. After getting these compile errors, I used .mo and .po files anyway but some phrases had been translated and some not! What is the reason to this?
EDIT: The PHP code translation associated to is:
comments_number( __('There are no comments so far', 'hbthemes'), __('There is <strong>1 comment</strong> so far', 'hbthemes'), __('There are <strong>% comments</strong> so far', 'hbthemes') );