Added a new flag to wrc, to be used to assess translations
advancement.
This commit is contained in:
parent
ab14f1a5a2
commit
8451240526
|
@ -15,6 +15,7 @@ C_SRCS = \
|
||||||
genres.c \
|
genres.c \
|
||||||
newstruc.c \
|
newstruc.c \
|
||||||
readres.c \
|
readres.c \
|
||||||
|
translation.c \
|
||||||
utils.c \
|
utils.c \
|
||||||
wrc.c \
|
wrc.c \
|
||||||
writeres.c
|
writeres.c
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -88,6 +88,7 @@ static char usage[] =
|
||||||
" --target Synonym for -F\n"
|
" --target Synonym for -F\n"
|
||||||
" --undefine Synonym for -U\n"
|
" --undefine Synonym for -U\n"
|
||||||
" --use-temp-file Ignored for compatibility with windres\n"
|
" --use-temp-file Ignored for compatibility with windres\n"
|
||||||
|
" --verify-translations Check the status of the various translations\n"
|
||||||
" --version Print version and exit\n"
|
" --version Print version and exit\n"
|
||||||
"Input is taken from stdin if no sourcefile specified.\n"
|
"Input is taken from stdin if no sourcefile specified.\n"
|
||||||
"Debug level 'n' is a bitmask with following meaning:\n"
|
"Debug level 'n' is a bitmask with following meaning:\n"
|
||||||
|
@ -109,6 +110,7 @@ char version_string[] = "Wine Resource Compiler Version " WRC_FULLVERSION "\n"
|
||||||
* External functions
|
* External functions
|
||||||
*/
|
*/
|
||||||
void write_resfile(char *outname, resource_t *top);
|
void write_resfile(char *outname, resource_t *top);
|
||||||
|
void verify_translations(resource_t *top);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set if compiling in 32bit mode (default).
|
* Set if compiling in 32bit mode (default).
|
||||||
|
@ -157,6 +159,8 @@ int preprocess_only = 0;
|
||||||
*/
|
*/
|
||||||
int no_preprocess = 0;
|
int no_preprocess = 0;
|
||||||
|
|
||||||
|
static int verify_translations_mode;
|
||||||
|
|
||||||
char *output_name = NULL; /* The name given by the -o option */
|
char *output_name = NULL; /* The name given by the -o option */
|
||||||
char *input_name = NULL; /* The name given on the command-line */
|
char *input_name = NULL; /* The name given on the command-line */
|
||||||
char *temp_name = NULL; /* Temporary file for preprocess pipe */
|
char *temp_name = NULL; /* Temporary file for preprocess pipe */
|
||||||
|
@ -193,6 +197,7 @@ static struct option long_options[] = {
|
||||||
{ "target", 1, 0, 'F' },
|
{ "target", 1, 0, 'F' },
|
||||||
{ "undefine", 1, 0, 'U' },
|
{ "undefine", 1, 0, 'U' },
|
||||||
{ "use-temp-file", 0, 0, 2 },
|
{ "use-temp-file", 0, 0, 2 },
|
||||||
|
{ "verify-translations", 0, 0, 9 },
|
||||||
{ "version", 0, 0, 5 },
|
{ "version", 0, 0, 5 },
|
||||||
{ 0, 0, 0, 0 }
|
{ 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
@ -285,6 +290,9 @@ int main(int argc,char *argv[])
|
||||||
pedantic = 1;
|
pedantic = 1;
|
||||||
wpp_set_pedantic(1);
|
wpp_set_pedantic(1);
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
verify_translations_mode = 1;
|
||||||
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
wpp_add_cmdline_define(optarg);
|
wpp_add_cmdline_define(optarg);
|
||||||
break;
|
break;
|
||||||
|
@ -454,6 +462,12 @@ int main(int argc,char *argv[])
|
||||||
if(debuglevel & DEBUGLEVEL_DUMP)
|
if(debuglevel & DEBUGLEVEL_DUMP)
|
||||||
dump_resources(resource_top);
|
dump_resources(resource_top);
|
||||||
|
|
||||||
|
if(verify_translations_mode)
|
||||||
|
{
|
||||||
|
verify_translations(resource_top);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
/* Convert the internal lists to binary data */
|
/* Convert the internal lists to binary data */
|
||||||
resources2res(resource_top);
|
resources2res(resource_top);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue