mke2fs: Fix German translation of mke2fs
PATCH 1/1 mke2fs: Fix German translation of mke2fs
When a device mke2fs should work on already contains an ext? filesystem, mke2fs prints a warning. In German translation the warning doesn't end with a date string (which is terminated by a newline) and thus the output comes out mangled like:
mke2fs 1.42.12 (29-Aug-2014) /dev/disk/by-label/WD20_SL12 hat ein ext3-Dateisystem mit Namen „WD20_SL12“
zuletzt auf /WD20_SL12 auf Tue Jan 27 09:01:44 2015
eingehängtTrotzdem fortfahren? (j,n)
^^^^^^^^^^^^^ here
Fix the translation to end the printed string with a newline and avoid superfluous space at the beginning of the line.
--- po/de.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
po/de.po +3 -1
@@ -5778,9 +5778,11 @@ msgid "Proceed anyway? (y,n) " msgstr "Trotzdem fortfahren? (j,n) " #: misc/util.c:132 +# The second %s refers to a date string ending with a newline. Make the +# translated string end with a newline as well to maintain output compatibility. #, c-format msgid "\tlast mounted on %s on %s" -msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s auf %seingehängt.\n" #: misc/util.c:135 #, c-format
Signature · 6 lines
2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 25 lines · Jan Kara
When a device mke2fs should work on already contains an ext? filesystem, mke2fs prints a warning. In German translation the warning doesn't end with a date string (which is terminated by a newline) and thus the output comes out mangled like:
mke2fs 1.42.12 (29-Aug-2014)
/dev/disk/by-label/WD20_SL12hat ein ext3-Dateisystem mit Namen „WD20_SL12“zuletzt auf /WD20_SL12 auf Tue Jan 27 09:01:44 2015eingehängtTrotzdem fortfahren? (j,n)
^^^^^^^^^^^^^ hereFix the translation to end the printed string with a newline and avoid superfluous space at the beginning of the line.
Signed-off-by Jan Kara <[email protected]>--- po/de.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)po/de.po +0
-0
po/de.po msgid "Proceed anyway? (y,n) " · line 5785
Quoted 9 lines
po/de.po +3
-1@@ -5778,9 +5778,11 @@ msgid "Proceed anyway? (y,n) " msgstr "Trotzdem fortfahren? (j,n) " #: misc/util.c:132 +# The second %s refers to a date string ending with a newline. Make the +# translated string end with a newline as well to maintain output compatibility. #, c-format msgid "\tlast mounted on %s on %s" -msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s auf %seingehängt.\n"
I never checked translation before, but if you already change that, could you please change it to "am %s eingehängt"? So
-msgstr "\tzuletzt auf %s auf %s eingehängt"
+msgstr "\tzuletzt auf %s am %seingehängt.\n"
Now does the date string always end with a white space, or should that better be
+msgstr "\tzuletzt auf %s am %s eingehängt.\n"
Also, the date string is in English, shouldn't that be localized either?
Thanks,
Bernd
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 39 lines · Bernd Schubert
Quoted 25 lines · Jan Kara
When a device mke2fs should work on already contains an ext? filesystem, mke2fs prints a warning. In German translation the warning doesn't end with a date string (which is terminated by a newline) and thus the output comes out mangled like:
mke2fs 1.42.12 (29-Aug-2014)
/dev/disk/by-label/WD20_SL12hat ein ext3-Dateisystem mit Namen „WD20_SL12“zuletzt auf /WD20_SL12 auf Tue Jan 27 09:01:44 2015eingehängtTrotzdem fortfahren? (j,n)
^^^^^^^^^^^^^ hereFix the translation to end the printed string with a newline and avoid superfluous space at the beginning of the line.
Signed-off-by Jan Kara <[email protected]>--- po/de.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)po/de.po +0
-0po/de.po msgid "Proceed anyway? (y,n) " · line 5785
Quoted 9 lines
po/de.po +3
-1@@ -5778,9 +5778,11 @@ msgid "Proceed anyway? (y,n) " msgstr "Trotzdem fortfahren? (j,n) " #: misc/util.c:132 +# The second %s refers to a date string ending with a newline. Make the +# translated string end with a newline as well to maintain output compatibility. #, c-format msgid "\tlast mounted on %s on %s" -msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s auf %seingehängt.\n"I never checked translation before, but if you already change that, could you please change it to "am %s eingehängt"? So
Review
Quoted 2 lines
(quoted diff) +1
-1-msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s am %seingehängt.\n"
OK, no problem.
Quoted 2 lines
Now does the date string always end with a white space, or should that better be
ctime() always ends the date string with '\n'. That's why I removed ' '
from the German format string.
Quoted 3 lines
+msgstr "\tzuletzt auf %s am %s eingehängt.\n"
Also, the date string is in English, shouldn't that be localized either?
I'd expect that output of ctime() is localized (LC_TIME?). If it's not,
I don't think it's a job of e2fsprogs to fix that...
New patch attached.
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 1 line
From
a322e0862cbbaf37e134b46e9aa0e9b9a0c01c81Mon Sep 17 00:00:00 2001
From: Jan Kara <[email protected]>
Date: Tue, 27 Jan 2015 10:04:52 +0100
Subject: [PATCH] mke2fs: Fix German translation of mke2fs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When a device mke2fs should work on already contains an ext? filesystem, mke2fs prints a warning. In German translation the warning doesn't end with a date string (which is terminated by a newline) and thus the output comes out mangled like:
mke2fs 1.42.12 (29-Aug-2014) /dev/disk/by-label/WD20_SL12 hat ein ext3-Dateisystem mit Namen „WD20_SL12“
zuletzt auf /WD20_SL12 auf Tue Jan 27 09:01:44 2015
eingehängtTrotzdem fortfahren? (j,n)
^^^^^^^^^^^^^ here
Fix the translation to end the printed string with a newline and avoid superfluous space at the beginning of the line.
--- po/de.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
po/de.po +3 -1
@@ -5778,9 +5778,11 @@ msgid "Proceed anyway? (y,n) " msgstr "Trotzdem fortfahren? (j,n) " #: misc/util.c:132 +# The second %s refers to a date string ending with a newline. Make the +# translated string end with a newline as well to maintain output compatibility. #, c-format msgid "\tlast mounted on %s on %s" -msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s am %seingehängt.\n" #: misc/util.c:135 #, c-format
Signature · 1 line
2.1.2
Bernd Schubert
Reviewed-byQuoted 40 lines · Jan Kara
Quoted 39 lines · Bernd Schubert
Quoted 25 lines · Jan Kara
When a device mke2fs should work on already contains an ext? filesystem, mke2fs prints a warning. In German translation the warning doesn't end with a date string (which is terminated by a newline) and thus the output comes out mangled like:
mke2fs 1.42.12 (29-Aug-2014)
/dev/disk/by-label/WD20_SL12hat ein ext3-Dateisystem mit Namen „WD20_SL12“zuletzt auf /WD20_SL12 auf Tue Jan 27 09:01:44 2015eingehängtTrotzdem fortfahren? (j,n)
^^^^^^^^^^^^^ hereFix the translation to end the printed string with a newline and avoid superfluous space at the beginning of the line.
Signed-off-by Jan Kara <[email protected]>--- po/de.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)po/de.po +0
-0po/de.po msgid "Proceed anyway? (y,n) " · line 5785
Quoted 9 lines
po/de.po +3
-1@@ -5778,9 +5778,11 @@ msgid "Proceed anyway? (y,n) " msgstr "Trotzdem fortfahren? (j,n) " #: misc/util.c:132 +# The second %s refers to a date string ending with a newline. Make the +# translated string end with a newline as well to maintain output compatibility. #, c-format msgid "\tlast mounted on %s on %s" -msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s auf %seingehängt.\n"I never checked translation before, but if you already change that, could you please change it to "am %s eingehängt"? So
Quoted 8 lines
po/de.po msgid "Proceed anyway? (y,n) " · line 5785
Quoted 2 lines
po/de.po +1
-1-msgstr "\tzuletzt auf %s auf %s eingehängt" +msgstr "\tzuletzt auf %s am %seingehängt.\n"OK, no problem.
Quoted 2 lines
Now does the date string always end with a white space, or should that better be
ctime()always ends the date string with '\n'. That's why I removed ' '
from the German format string.
Ah, I see it now in the man page of ctime.
Quoted 6 lines
Quoted 4 lines
+msgstr "\tzuletzt auf %s am %s eingehängt.\n"
Also, the date string is in English, shouldn't that be localized either?
I'd expect that output of
ctime()is localized (LC_TIME?). If it's not,
I don't think it's a job of e2fsprogs to fix that...
I wonder if ctime is the right function for that. I don't have any experience with localization, but as far as I can see from the man page ctime outputs the string in English, according/relative to the local time zone.
If I see it right strftime might be a better function, although that would be out of scope for this patch.
Quoted 2 lines
New patch attached.
Thank you, if required you could add
Bernd
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html