2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
* util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as translatable. (usage): Translate `arg' strings using gettext(). Thanks to Jordi Mallach for the suggestion.
This commit is contained in:
parent
f704cae368
commit
c5448046d3
2 changed files with 34 additions and 24 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
* util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
|
||||||
|
translatable.
|
||||||
|
(usage): Translate `arg' strings using gettext().
|
||||||
|
Thanks to Jordi Mallach for the suggestion.
|
||||||
|
|
||||||
2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
|
2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
GOP support. Based on patch from Bean
|
GOP support. Based on patch from Bean
|
||||||
|
|
|
@ -202,17 +202,17 @@ static const struct ld_option ld_options[] =
|
||||||
{ {"all-files", no_argument, NULL, 'a'},
|
{ {"all-files", no_argument, NULL, 'a'},
|
||||||
'a', NULL, N_("Process all files (don't skip backup files)"), ONE_DASH },
|
'a', NULL, N_("Process all files (don't skip backup files)"), ONE_DASH },
|
||||||
{ {"abstract", required_argument, NULL, OPTION_ABSTRACT},
|
{ {"abstract", required_argument, NULL, OPTION_ABSTRACT},
|
||||||
'\0', "FILE", N_("Set Abstract filename"), ONE_DASH },
|
'\0', N_("FILE"), N_("Set Abstract filename"), ONE_DASH },
|
||||||
{ {"appid", required_argument, NULL, 'A'},
|
{ {"appid", required_argument, NULL, 'A'},
|
||||||
'A', "ID", N_("Set Application ID"), ONE_DASH },
|
'A', N_("ID"), N_("Set Application ID"), ONE_DASH },
|
||||||
{ {"biblio", required_argument, NULL, OPTION_BIBLIO},
|
{ {"biblio", required_argument, NULL, OPTION_BIBLIO},
|
||||||
'\0', "FILE", N_("Set Bibliographic filename"), ONE_DASH },
|
'\0', N_("FILE"), N_("Set Bibliographic filename"), ONE_DASH },
|
||||||
{ {"copyright", required_argument, NULL, OPTION_COPYRIGHT},
|
{ {"copyright", required_argument, NULL, OPTION_COPYRIGHT},
|
||||||
'\0', "FILE", N_("Set Copyright filename"), ONE_DASH },
|
'\0', N_("FILE"), N_("Set Copyright filename"), ONE_DASH },
|
||||||
{ {"eltorito-boot", required_argument, NULL, 'b'},
|
{ {"eltorito-boot", required_argument, NULL, 'b'},
|
||||||
'b', "FILE", N_("Set El Torito boot image name"), ONE_DASH },
|
'b', N_("FILE"), N_("Set El Torito boot image name"), ONE_DASH },
|
||||||
{ {"eltorito-catalog", required_argument, NULL, 'c'},
|
{ {"eltorito-catalog", required_argument, NULL, 'c'},
|
||||||
'c', "FILE", N_("Set El Torito boot catalog name"), ONE_DASH },
|
'c', N_("FILE"), N_("Set El Torito boot catalog name"), ONE_DASH },
|
||||||
{ {"boot-info-table", no_argument, NULL, OPTION_BOOT_INFO_TABLE },
|
{ {"boot-info-table", no_argument, NULL, OPTION_BOOT_INFO_TABLE },
|
||||||
'\0', NULL, N_("Patch Boot Info Table in El Torito boot image"), ONE_DASH },
|
'\0', NULL, N_("Patch Boot Info Table in El Torito boot image"), ONE_DASH },
|
||||||
{ {"no-emul-boot", no_argument, NULL, OPTION_NO_EMUL_BOOT },
|
{ {"no-emul-boot", no_argument, NULL, OPTION_NO_EMUL_BOOT },
|
||||||
|
@ -220,7 +220,7 @@ static const struct ld_option ld_options[] =
|
||||||
{ {"eltorito-emul-floppy", no_argument, NULL, OPTION_ELTORITO_EMUL_FLOPPY },
|
{ {"eltorito-emul-floppy", no_argument, NULL, OPTION_ELTORITO_EMUL_FLOPPY },
|
||||||
'\0', NULL, N_("Enable floppy drive emulation for El Torito"), TWO_DASHES },
|
'\0', NULL, N_("Enable floppy drive emulation for El Torito"), TWO_DASHES },
|
||||||
{ {"cdwrite-params", required_argument, NULL, 'C'},
|
{ {"cdwrite-params", required_argument, NULL, 'C'},
|
||||||
'C', "PARAMS", N_("Magic parameters from cdrecord"), ONE_DASH },
|
'C', N_("PARAMS"), N_("Magic parameters from cdrecord"), ONE_DASH },
|
||||||
{ {"omit-period", no_argument, NULL, 'd'},
|
{ {"omit-period", no_argument, NULL, 'd'},
|
||||||
'd', NULL, N_("Omit trailing periods from filenames"), ONE_DASH },
|
'd', NULL, N_("Omit trailing periods from filenames"), ONE_DASH },
|
||||||
{ {"disable-deep-relocation", no_argument, NULL, 'D'},
|
{ {"disable-deep-relocation", no_argument, NULL, 'D'},
|
||||||
|
@ -234,11 +234,11 @@ static const struct ld_option ld_options[] =
|
||||||
{ {"version", no_argument, NULL, OPTION_VERSION},
|
{ {"version", no_argument, NULL, OPTION_VERSION},
|
||||||
'\0', NULL, N_("Print version information and exit"), TWO_DASHES },
|
'\0', NULL, N_("Print version information and exit"), TWO_DASHES },
|
||||||
{ {"hide", required_argument, NULL, OPTION_I_HIDE},
|
{ {"hide", required_argument, NULL, OPTION_I_HIDE},
|
||||||
'\0', "GLOBFILE", N_("Hide ISO9660/RR file"), ONE_DASH },
|
'\0', N_("GLOBFILE"), N_("Hide ISO9660/RR file"), ONE_DASH },
|
||||||
{ {"hide-joliet", required_argument, NULL, OPTION_J_HIDE},
|
{ {"hide-joliet", required_argument, NULL, OPTION_J_HIDE},
|
||||||
'\0', "GLOBFILE", N_("Hide Joliet file"), ONE_DASH },
|
'\0', N_("GLOBFILE"), N_("Hide Joliet file"), ONE_DASH },
|
||||||
{ {NULL, required_argument, NULL, 'i'},
|
{ {NULL, required_argument, NULL, 'i'},
|
||||||
'i', "ADD_FILES", N_("No longer supported"), TWO_DASHES },
|
'i', N_("ADD_FILES"), N_("No longer supported"), TWO_DASHES },
|
||||||
{ {"joliet", no_argument, NULL, 'J'},
|
{ {"joliet", no_argument, NULL, 'J'},
|
||||||
'J', NULL, N_("Generate Joliet directory information"), ONE_DASH },
|
'J', NULL, N_("Generate Joliet directory information"), ONE_DASH },
|
||||||
{ {"full-iso9660-filenames", no_argument, NULL, 'l'},
|
{ {"full-iso9660-filenames", no_argument, NULL, 'l'},
|
||||||
|
@ -246,11 +246,11 @@ static const struct ld_option ld_options[] =
|
||||||
{ {"allow-leading-dots", no_argument, NULL, 'L'},
|
{ {"allow-leading-dots", no_argument, NULL, 'L'},
|
||||||
'L', NULL, N_("Allow iso9660 filenames to start with '.'"), ONE_DASH },
|
'L', NULL, N_("Allow iso9660 filenames to start with '.'"), ONE_DASH },
|
||||||
{ {"log-file", required_argument, NULL, OPTION_LOG_FILE},
|
{ {"log-file", required_argument, NULL, OPTION_LOG_FILE},
|
||||||
'\0', "LOG_FILE", N_("Re-direct messages to LOG_FILE"), ONE_DASH },
|
'\0', N_("LOG_FILE"), N_("Re-direct messages to LOG_FILE"), ONE_DASH },
|
||||||
{ {"exclude", required_argument, NULL, 'm'},
|
{ {"exclude", required_argument, NULL, 'm'},
|
||||||
'm', "GLOBFILE", N_("Exclude file name"), ONE_DASH },
|
'm', N_("GLOBFILE"), N_("Exclude file name"), ONE_DASH },
|
||||||
{ {"prev-session", required_argument, NULL, 'M'},
|
{ {"prev-session", required_argument, NULL, 'M'},
|
||||||
'M', "FILE", N_("Set path to previous session to merge"), ONE_DASH },
|
'M', N_("FILE"), N_("Set path to previous session to merge"), ONE_DASH },
|
||||||
{ {"omit-version-number", no_argument, NULL, 'N'},
|
{ {"omit-version-number", no_argument, NULL, 'N'},
|
||||||
'N', NULL, N_("Omit version number from iso9660 filename"), ONE_DASH },
|
'N', NULL, N_("Omit version number from iso9660 filename"), ONE_DASH },
|
||||||
{ {"no-split-symlink-components", no_argument, NULL, 0},
|
{ {"no-split-symlink-components", no_argument, NULL, 0},
|
||||||
|
@ -258,13 +258,13 @@ static const struct ld_option ld_options[] =
|
||||||
{ {"no-split-symlink-fields", no_argument, NULL, 0},
|
{ {"no-split-symlink-fields", no_argument, NULL, 0},
|
||||||
0, NULL, N_("Inhibit splitting symlink fields"), ONE_DASH },
|
0, NULL, N_("Inhibit splitting symlink fields"), ONE_DASH },
|
||||||
{ {"output", required_argument, NULL, 'o'},
|
{ {"output", required_argument, NULL, 'o'},
|
||||||
'o', "FILE", N_("Set output file name"), ONE_DASH },
|
'o', N_("FILE"), N_("Set output file name"), ONE_DASH },
|
||||||
{ {"preparer", required_argument, NULL, 'p'},
|
{ {"preparer", required_argument, NULL, 'p'},
|
||||||
'p', "PREP", N_("Set Volume preparer"), ONE_DASH },
|
'p', N_("PREP"), N_("Set Volume preparer"), ONE_DASH },
|
||||||
{ {"print-size", no_argument, NULL, OPTION_PRINT_SIZE},
|
{ {"print-size", no_argument, NULL, OPTION_PRINT_SIZE},
|
||||||
'\0', NULL, N_("Print estimated filesystem size and exit"), ONE_DASH },
|
'\0', NULL, N_("Print estimated filesystem size and exit"), ONE_DASH },
|
||||||
{ {"publisher", required_argument, NULL, 'P'},
|
{ {"publisher", required_argument, NULL, 'P'},
|
||||||
'P', "PUB", N_("Set Volume publisher"), ONE_DASH },
|
'P', N_("PUB"), N_("Set Volume publisher"), ONE_DASH },
|
||||||
{ {"quiet", no_argument, NULL, OPTION_QUIET},
|
{ {"quiet", no_argument, NULL, OPTION_QUIET},
|
||||||
'\0', NULL, N_("Run quietly"), ONE_DASH },
|
'\0', NULL, N_("Run quietly"), ONE_DASH },
|
||||||
{ {"rational-rock", no_argument, NULL, 'r'},
|
{ {"rational-rock", no_argument, NULL, 'r'},
|
||||||
|
@ -274,21 +274,21 @@ static const struct ld_option ld_options[] =
|
||||||
{ {"split-output", no_argument, NULL, OPTION_SPLIT_OUTPUT},
|
{ {"split-output", no_argument, NULL, OPTION_SPLIT_OUTPUT},
|
||||||
'\0', NULL, N_("Split output into files of approx. 1GB size"), ONE_DASH },
|
'\0', NULL, N_("Split output into files of approx. 1GB size"), ONE_DASH },
|
||||||
{ {"sysid", required_argument, NULL, OPTION_SYSID},
|
{ {"sysid", required_argument, NULL, OPTION_SYSID},
|
||||||
'\0', "ID", N_("Set System ID"), ONE_DASH },
|
'\0', N_("ID"), N_("Set System ID"), ONE_DASH },
|
||||||
{ {"translation-table", no_argument, NULL, 'T'},
|
{ {"translation-table", no_argument, NULL, 'T'},
|
||||||
'T', NULL, N_("Generate translation tables for systems that don't understand long filenames"), ONE_DASH },
|
'T', NULL, N_("Generate translation tables for systems that don't understand long filenames"), ONE_DASH },
|
||||||
{ {"verbose", no_argument, NULL, 'v'},
|
{ {"verbose", no_argument, NULL, 'v'},
|
||||||
'v', NULL, N_("Verbose"), ONE_DASH },
|
'v', NULL, N_("Verbose"), ONE_DASH },
|
||||||
{ {"volid", required_argument, NULL, 'V'},
|
{ {"volid", required_argument, NULL, 'V'},
|
||||||
'V', "ID", N_("Set Volume ID"), ONE_DASH },
|
'V', N_("ID"), N_("Set Volume ID"), ONE_DASH },
|
||||||
{ {"volset", required_argument, NULL, OPTION_VOLSET},
|
{ {"volset", required_argument, NULL, OPTION_VOLSET},
|
||||||
'\0', "ID", N_("Set Volume set ID"), ONE_DASH },
|
'\0', N_("ID"), N_("Set Volume set ID"), ONE_DASH },
|
||||||
{ {"volset-size", required_argument, NULL, OPTION_VOLSET_SIZE},
|
{ {"volset-size", required_argument, NULL, OPTION_VOLSET_SIZE},
|
||||||
'\0', "#", N_("Set Volume set size"), ONE_DASH },
|
'\0', "#", N_("Set Volume set size"), ONE_DASH },
|
||||||
{ {"volset-seqno", required_argument, NULL, OPTION_VOLSET_SEQ_NUM},
|
{ {"volset-seqno", required_argument, NULL, OPTION_VOLSET_SEQ_NUM},
|
||||||
'\0', "#", N_("Set Volume set sequence number"), ONE_DASH },
|
'\0', "#", N_("Set Volume set sequence number"), ONE_DASH },
|
||||||
{ {"old-exclude", required_argument, NULL, 'x'},
|
{ {"old-exclude", required_argument, NULL, 'x'},
|
||||||
'x', "FILE", N_("Exclude file name (deprecated)"), ONE_DASH },
|
'x', N_("FILE"), N_("Exclude file name (deprecated)"), ONE_DASH },
|
||||||
#ifdef ERIC_neverdef
|
#ifdef ERIC_neverdef
|
||||||
{ {"transparent-compression", no_argument, NULL, 'z'},
|
{ {"transparent-compression", no_argument, NULL, 'z'},
|
||||||
'z', NULL, "Enable transparent compression of files", ONE_DASH },
|
'z', NULL, "Enable transparent compression of files", ONE_DASH },
|
||||||
|
@ -481,6 +481,7 @@ void usage(){
|
||||||
int comma;
|
int comma;
|
||||||
int len;
|
int len;
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
|
char *arg;
|
||||||
|
|
||||||
printf (" ");
|
printf (" ");
|
||||||
|
|
||||||
|
@ -502,8 +503,9 @@ void usage(){
|
||||||
putchar (' ');
|
putchar (' ');
|
||||||
++len;
|
++len;
|
||||||
}
|
}
|
||||||
printf ("%s", ld_options[j].arg);
|
arg = gettext (ld_options[j].arg);
|
||||||
len += strlen (ld_options[j].arg);
|
printf ("%s", arg);
|
||||||
|
len += strlen (arg);
|
||||||
}
|
}
|
||||||
comma = TRUE;
|
comma = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -527,8 +529,9 @@ void usage(){
|
||||||
+ strlen (ld_options[j].opt.name));
|
+ strlen (ld_options[j].opt.name));
|
||||||
if (ld_options[j].arg != NULL)
|
if (ld_options[j].arg != NULL)
|
||||||
{
|
{
|
||||||
printf (" %s", ld_options[j].arg);
|
arg = gettext (ld_options[j].arg);
|
||||||
len += 1 + strlen (ld_options[j].arg);
|
printf (" %s", arg);
|
||||||
|
len += 1 + strlen (arg);
|
||||||
}
|
}
|
||||||
comma = TRUE;
|
comma = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue