Missing option for translation of word Comments

  • Author
    Posts
  • #28311
    seemannKP

    Hi. There is a bug in Tempera file theme-comments.php on row n. 90 which prevents translation of word “Comment” to custom language. The row is now: print '<div class="comments-link"><i class="icon-comments icon-metas" title="Comments"></i>'; But it should be: print '<div class="comments-link"><i class="icon-comments icon-metas" title="'.__("Comments", "tempera").'"></i>';

    Also for proper translation of theme and comments the default .po translation file should have defined plural form and context form. So the rows n. 2218 and 2249 of the .po file should be something like this:

    #: includes/theme-comments.php:102
    msgid "One Comment:"
    msgid_plural "%1$s Comments:"
    msgstr[0] "Jeden komentář:"
    msgstr[1] "%1$s  komentáře"
    msgstr[2] "%1$s  komentářů"

    and

    #: includes/theme-comments.php:187 includes/theme-comments.php:188
    msgctxt "noun"
    msgid "Comment"
    msgstr "Komentář"

    I hope that this post help others to proper translation of comments.

Viewing 1 post (of 1 total)

The topic ‘Missing option for translation of word Comments’ is closed to new replies.