[resolved] POT file duplicate definition error (5 posts)

  1. AWN
    Posted 3 years ago #

    Hello Sir,

    As subject cited above, I couldn't generate .mo file of translation. Poedit returns the message: "Error: duplicate message definition..."

    It seems to have two entries with the same msgid:
    Theme URL & Author URL

    1. http://www.wildweblab.com
    2. http://www.wildweblab.com

    Please help me.

    Thank you!

  2. Artur - wildweblab.com
    Theme Author

    Posted 3 years ago #

    Please remove last 3 lines from file icy.pot it will fix the problem.

    I will include fixed file in the next release, so others won't run into the same problem.

  3. idienstler
    Posted 2 years ago #


    I never used a .pot file for a translation so this was my first attemp.

    1. I downloaded icy.pot and changed the name to
    2. I removed the last 3 lines with written text from that file.
    3. I downloaded and installed Poedit and opened icy-de_DE.pot with Poedit.
    4. Poedit asked me some stuff with plural forms and I entered
    nplurals=2; plural=(n != 1);
    from http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html?id=l10n/pluralforms for german
    5. I entered the translation for "Read More" and saved the file. Poedit also created an .mo-file at this moment.
    The .pot looks now like this http://s14.directupload.net/images/130728/k7s9ypxs.png
    6. I uploaded the .pot and the .mo-file into /wp-content/themes/icy/languages
    7. I called the startpage and I can see "Read More" instead of my translation.

    - My wp-config.php has the
    define ('WPLANG', 'de_DE');

    How can I activate the translation?

  4. AWN
    Posted 2 years ago #

    Salam alaikum idienstler,

    Translate the icy.pot using POEdit and save it as de_DE.pot not icy-de_DE.pot

    Hopefully that's it.

  5. idienstler
    Posted 2 years ago #

    Hi Wakil Nikzad,

    thx it works now.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic