Commit dcf063e
committed
i18n: fix blank error messages when untranslated
If a message has a translation in any locale, but not all locales, then
translatable_messages::translate with that message can return an empty
string (instead of returning a translated string or the original
untranslated string).
Fix this bug in translatable_messages::translate. Also, add a test suite
which exhaustively checks every translation. (I wrote this test suite
for another purpose, then stumbled upon this bug. Hurray!)1 parent 4e6cacb commit dcf063e
File tree
6 files changed
+2010
-0
lines changed- docs
- src
- test
- quick-lint-js
- tools
6 files changed
+2010
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments