Pass help text to popt already translated

popt does not process the text registered by poptSetOtherOptionHelp()
through gettext on its own. Application must do it.
This commit is contained in:
Petr Písař
2012-06-26 20:41:16 +02:00
committed by Milan Broz
parent adcb9bfb7d
commit 9b455125e9
3 changed files with 3 additions and 3 deletions

View File

@@ -1326,7 +1326,7 @@ int main(int argc, const char **argv)
popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0); popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0);
poptSetOtherOptionHelp(popt_context, poptSetOtherOptionHelp(popt_context,
N_("[OPTION...] <action> <action-specific>")); _("[OPTION...] <action> <action-specific>"));
while((r = poptGetNextOpt(popt_context)) > 0) { while((r = poptGetNextOpt(popt_context)) > 0) {
unsigned long long ull_value; unsigned long long ull_value;

View File

@@ -1260,7 +1260,7 @@ int main(int argc, const char **argv)
popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0); popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0);
poptSetOtherOptionHelp(popt_context, poptSetOtherOptionHelp(popt_context,
N_("[OPTION...] <device>")); _("[OPTION...] <device>"));
while((r = poptGetNextOpt(popt_context)) > 0) ; while((r = poptGetNextOpt(popt_context)) > 0) ;
if (r < -1) if (r < -1)

View File

@@ -517,7 +517,7 @@ int main(int argc, const char **argv)
popt_context = poptGetContext("verity", argc, argv, popt_options, 0); popt_context = poptGetContext("verity", argc, argv, popt_options, 0);
poptSetOtherOptionHelp(popt_context, poptSetOtherOptionHelp(popt_context,
N_("[OPTION...] <action> <action-specific>")); _("[OPTION...] <action> <action-specific>"));
while((r = poptGetNextOpt(popt_context)) > 0) { while((r = poptGetNextOpt(popt_context)) > 0) {
unsigned long long ull_value; unsigned long long ull_value;