mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-15 04:40:05 +01:00
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:
@@ -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;
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user