diff options
Diffstat (limited to 'gcc/po/exgettext')
-rw-r--r-- | gcc/po/exgettext | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/po/exgettext b/gcc/po/exgettext index f422c1e1acb..7642dc56aad 100644 --- a/gcc/po/exgettext +++ b/gcc/po/exgettext @@ -246,6 +246,17 @@ echo "scanning option files..." >&2 printf("#line %d \"%s\"\n", lineno, file) printf("_(\"%s\")\n", line) } + if ((field == 1) && /UnknownError/) { + line = $0 + sub(".*UnknownError\\(", "", line) + if (line ~ "^{") { + sub("^{", "", line) + sub("}\\).*", "", line) + } else + sub("\\).*", "", line) + printf("#line %d \"%s\"\n", lineno, file) + printf("_(\"%s\")\n", line) + } if ((field == 1) && /Warn\(/) { line = $0 sub(".*Warn\\(", "", line) |