Commit a7b17fd
committed
Warn when a locale's stringsdict entry is only partially translated
A `.po` entry with some — but not all — plural forms filled in passes
the form-count check, so the reverse conversion mapped what it had,
omitted the blank categories, and back-filled `other` from a sibling
form — silently. iOS then shows the wrong plural for the untranslated
counts (a Russian entry missing `many` renders the `few` text for 5, 6,
7, …), with nothing in the `missing` report to flag it.
`warn_partial_translation` now emits a `UI.important` naming the locale,
context, and which CLDR forms are untranslated. Partial entries stay out
of the `missing` list (which means "no translation at all"), so the two
cases aren't conflated. Output and the returned list are unchanged — the
tool can't supply the absent translation, only make the gap visible so a
translator finishes it.1 parent 9a69539 commit a7b17fd
3 files changed
Lines changed: 35 additions & 1 deletion
File tree
- lib/fastlane/plugin/wpmreleasetoolkit/helper/ios
- spec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
263 | 280 | | |
264 | 281 | | |
265 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
260 | 277 | | |
261 | 278 | | |
262 | 279 | | |
| |||
0 commit comments