WordPress.org

Support

Support » Plugins and Hacks » Hacks » Translation duplicate plural and non-plural msg_id

Translation duplicate plural and non-plural msg_id

  • ianhaycox
    Member

    @ianhaycox

    Hi,

    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[0] ""
    msgstr[1] ""

    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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Translation duplicate plural and non-plural msg_id’ is closed to new replies.