[FONT=Fixedsys]“msgfmt: found 2 fatal errors”[/FONT]
Details:
[FONT=Fixedsys]…\wp-content\languages\de_DE.po:16148: duplicate message definition…
…\wp-content\languages\de_DE.po:1684: …this is the location of the first definition
…\wp-content\languages\de_DE.po:16152: duplicate message definition…
…\wp-content\languages\de_DE.po:10189: …this is the location of the first definition[/FONT]
Ich würde sagen, das es ein Bug in PoEdit ist, denn dieser bekommt es nicht auf die Reihe, das ein Text mit gleicher Message ID einmal mit und einmal ohne Pluralisierung vorkommt.
Das ist aber von der Behandlung in der Sprachdatei selbst (*.mo) essentiell!
Hier als Beispiel einer der betreffenden Stellen:
#: wp-admin/includes/dashboard.php:240
msgid "Comment"
msgid_plural "Comments"
msgstr[0] "Kommentar"
msgstr[1] "Kommentare"
und dann die aus dem Standard Theme:
#: wp-content/themes/default/comments-popup.php:49
msgid "Comment"
msgstr ""
Wie man sehen kann, ist der eine Eintrag eine Pluralisierung und der andere nicht. Dies sollte PoEdit eigentlich erkennen können, denn der Schlüssel (Key) für die obere ID ist:[INDENT] "Comment\0Comments"
[/INDENT]während der Schlüssel (Key) für die untere ID folgender ist:[INDENT] "Comment"
[/INDENT]Somit sind das in der *.mo Datei 2 differente Schlüssel, weswegen sie auch korrekt getrennt benutzt und gelistet werden.
Das PoEdit das nicht versteht, ist ein Problem von PoEdit und nicht der deutschen Sprachdatei!
Thema unübersetzte Strings, hier wieder ein Beispiel:
#. Not gettexted string WP_I18N_DB_CONN_ERROR
#: wp-includes/wp-db.php:343
msgid ""
"\n"
"<h1>Error establishing a database connection</h1>\n"
"<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can't contact the database server at <code>%s</code>. This could mean your host's database server is down.</p>\n"
"<ul>\n"
"\t<li>Are you sure you have the correct username and password?</li>\n"
"\t<li>Are you sure that you have typed the correct hostname?</li>\n"
"\t<li>Are you sure that the database server is running?</li>\n"
"</ul>\n"
"<p>If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href='http://wordpress.org/support/'>WordPress Support Forums</a>.</p>\n"
msgstr ""
Alles anzeigen
Alles, was in der Sprachdatei enthalten ist und als Kommentar "[COLOR=Sienna]Not gettexted string WP_I18N_ ....[/COLOR]" enthält, sind Texte, die man nur im Quellcode ändern kann, denn zu diesem Zeitpunkt der Ausführung des Scripts ist es nicht möglich, eine Sprachdatei zu benutzen. Davon gibt es mindestens 7 Stellen im WP Core, die offizielle wordpress.pot Datei enthält diese ebenfalls. Somit ist auch dies kein Versäumnis sondern Absicht.