From:
[email protected]
Package: shadow
Version: 1:4.0.3-30
Tags: patch, l10n
Severity: wishlist
Hi Karl,
As told offlist I'm including here a patch to gettext tag some
strings that were not tagged before. It can wait after sarge as
this package is already frozen.
Also all strings inside perror(3) are not tagged, they are very
short some times and would have to be extended so translators
could get the meaning, but I was not sure if that change was
desirable. If you think it is, I could work on it.
regards,
guillem
diff -Naur shadow-4.0.3/libmisc/obscure.c shadow-4.0.3.intl/libmisc/obscure.c --- shadow-4.0.3/libmisc/obscure.c 1999-03-07 20:14:40.000000000 +0100
+++ shadow-4.0.3.intl/libmisc/obscure.c 2004-08-16 05:26:05.000000000 +0200
@@ -161,7 +161,7 @@
#endif
if (strcmp(new, old) == 0)
- return "no change";
+ return _("no change");
newmono = str_lower(xstrdup(new));
oldmono = str_lower(xstrdup(old));
@@ -170,19 +170,19 @@
strcat (wrapped, oldmono);
if (palindrome(oldmono, newmono))
- msg = "a palindrome";
+ msg = _("a palindrome");
if (!msg && strcmp(oldmono, newmono) == 0)
- msg = "case changes only";
+ msg = _("case changes only");
if (!msg && similar(oldmono, newmono))
- msg = "too similar";
+ msg = _("too similar");
if (!msg && simple(old, new))
- msg = "too simple";
+ msg = _("too simple");
if (!msg && strstr(wrapped, newmono))
- msg = "rotated";
+ msg = _("rotated");
#ifdef HAVE_LIBCRACK
/*
@@ -223,7 +223,7 @@
#endif
if ( newlen < getdef_num("PASS_MIN_LEN", 0) )
- return "too short";
+ return _("too