Title: Theme localization: _ngettext problem
Last modified: August 19, 2016

---

# Theme localization: _ngettext problem

 *  [halibutt](https://wordpress.org/support/users/halibutt/)
 * (@halibutt)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/theme-localization-_ngettext-problem/)
 * Hello everyone. I’m trying hard to make the excellent theme [The Morning After](http://code.google.com/p/the-morning-after/)
   localizable, that is to wrap all parts of code into _e and __ tags, translate
   it with PoEdit and voila.
 * Being a .php newbie I managed to fix most problems and [the work is almost done](http://themasterplan.in/talk/comments.php?DiscussionID=75&page=2#Item_8).
   However, there’s one thing I cannot set straight. There’s this line:
    `<?php 
   comments_popup_link('Post a comment', 'One comment', '% comments', '', 'Comments
   off'); ?>` A similar is this one: `<?php comments_number('Post a comment','One
   comment','% comments'); ?>`
 * It looks fine in English or German languages, where the rules of forming plural
   are pretty straightforward, but not in languages like my own. So, I thought I
   need to wrap those lines in __ngettext, but whichever I go, it doesn’t work. 
   Any idea how to wrap those lines of code? Pretty, pretty please? 🙂
 * BTW, the rules for Polish plurals in PoEdit’s terms are:
    `nplurals=5; plural
   =(n==1 ? 0 : n==2 ? 1 : n%10>=2 && n%10<=4 \ && (n%100<10 || n%100>=20) ? 2 :
   3);\n" as opposed to English rules nplurals=2; plural=(n != 1)  Get the idea?

Viewing 1 replies (of 1 total)

 *  Thread Starter [halibutt](https://wordpress.org/support/users/halibutt/)
 * (@halibutt)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/theme-localization-_ngettext-problem/#post-794285)
 * Never mind, I fixed that. For the record, the solution is here: [http://themasterplan.in/talk/comments.php?DiscussionID=75&page=2#Item_9](http://themasterplan.in/talk/comments.php?DiscussionID=75&page=2#Item_9)
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Theme localization: _ngettext problem’ is closed to new replies.

## Tags

 * [comments_number](https://wordpress.org/support/topic-tag/comments_number/)
 * [localisation](https://wordpress.org/support/topic-tag/localisation/)
 * [Localization](https://wordpress.org/support/topic-tag/localization/)
 * [poEdit](https://wordpress.org/support/topic-tag/poedit/)
 * [the morning after](https://wordpress.org/support/topic-tag/the-morning-after/)
 * [tma](https://wordpress.org/support/topic-tag/tma/)
 * [_e](https://wordpress.org/support/topic-tag/_e/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [halibutt](https://wordpress.org/support/users/halibutt/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/theme-localization-_ngettext-problem/#post-794285)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
