Pass help text to popt already translated
authorPetr Písař <petr.pisar@atlas.cz>
Tue, 26 Jun 2012 18:41:16 +0000 (20:41 +0200)
committerMilan Broz <gmazyland@gmail.com>
Tue, 26 Jun 2012 19:26:04 +0000 (21:26 +0200)
popt does not process the text registered by poptSetOtherOptionHelp()
through gettext on its own. Application must do it.

src/cryptsetup.c
src/cryptsetup_reencrypt.c
src/veritysetup.c

index 09d7510..1ca3287 100644 (file)
@@ -1326,7 +1326,7 @@ int main(int argc, const char **argv)
 
        popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0);
        poptSetOtherOptionHelp(popt_context,
-                              N_("[OPTION...] <action> <action-specific>"));
+                              _("[OPTION...] <action> <action-specific>"));
 
        while((r = poptGetNextOpt(popt_context)) > 0) {
                unsigned long long ull_value;
index a7b4509..7c0b985 100644 (file)
@@ -1260,7 +1260,7 @@ int main(int argc, const char **argv)
 
        popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0);
        poptSetOtherOptionHelp(popt_context,
-                              N_("[OPTION...] <device>"));
+                              _("[OPTION...] <device>"));
 
        while((r = poptGetNextOpt(popt_context)) > 0) ;
        if (r < -1)
index 04691ba..d9bc048 100644 (file)
@@ -517,7 +517,7 @@ int main(int argc, const char **argv)
 
        popt_context = poptGetContext("verity", argc, argv, popt_options, 0);
        poptSetOtherOptionHelp(popt_context,
-                              N_("[OPTION...] <action> <action-specific>"));
+                              _("[OPTION...] <action> <action-specific>"));
 
        while((r = poptGetNextOpt(popt_context)) > 0) {
                unsigned long long ull_value;