Repository navigation
Conversation
|
Thanks for this. The mechanical side is correct: six keys, present in all nine locale directories plus the default, every template still carries its The problem Inserting a nominative noun into a sentence that inflects produces broken grammar in four of the locales:
This is not a regression. Before the change the inserted word was English, so Separately, two of the templates are themselves still untranslated: What would work Whole-phrase keys, one per window per locale ( That is the pattern your weekly digest change uses on the Swift side, and the comment there states the reasoning: whole-phrase variants per direction, then a whole-key wrapper, so a stitched fragment is never produced. That one is now on One more thing, whichever way this goes Four readers of the English |
The Explore captions spliced a window-name noun into a translated
sentence ("vs prev %1$s", "no prior %1$s"). That cannot agree in case,
gender or number in inflected languages (pl, ru, it), and the English
windowName still leaked into the "Trailing ..." hero subtitle and the
"N readings · sparse" caption.
ExploreRange now maps each window to whole-phrase string resources
(vs prev, no prior, trailing, sparse-widened) and the caption uses a
readings plural, so no fragment is assembled in code. rangeCaption is
now @composable so it can resolve resources. The old
explore_vs_prev_window / explore_no_prior_window templates are removed,
which also replaces the untranslated English es and fr ones. Strings
are added for de, es, fr, it, pl, pt-rPT, ru and zh.
f2a3c08 to
a77c3c8
Compare
|
Thanks, you're right. Stitching a nominative noun into an inflected sentence can't work, so I've reworked the PR along the lines you suggested:
Verified: Notes: the new phrases for pl, ru, it, zh and de are mine, so a native check would be welcome. |
What
Localizes the window name ("week", "month", ...) used in the Android Explore comparison captions. It was passed as hard-coded English into the translated sentence.
Why
Code half of the "sem week anterior" report. The Apple side only lacked pt-PT values (fixed in #2781), so there are no Apple changes here. Refs #2781.
Scope
TrendsExploreScreen.kt: adds@StringRes windowNameRestoExploreRange, used by the two captions.explore_window_week/month/quarter/half/year/allstrings in 9strings.xmlfiles (de, es, fr, it, pl, pt-rPT, ru, zh, default), taken from the Apple catalogue.windowNamestays for the hard-coded "Trailing ..." captions (out of scope).Verification
./gradlew compileFullDebugKotlinsucceedsGermanLocalizationTestpassesNotes
values-pt-rPT/strings.xmlsits next to lines edited by #2781; will rebase if they conflict.