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:
Jakub Jelinek 2016-12-30 20:15:42 +01:00 committed by Jakub Jelinek
parent 3adf884781
commit 38381536cf
3 changed files with 19315 additions and 17944 deletions

View File

@ -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.

View File

@ -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.

File diff suppressed because it is too large Load Diff