[opensuse-translation] Where did I mess up? - MSGFmt error
Hi, while trying to commit a revision to system-profile.he.po i get this message: "Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:48: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:60: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:76: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 3 fatal errors PO format check failed for 'trunk/yast/he/po/system-profile.he.po' " my question is: where did I mess up? -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org
Am Donnerstag, 20. Juni 2013, 23:28:59 schrieb Ys:
Hi, while trying to commit a revision to system-profile.he.po i get this message:
"Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:48: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:60: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:76: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 3 fatal errors PO format check failed for 'trunk/yast/he/po/system-profile.he.po' "
my question is: where did I mess up? Hi there,
the problem is that the original (template) string and your translation have a different number of newline signs "\n". When you open the system-profile.he.po file with a texteditor and check the lines 48, 60, 76, there you'll find the text pairs which need your attention. If you're still lost, feel free to send me an email with the file an I'll show you what's wrong. -- Kind Regards, Michael
On 06/20/2013 11:54 PM, Michael Skiba wrote:
Am Donnerstag, 20. Juni 2013, 23:28:59 schrieb Ys:
Hi, while trying to commit a revision to system-profile.he.po i get this message:
"Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:48: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:60: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:76: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 3 fatal errors PO format check failed for 'trunk/yast/he/po/system-profile.he.po' "
my question is: where did I mess up? Hi there,
the problem is that the original (template) string and your translation have a different number of newline signs "\n".
When you open the system-profile.he.po file with a texteditor and check the lines 48, 60, 76, there you'll find the text pairs which need your attention.
If you're still lost, feel free to send me an email with the file an I'll show you what's wrong.
Thanks for the help - Ys -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org
On 06/20/2013 11:54 PM, Michael Skiba wrote:
Am Donnerstag, 20. Juni 2013, 23:28:59 schrieb Ys:
Hi, while trying to commit a revision to system-profile.he.po i get this message:
"Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:48: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:60: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:76: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 3 fatal errors PO format check failed for 'trunk/yast/he/po/system-profile.he.po' "
my question is: where did I mess up? Hi there,
the problem is that the original (template) string and your translation have a different number of newline signs "\n".
When you open the system-profile.he.po file with a texteditor and check the lines 48, 60, 76, there you'll find the text pairs which need your attention.
If you're still lost, feel free to send me an email with the file an I'll show you what's wrong.
Thanks for the help
- Ys Also, I see this error: "Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:80: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 1 fatal error PO format check failed for 'trunk/yast/he/po/system-profile.he.po" however, this isn't my fault, but the finickiness of the language to
On 06/21/2013 08:35 AM, Ys wrote: translate to. -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org
Am Freitag, 21. Juni 2013, 08:40:48 schrieb Ys:
Also, I see this error: "Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:80: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 1 fatal error PO format check failed for 'trunk/yast/he/po/system-profile.he.po" however, this isn't my fault, but the finickiness of the language to translate to. Msgfmt still expects exactly the same number of \n, if your translation doesn't need them, try adding them to the very end of your translation.
-- Kind Regards, Michael
On 06/21/2013 09:12 AM, Michael Skiba wrote:
Am Freitag, 21. Juni 2013, 08:40:48 schrieb Ys:
Also, I see this error: "Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:80: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 1 fatal error PO format check failed for 'trunk/yast/he/po/system-profile.he.po" however, this isn't my fault, but the finickiness of the language to translate to. Msgfmt still expects exactly the same number of \n, if your translation doesn't need them, try adding them to the very end of your translation.
This time, it did pass, and was committed (whitespace was the problem for me) as r82618 -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2013-06-21 at 09:36 +0300, Ys wrote:
Msgfmt still expects exactly the same number of \n, if your translation doesn't need them, try adding them to the very end of your translation.
This time, it did pass, and was committed (whitespace was the problem for me) as r82618
Some editors, like kbabel, can run those tests locally, and place the pointer at the exact string with the error. Lokalize doesn't. I edit with lokalize, then I have a pass with kbabel to review the errors. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlHEQAIACgkQtTMYHG2NR9XpjQCfV3WNyrwOKLEUidb2CUgSKhHP 6lIAoIMov6ySkkGBkeTpCKexg2sVgwer =OZjc -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org
Op donderdag 20 juni 2013 23:28:59 schreef Ys:
Hi, while trying to commit a revision to system-profile.he.po i get this message:
"Commit failed (details follow): Commit blocked by pre-commit hook (exit code 1) with output: <stdin>:48: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:60: `msgid' and `msgstr' entries do not both end with '\n' <stdin>:76: `msgid' and `msgstr' entries do not both end with '\n' /usr/bin/msgfmt: found 3 fatal errors PO format check failed for 'trunk/yast/he/po/system-profile.he.po' "
my question is: where did I mess up?
Like it states: the msgid, the English message, ends with a \n, where the translation of that message, msgstr, does not, So add "\n", without the quotes, at the end of your translations. When you edit that file with vi you find the text with missing characters at the lines 48, 60 and 76. -- fr.gr. Freek de Kruijf -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
Freek de Kruijf
-
Michael Skiba
-
Ys