summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--modules/pam_stress/pam_stress.c17
-rw-r--r--po/de.po48
3 files changed, 42 insertions, 31 deletions
diff --git a/ChangeLog b/ChangeLog
index ff7e7423..53652788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,15 @@
+2006-12-18 Thorsten Kukuk <kukuk@thkukuk.de>
+
+ * modules/pam_stress/pam_stress.c (pam_sm_chauthtok): Fix
+ localisation of message printed to user.
+ * po/de.po: Adjust translation.
+
2006-12-18 Tomas Mraz <t8m@centrum.cz>
* modules/pam_unix/pam_unix_passwd.c (pam_sm_chauthtok): Localize
message printed to user.
-2006-12-13 Thorsten Kukuk <kukuk@suse.de>
+2006-12-13 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_localuser/pam_localuser.c: Add support for session
and chauthtok [SF#1606180].
diff --git a/modules/pam_stress/pam_stress.c b/modules/pam_stress/pam_stress.c
index c8b7ddf3..c254868f 100644
--- a/modules/pam_stress/pam_stress.c
+++ b/modules/pam_stress/pam_stress.c
@@ -1,6 +1,5 @@
-/* pam_stress module */
-
-/* $Id$
+/*
+ * pam_stress module
*
* created by Andrew Morgan <morgan@linux.kernel.org> 1996/3/12
*/
@@ -474,12 +473,12 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
}
pmsg[0] = &msg[0];
msg[0].msg_style = PAM_TEXT_INFO;
-#define _LOCAL_STRESS_COMMENT _("Changing STRESS password for ")
- txt = (char *) malloc(strlen(_LOCAL_STRESS_COMMENT)
- +strlen(username)+1);
- strcpy(txt, _LOCAL_STRESS_COMMENT);
-#undef _LOCAL_STRESS_COMMENT
- strcat(txt, username);
+ if (asprintf(&txt, _("Changing STRESS password for %s."),
+ (const char *)username) < 0) {
+ pam_syslog(pamh, LOG_CRIT, "out of memory");
+ return PAM_BUF_ERR;
+ }
+
msg[0].msg = txt;
i = 1;
} else {
diff --git a/po/de.po b/po/de.po
index 3ce4c37a..4c1ca42e 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Linux-PAM\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/projects/pam\n"
-"POT-Creation-Date: 2006-12-06 14:36+0100\n"
-"PO-Revision-Date: 2006-12-06 14:37+0100\n"
+"POT-Creation-Date: 2006-12-18 15:41+0100\n"
+"PO-Revision-Date: 2006-12-18 15:50+01:00\n"
"Last-Translator: Novell Language <language@novell.com>\n"
"Language-Team: Novell Language <language@novell.com>\n"
"MIME-Version: 1.0\n"
@@ -193,7 +193,7 @@ msgstr "ist ein Palindrome"
#: modules/pam_cracklib/pam_cracklib.c:392
msgid "case changes only"
-msgstr "Nur Änderungen bei der Groß-/Kleinschreibung"
+msgstr "nur Änderungen bei der Groß-/Kleinschreibung"
#: modules/pam_cracklib/pam_cracklib.c:395
msgid "is too similar to the old one"
@@ -331,23 +331,23 @@ msgstr "Möchten Sie einen anderen auswählen? [n]"
#: modules/pam_selinux/pam_selinux.c:112
msgid "Enter number of choice: "
-msgstr "Geben Sie die gewünschte Nummer ein:"
+msgstr "Geben Sie die gewünschte Nummer ein: "
#: modules/pam_selinux/pam_selinux.c:152
msgid "Would you like to enter a security context? [y] "
-msgstr "Möchten Sie einen Sicherheitskontext eingeben? [j]"
+msgstr "Möchten Sie einen Sicherheitskontext eingeben? [j] "
#: modules/pam_selinux/pam_selinux.c:169
msgid "role: "
-msgstr "Funktion:"
+msgstr "Funktion: "
#: modules/pam_selinux/pam_selinux.c:177
msgid "type: "
-msgstr "Typ:"
+msgstr "Typ: "
#: modules/pam_selinux/pam_selinux.c:187
msgid "level: "
-msgstr "Stufe:"
+msgstr "Stufe: "
#: modules/pam_selinux/pam_selinux.c:203
msgid "Not a valid security context"
@@ -373,19 +373,20 @@ msgstr "Fehler bei pam_set_item()\n"
msgid "login: failure forking: %m"
msgstr "Anmeldung: Fehler bei Abspaltung: %m"
-#: modules/pam_stress/pam_stress.c:477
-msgid "Changing STRESS password for "
-msgstr "Ändern des STRESS-Passworts für"
+#: modules/pam_stress/pam_stress.c:476
+#, c-format
+msgid "Changing STRESS password for %s."
+msgstr "Ändern des STRESS-Passworts für %s."
-#: modules/pam_stress/pam_stress.c:491
+#: modules/pam_stress/pam_stress.c:490
msgid "Enter new STRESS password: "
-msgstr "Geben Sie ein neues STRESS-Passwort ein:"
+msgstr "Geben Sie ein neues STRESS-Passwort ein: "
-#: modules/pam_stress/pam_stress.c:494
+#: modules/pam_stress/pam_stress.c:493
msgid "Retype new STRESS password: "
-msgstr "Geben Sie das neue STRESS-Passwort erneut ein:"
+msgstr "Geben Sie das neue STRESS-Passwort erneut ein: "
-#: modules/pam_stress/pam_stress.c:523
+#: modules/pam_stress/pam_stress.c:522
msgid "Verification mis-typed; password unchanged"
msgstr "Bestätigungspasswort falsch eingegeben; Passwort nicht geändert"
@@ -470,18 +471,23 @@ msgstr "Sie müssen ein längeres Passwort auswählen."
msgid "Password has been already used. Choose another."
msgstr "Passwort wurde bereits verwendet. Wählen Sie ein anderes aus."
-#: modules/pam_unix/pam_unix_passwd.c:1125
+#: modules/pam_unix/pam_unix_passwd.c:1109
+#, c-format
+msgid "Changing password for %s."
+msgstr "Ändern des Passworts für %s."
+
+#: modules/pam_unix/pam_unix_passwd.c:1120
msgid "(current) UNIX password: "
msgstr "(aktuelles) UNIX Passwort: "
-#: modules/pam_unix/pam_unix_passwd.c:1160
+#: modules/pam_unix/pam_unix_passwd.c:1155
msgid "You must wait longer to change your password"
-msgstr "Sie können Ihr Passwort noch nicht ändern."
+msgstr "Sie können Ihr Passwort noch nicht ändern"
-#: modules/pam_unix/pam_unix_passwd.c:1220
+#: modules/pam_unix/pam_unix_passwd.c:1215
msgid "Enter new UNIX password: "
msgstr "Geben Sie ein neues UNIX Passwort ein: "
-#: modules/pam_unix/pam_unix_passwd.c:1221
+#: modules/pam_unix/pam_unix_passwd.c:1216
msgid "Retype new UNIX password: "
msgstr "Geben Sie das neue UNIX Passwort erneut ein: "