Add newline to hints and allow translation of string.
authorMilan Broz <gmazyland@gmail.com>
Mon, 3 May 2010 12:56:07 +0000 (12:56 +0000)
committerMilan Broz <gmazyland@gmail.com>
Mon, 3 May 2010 12:56:07 +0000 (12:56 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@220 36d66b0a-2a48-0410-832c-cd162a569da5

luks/keyencryption.c

index 28b1a0d..6ab3819 100644 (file)
@@ -105,13 +105,13 @@ static char *_error_hint(char *cipherName, char *cipherMode, size_t keyLength)
        kernel_minor = atoi(tmp);
 
        if (!strncmp(cipherMode, "xts", 3) && (keyLength != 256 && keyLength != 512))
-               hint = "Key size in XTS mode must be 256 or 512 bits.";
+               hint = _("Key size in XTS mode must be 256 or 512 bits.\n");
        else if (!strncmp(cipherMode, "xts", 3) && kernel_minor < 24)
-               hint = "Block mode XTS is available since kernel 2.6.24.";
+               hint = _("Block mode XTS is available since kernel 2.6.24.\n");
        if (!strncmp(cipherMode, "lrw", 3) && (keyLength != 256 && keyLength != 512))
-               hint = "Key size in LRW mode must be 256 or 512 bits.";
+               hint = _("Key size in LRW mode must be 256 or 512 bits.\n");
        else if (!strncmp(cipherMode, "lrw", 3) && kernel_minor < 20)
-               hint = "Block mode LRW is available since kernel 2.6.20.";
+               hint = _("Block mode LRW is available since kernel 2.6.20.\n");
 #endif
        return hint;
 }