Title: l10n issue
Last modified: August 22, 2016

---

# l10n issue

 *  Resolved [iltrev](https://wordpress.org/support/users/iltrev/)
 * (@iltrev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/)
 * I am trying to translate Annina using POEdit and the .pot file available with
   the theme and everything is going smoothly as expected, apart from one string:“
   One thought on “%2$s”” / “%1$s thoughts on “%2$s”” doesn’t seem to be working
   with the translated version, and I can’t understand why.
 * Please bear in mind that I am not a POEdit (and .pot, .po, .mo files) expert,
   but as far as I can understand the resulting strings appear to be ok:
 *     ```
       #: comments.php:28
       #, php-format
       msgctxt "comments title"
       msgid "One thought on “%2$s”"
       msgid_plural "%1$s thoughts on “%2$s”"
       msgstr[0] "Un commento su “%2$s”"
       msgstr[1] "%1$s commenti su “%2$s”"
       ```
   
 * As I mentioned, what happens is that – only for this string – the original (English)
   is shown, instead of the translated (Italian) one.
 * Any help would be greatly appreciated, thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Theme Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/#post-5939368)
 * Hi iltrev,
    is’t strange, the string appears to be ok.
 * I also tried to do a test with Poedit and this is the result:
 *     ```
       #: comments.php:28
       #, php-format
       msgctxt "comments title"
       msgid "One thought on &ldquo;%2$s&rdquo;"
       msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
       msgstr[0] "Un commento su &ldquo;%2$s&rdquo;"
       msgstr[1] "%1$s commenti su &ldquo;%2$s&rdquo;"
       ```
   
 * Could be the “quotes” to give problems (internal ones).
    Try to translate strings
   without internal quotes in this way:
 *     ```
       msgstr[0] "Un commento su %2$s"
       msgstr[1] "%1$s commenti su %2$s"
       ```
   
 * Best!
 *  Thread Starter [iltrev](https://wordpress.org/support/users/iltrev/)
 * (@iltrev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/#post-5939369)
 * Tried.
    Nope, nothing changed.
 * Did you try to apply the .po/.mo files to the theme? Do they work?
    (just to 
   understand if it’s my installation’s fault…)
 *  Thread Starter [iltrev](https://wordpress.org/support/users/iltrev/)
 * (@iltrev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/#post-5939396)
 * (sorry, I just noticed that the text I posted didn’t contain the escape codes
   for the quotes, but in fact it did on the .po file – I think that they were converted
   while posting my question – in fact my .po looks exactly like yours)
 *  Theme Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/#post-5939427)
 * Ok I found the problem 🙂
 * Poedit has nothing to do, the problem is the wrong textdomain in comments.php(
   line 28).
    I messed with the PRO version of Annina and I left textdomain “anninapro”
   instead of “annina”. So just replace this string in comments.php and everything
   will be ok 🙂
 * Obviously I will revise this little bug in the next update
    Thanks 😉
 *  Thread Starter [iltrev](https://wordpress.org/support/users/iltrev/)
 * (@iltrev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/#post-5939610)
 * Well thanks a lot to you! Great theme btw 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘l10n issue’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/annina/1.9.9/screenshot.png)
 * Annina
 * [Support Threads](https://wordpress.org/support/theme/annina/)
 * [Active Topics](https://wordpress.org/support/theme/annina/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/annina/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/annina/reviews/)

## Tags

 * [.mo](https://wordpress.org/support/topic-tag/mo/)
 * [po](https://wordpress.org/support/topic-tag/po/)
 * [poEdit](https://wordpress.org/support/topic-tag/poedit/)

 * 5 replies
 * 2 participants
 * Last reply from: [iltrev](https://wordpress.org/support/users/iltrev/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/l10n-issue/#post-5939610)
 * Status: resolved