Commit 38381536 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 3adf8847
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.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment