re PR translation/78745 (Truncated messages in po file)
PR translation/78745 * exgettext: Handle multi-line help texts in *.opt files. * gcc.pot: Regenerate. From-SVN: r243981
This commit is contained in:
parent
3adf884781
commit
38381536cf
@ -1,3 +1,9 @@
|
||||
2016-12-30 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR translation/78745
|
||||
* exgettext: Handle multi-line help texts in *.opt files.
|
||||
* gcc.pot: Regenerate.
|
||||
|
||||
2016-12-30 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* es.po, fr.po: Update.
|
||||
|
@ -237,6 +237,8 @@ echo "scanning option files..." >&2
|
||||
field = 0
|
||||
while (getline < file) {
|
||||
if (/^[ \t]*(;|$)/ || !/^[^ \t]/) {
|
||||
if (field > 2)
|
||||
printf("_(\"%s\")\n", line)
|
||||
field = 0
|
||||
} else {
|
||||
if ((field == 1) && /MissingArgError/) {
|
||||
@ -275,12 +277,15 @@ echo "scanning option files..." >&2
|
||||
if (field == 2) {
|
||||
line = $0
|
||||
printf("#line %d \"%s\"\n", lineno, file)
|
||||
printf("_(\"%s\")\n", line)
|
||||
} else if (field > 2) {
|
||||
line = line " " $0
|
||||
}
|
||||
field++;
|
||||
}
|
||||
lineno++;
|
||||
}
|
||||
if (field > 2)
|
||||
printf("_(\"%s\")\n", line)
|
||||
}') >> $emsg
|
||||
|
||||
# Run the xgettext commands, with temporary added as a file to scan.
|
||||
|
37246
gcc/po/gcc.pot
37246
gcc/po/gcc.pot
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user