Translation duplicate plural and non-plural msg_id
I have a problem generating a .POT file with duplicate plural and non-plural forms. For example,
$n = 0; _e('times', MY_TD); // happened 6 times _n( 'Time', 'Times', $n, MY_TD ); // once or multiple times _e('Time', MY_TD); // the time, e.g. 12:30
After generating the .POT with
makepot wp-plugin ...
the singular form of ‘Time’ is not present: I get,
msgid "times" msgstr "" msgid "Time" msgid_plural "Times" msgstr "" msgstr ""
In some languages the translation of noun Time and verb Time are different.
Manually adding to the .pot file an extra msg_id ‘Time’ signals a fatal error with PoEdit.
Any ideas, workarounds
- The topic ‘Translation duplicate plural and non-plural msg_id’ is closed to new replies.