games-wordmaker: fix all lint findings
- Commit
a917eae56e1a47efd5c5ccdd9531dd9c1a9557cf- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 04:48 UTC (19 days ago)
- Parents
6a45b13
Fix every lint error and warning reported for the wordmaker
module's own sources by :games:wordmaker:lintDev, from a
baseline of 43 own findings (1 InlinedApi, 34 ExtraTranslation,
4 PluralsCandidate, 4 UnusedResources) to 0 errors / 0 warnings
for games/wordmaker/**. Remaining report entries are transitive
library/** findings owned by other clusters and are ignored here.
InlinedApi (SettingsPage.kt:31): pass the POST_NOTIFICATIONS
permission as its stable literal string to
rememberPermissionRequest instead of referencing the API-33
Manifest field on minSdk 31. The request is still only fired on
TIRAMISU+ (existing guard in setReminderEnabled), and the unused
Manifest import is removed.
ExtraTranslation (34) and UnusedResources (4): delete the local
daily_challenge, difficulty_easy, difficulty_medium,
difficulty_hard and next_level entries from every locale file,
and the local daily_streak string from the default and every
locale file. Dynamic-lookup check: searched the whole module
(main, test, androidTest, screenshotTest, assets, manifest and
XML) for getIdentifier, reflection, Class.forName, string-name
building ("difficulty_" etc.) and @string/ references; there is
no dynamic lookup of any of these names. difficulty is rendered
by an explicit when in WordMakerTopBar.difficultyLabel mapping
Difficulty.EASY/MEDIUM/HARD to library-ui easy/medium/hard;
daily_challenge and next_level are likewise read from library-ui
(UiR), and the daily streak is rendered by library-ui
DailyStreakText using its own game_daily_streak plurals. The
daily_streak_7/daily_streak_30 strings in code and
achievements.json are achievement ids, not this string resource.
These local entries were therefore truly unused orphan
translations, so no default entries were added for them.
PluralsCandidate (values/strings.xml:46,48,50): convert
competitive_time_limit, competitive_solved and
competitive_timed_out from string to plurals in the default and
every locale file that translated them (cs, et, fr, it, sv,
zh-rCN), with the quantity categories each locale requires and
proper English singular forms, and switch the three call sites
in CompetitiveLobbyScreen to pluralStringResource. The fourth
candidate, daily_streak at :55, was deleted instead as unused
(see above), not pluralised.
No @SuppressLint, lint config, baseline or disable added; code
and resources only, all inside games/wordmaker/.
Verified: /tmp/run-gradle-f-wordmaker.sh
:games:wordmaker:lintDev (0 own-module errors/warnings in the
SARIF report) and :games:wordmaker:testDevUnitTest green
(158 tests, 0 failures/errors/skipped).Diff
games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/CompetitiveLobbyScreen.kt
diff --git a/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/CompetitiveLobbyScreen.kt b/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/CompetitiveLobbyScreen.ktindex 5e0b85c8df..4a1d0f21f8 100644--- a/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/CompetitiveLobbyScreen.kt+++ b/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/CompetitiveLobbyScreen.kt@@ -11,6 +11,7 @@ import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier+import androidx.compose.ui.res.pluralStringResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp@@ -100,9 +101,9 @@ fun CompetitiveLobbyScreen( Spacer(Modifier.height(24.dp)) Text( text = if (it.won) {- stringResource(R.string.competitive_solved, it.delta)+ pluralStringResource(R.plurals.competitive_solved, it.delta, it.delta) } else {- stringResource(R.string.competitive_timed_out, it.delta)+ pluralStringResource(R.plurals.competitive_timed_out, it.delta, it.delta) }, color = if (it.won) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.error, fontWeight = FontWeight.Bold,@@ -113,7 +114,7 @@ fun CompetitiveLobbyScreen( Spacer(Modifier.height(32.dp)) Text(stringResource(R.string.competitive_difficulty), fontWeight = FontWeight.Bold) DifficultyDropdown(selected = difficulty, onSelected = { actions.setDifficulty(it) })- Text(stringResource(R.string.competitive_time_limit, difficulty.timeLimitSeconds))+ Text(pluralStringResource(R.plurals.competitive_time_limit, difficulty.timeLimitSeconds, difficulty.timeLimitSeconds)) Spacer(Modifier.height(32.dp)) Button(onClick = { actions.loadNextCompetitiveLevel() }) {
games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/SettingsPage.kt
diff --git a/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/SettingsPage.kt b/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/SettingsPage.ktindex 9644de6333..9f1d3efa3c 100644--- a/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/SettingsPage.kt+++ b/games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/SettingsPage.kt@@ -1,5 +1,4 @@ package com.vayunmathur.games.wordmaker.ui-import android.Manifest import android.os.Build import com.vayunmathur.library.ui.R as UiR import com.vayunmathur.library.ui.DailyReminderSettingsSection@@ -28,7 +27,10 @@ fun SettingsPage(viewModel: WordMakerViewModel, onBack: () -> Unit) { val reminderEnabled by viewModel.reminderEnabled.collectAsState() val reminderMinutes by viewModel.reminderMinutesOfDay.collectAsState() - val requestNotifications = rememberPermissionRequest(Manifest.permission.POST_NOTIFICATIONS)+ // Literal, not the Manifest permission field: that field is API 33+, and referencing+ // it here trips InlinedApi on minSdk 31 even though the request is only fired on TIRAMISU++ // (see setReminderEnabled below). The permission string itself is stable.+ val requestNotifications = rememberPermissionRequest("android.permission.POST_NOTIFICATIONS") SettingsScreen( state = SettingsUiState(
games/wordmaker/src/main/res/values-ar/strings.xml
diff --git a/games/wordmaker/src/main/res/values-ar/strings.xml b/games/wordmaker/src/main/res/values-ar/strings.xmlindex a77624acfa..d06d102d97 100644--- a/games/wordmaker/src/main/res/values-ar/strings.xml+++ b/games/wordmaker/src/main/res/values-ar/strings.xml@@ -2,7 +2,6 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="error_parse_level">فشل تحليل بيانات المستوى.</string> <string name="level_number">المستوى <xliff:g id="level" example="12">%1$d</xliff:g></string>- <string name="next_level">المستوى التالي</string> <string name="yes">نعم</string> <string name="no">لا</string> </resources>
games/wordmaker/src/main/res/values-cs/strings.xml
diff --git a/games/wordmaker/src/main/res/values-cs/strings.xml b/games/wordmaker/src/main/res/values-cs/strings.xmlindex 58757a5594..25aeac63e5 100644--- a/games/wordmaker/src/main/res/values-cs/strings.xml+++ b/games/wordmaker/src/main/res/values-cs/strings.xml@@ -1,17 +1,28 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">- <string name="difficulty_easy">Jednoduchá</string>- <string name="difficulty_medium">Střední</string>- <string name="difficulty_hard">Těžká</string> <string name="competitive_score">Skóre: <xliff:g id="score" example="150">%1$d</xliff:g></string> <string name="competitive_start">Začít</string> <string name="competitive_difficulty">Obtížnost</string>- <string name="competitive_time_limit"><xliff:g id="seconds" example="45">%1$d</xliff:g> vteřin na úroveň</string>- <string name="competitive_solved">Vyřešeno! +<xliff:g id="points" example="50">%1$d</xliff:g> bodů</string>- <string name="competitive_timed_out">Čas vypršel! <xliff:g id="points" example="-15">%1$d</xliff:g> bodů</string>+ <plurals name="competitive_time_limit">+ <item quantity="one"><xliff:g id="seconds" example="45">%1$d</xliff:g> vteřin na úroveň</item>+ <item quantity="few"><xliff:g id="seconds" example="45">%1$d</xliff:g> vteřin na úroveň</item>+ <item quantity="many"><xliff:g id="seconds" example="45">%1$d</xliff:g> vteřin na úroveň</item>+ <item quantity="other"><xliff:g id="seconds" example="45">%1$d</xliff:g> vteřin na úroveň</item>+ </plurals>+ <plurals name="competitive_solved">+ <item quantity="one">Vyřešeno! +<xliff:g id="points" example="50">%1$d</xliff:g> bodů</item>+ <item quantity="few">Vyřešeno! +<xliff:g id="points" example="50">%1$d</xliff:g> bodů</item>+ <item quantity="many">Vyřešeno! +<xliff:g id="points" example="50">%1$d</xliff:g> bodů</item>+ <item quantity="other">Vyřešeno! +<xliff:g id="points" example="50">%1$d</xliff:g> bodů</item>+ </plurals>+ <plurals name="competitive_timed_out">+ <item quantity="one">Čas vypršel! <xliff:g id="points" example="-15">%1$d</xliff:g> bodů</item>+ <item quantity="few">Čas vypršel! <xliff:g id="points" example="-15">%1$d</xliff:g> bodů</item>+ <item quantity="many">Čas vypršel! <xliff:g id="points" example="-15">%1$d</xliff:g> bodů</item>+ <item quantity="other">Čas vypršel! <xliff:g id="points" example="-15">%1$d</xliff:g> bodů</item>+ </plurals> <string name="error_parse_level">Nepovedlo se zpracovat data úrovně.</string> <string name="level_number">Level <xliff:g id="level" example="12">%1$d</xliff:g></string>- <string name="next_level">Další úroveň</string> <string name="bonus_words">Bonusová slova</string> <string name="tap_to_spell">Hláskovat klepnutím</string> <string name="tap_to_spell_description">Pro stavbu slov na písmena klepejte namísto tažení</string>@@ -25,8 +36,6 @@ <string name="cd_submit">Odeslat</string> <string name="cd_backspace">Backspace</string> <string name="mode_daily">Denní</string>- <string name="daily_challenge">Denní výzva</string>- <string name="daily_streak"><xliff:g id="days" example="5">%1$d</xliff:g> denní řada</string> <string name="daily_come_back_tomorrow">Vyřešeno! Vraťte se zítra.</string> <string name="wheel_spacing">Rozestupy v kole písmen</string> <string name="wheel_spacing_default">Výchozí</string>
games/wordmaker/src/main/res/values-et/strings.xml
diff --git a/games/wordmaker/src/main/res/values-et/strings.xml b/games/wordmaker/src/main/res/values-et/strings.xmlindex 81cae4dfc1..fd755152d7 100644--- a/games/wordmaker/src/main/res/values-et/strings.xml+++ b/games/wordmaker/src/main/res/values-et/strings.xml@@ -2,32 +2,35 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="error_parse_level">Taseme andmete töötlemine ei õnnestunud.</string> <string name="level_number"><xliff:g id="level" example="12">%1$d</xliff:g>. tase</string>- <string name="next_level">Järgmine tase</string> <string name="bonus_words">Boonussõnad</string> <string name="hint_confirmation">Kas oled kindel, et soovid kasutada vihjet?</string> <string name="yes">Jah</string> <string name="no">Ei</string> <string name="tap_to_spell_description">Kasuta sõnade koostamiseks lohistamise asemel klõpsamist</string> <string name="tap_to_spell">Tähtede klõpsamine</string>- <string name="difficulty_easy">Lihtne</string>- <string name="difficulty_medium">Keskmine</string>- <string name="difficulty_hard">Raske</string> <string name="competitive_score">Punktiskoor: <xliff:g id="score" example="150">%1$d</xliff:g></string> <string name="competitive_start">Alusta</string> <string name="competitive_difficulty">Raskusaste</string>- <string name="competitive_time_limit"><xliff:g id="seconds" example="45">%1$d</xliff:g> sekundit taseme kohta</string>- <string name="competitive_solved">Lahendatud! +<xliff:g id="points" example="50">%1$d</xliff:g> punkti</string>- <string name="competitive_timed_out">Aeg on täis! <xliff:g id="points" example="-15">%1$d</xliff:g> punkti</string>+ <plurals name="competitive_time_limit">+ <item quantity="one"><xliff:g id="seconds" example="45">%1$d</xliff:g> sekundit taseme kohta</item>+ <item quantity="other"><xliff:g id="seconds" example="45">%1$d</xliff:g> sekundit taseme kohta</item>+ </plurals>+ <plurals name="competitive_solved">+ <item quantity="one">Lahendatud! +<xliff:g id="points" example="50">%1$d</xliff:g> punkti</item>+ <item quantity="other">Lahendatud! +<xliff:g id="points" example="50">%1$d</xliff:g> punkti</item>+ </plurals>+ <plurals name="competitive_timed_out">+ <item quantity="one">Aeg on täis! <xliff:g id="points" example="-15">%1$d</xliff:g> punkti</item>+ <item quantity="other">Aeg on täis! <xliff:g id="points" example="-15">%1$d</xliff:g> punkti</item>+ </plurals> <string name="mode_casual">Lihtsustatud</string> <string name="mode_competitive">Konkurentsitihe</string> <string name="cd_shuffle">Sega</string> <string name="cd_hint">Vihje</string> <string name="cd_submit">Saada</string> <string name="cd_backspace">Tagasisammuklahv</string>- <string name="daily_challenge">Igapäevane ülesanne</string> <string name="mode_daily">Päeva ülesanne</string> <string name="daily_come_back_tomorrow">Lahendatud! Homme on uus ülesanne.</string>- <string name="daily_streak"><xliff:g id="days" example="5">%1$d</xliff:g> päeva järjest</string> <string name="wheel_spacing">Tähtede vahel täherattal</string> <string name="wheel_spacing_default">Vaikimisi</string> <string name="wheel_spacing_wide">Lai</string>
games/wordmaker/src/main/res/values-fr/strings.xml
diff --git a/games/wordmaker/src/main/res/values-fr/strings.xml b/games/wordmaker/src/main/res/values-fr/strings.xmlindex a11cd5664f..0f2df2ce06 100644--- a/games/wordmaker/src/main/res/values-fr/strings.xml+++ b/games/wordmaker/src/main/res/values-fr/strings.xml@@ -1,9 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <resources>- <string name="difficulty_easy">Facile</string>- <string name="difficulty_medium">Moyen</string>- <string name="difficulty_hard">Difficile</string>- <string name="next_level">Niveau suivant</string> <string name="yes">Oui</string> <string name="no">Non</string> <string name="mode_casual">Décontracté</string>@@ -11,13 +7,25 @@ <string name="competitive_score">Score : %1$d</string> <string name="competitive_start">Démarrer</string> <string name="competitive_difficulty">Difficulté</string>- <string name="competitive_time_limit">%1$d secondes par niveau</string>- <string name="competitive_solved">Résolu ! +%1$d points</string>+ <plurals name="competitive_time_limit">+ <item quantity="one">%1$d secondes par niveau</item>+ <item quantity="many">%1$d secondes par niveau</item>+ <item quantity="other">%1$d secondes par niveau</item>+ </plurals>+ <plurals name="competitive_solved">+ <item quantity="one">Résolu ! +%1$d points</item>+ <item quantity="many">Résolu ! +%1$d points</item>+ <item quantity="other">Résolu ! +%1$d points</item>+ </plurals> <string name="error_parse_level">Échec de l\'analyse des données du niveau.</string> <string name="level_number">Niveau %1$d</string> <string name="bonus_words">Mots bonus</string> <string name="tap_to_spell">Appuyez pour épeler</string> <string name="tap_to_spell_description">Appuyez sur les lettres pour former des mots au lieu de les faire glisser</string> <string name="hint_confirmation">Êtes-vous sûr de vouloir utiliser un indice ?</string>- <string name="competitive_timed_out">Temps écoulé ! %1$d points</string>+ <plurals name="competitive_timed_out">+ <item quantity="one">Temps écoulé ! %1$d points</item>+ <item quantity="many">Temps écoulé ! %1$d points</item>+ <item quantity="other">Temps écoulé ! %1$d points</item>+ </plurals> </resources>
games/wordmaker/src/main/res/values-it/strings.xml
diff --git a/games/wordmaker/src/main/res/values-it/strings.xml b/games/wordmaker/src/main/res/values-it/strings.xmlindex 0c26cad88b..e20191ab1a 100644--- a/games/wordmaker/src/main/res/values-it/strings.xml+++ b/games/wordmaker/src/main/res/values-it/strings.xml@@ -2,7 +2,6 @@ <resources> <string name="error_parse_level">Impossibile caricare i dati del livello.</string> <string name="level_number">Livello %1$d</string>- <string name="next_level">Livello successivo</string> <string name="bonus_words">Parole bonus</string> <string name="hint_confirmation">Sei sicuro di voler usare un suggerimento?</string> <string name="yes">Sì</string>@@ -11,13 +10,22 @@ <string name="tap_to_spell_description">Tocca le lettere per comporre le parole invece di trascinarle</string> <string name="mode_casual">Amichevole</string> <string name="mode_competitive">Competitiva</string>- <string name="difficulty_easy">Facile</string>- <string name="difficulty_medium">Media</string>- <string name="difficulty_hard">Difficile</string> <string name="competitive_score">Punteggio: %1$d</string> <string name="competitive_start">Avvia</string> <string name="competitive_difficulty">Difficoltà</string>- <string name="competitive_time_limit">%1$d secondi per livello</string>- <string name="competitive_solved">Risolto! +%1$d punti</string>- <string name="competitive_timed_out">Tempo scaduto! %1$d punti</string>+ <plurals name="competitive_time_limit">+ <item quantity="one">%1$d secondi per livello</item>+ <item quantity="many">%1$d secondi per livello</item>+ <item quantity="other">%1$d secondi per livello</item>+ </plurals>+ <plurals name="competitive_solved">+ <item quantity="one">Risolto! +%1$d punti</item>+ <item quantity="many">Risolto! +%1$d punti</item>+ <item quantity="other">Risolto! +%1$d punti</item>+ </plurals>+ <plurals name="competitive_timed_out">+ <item quantity="one">Tempo scaduto! %1$d punti</item>+ <item quantity="many">Tempo scaduto! %1$d punti</item>+ <item quantity="other">Tempo scaduto! %1$d punti</item>+ </plurals> </resources>
games/wordmaker/src/main/res/values-ja/strings.xml
diff --git a/games/wordmaker/src/main/res/values-ja/strings.xml b/games/wordmaker/src/main/res/values-ja/strings.xmlindex 608f528be6..56d9f677b3 100644--- a/games/wordmaker/src/main/res/values-ja/strings.xml+++ b/games/wordmaker/src/main/res/values-ja/strings.xml@@ -1,8 +1,3 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">- <string name="daily_challenge">デイリーチャレンジ</string>- <string name="daily_streak"><xliff:g id="days" example="5">%1$d</xliff:g> 日連続記録</string>- <string name="difficulty_easy">やさしい</string>- <string name="difficulty_medium">普通</string>- <string name="difficulty_hard">難しい</string> </resources>
games/wordmaker/src/main/res/values-pl/strings.xml
diff --git a/games/wordmaker/src/main/res/values-pl/strings.xml b/games/wordmaker/src/main/res/values-pl/strings.xmlindex f7b40cb8bc..21e9548139 100644--- a/games/wordmaker/src/main/res/values-pl/strings.xml+++ b/games/wordmaker/src/main/res/values-pl/strings.xml@@ -2,6 +2,5 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="error_parse_level">Nie udało się przetworzyć danych poziomu.</string> <string name="level_number">Poziom <xliff:g id="level" example="12">%1$d</xliff:g></string>- <string name="next_level">Następny poziom</string> <string name="bonus_words">Dodatkowe słowa</string> </resources>
games/wordmaker/src/main/res/values-sv/strings.xml
diff --git a/games/wordmaker/src/main/res/values-sv/strings.xml b/games/wordmaker/src/main/res/values-sv/strings.xmlindex 3e80d2c7f3..dbab185ead 100644--- a/games/wordmaker/src/main/res/values-sv/strings.xml+++ b/games/wordmaker/src/main/res/values-sv/strings.xml@@ -1,10 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">- <string name="daily_challenge">Dagens utmaning</string>- <string name="daily_streak">%1$d dagars svit</string> <string name="error_parse_level">Kunde inte tolka nivådata.</string> <string name="level_number">Nivå <xliff:g id="level" example="12">%1$d</xliff:g></string>- <string name="next_level">Nästa nivå</string> <string name="bonus_words">Bonusord</string> <string name="tap_to_spell">Tryck för att stava</string> <string name="tap_to_spell_description">Tryck på bokstäver för att bygga ord i stället för att dra</string>@@ -18,15 +15,21 @@ <string name="no">Nej</string> <string name="mode_casual">Avslappnat</string> <string name="mode_competitive">Tävlingsinriktat</string>- <string name="difficulty_easy">Lätt</string>- <string name="difficulty_medium">Medel</string>- <string name="difficulty_hard">Svårt</string> <string name="competitive_score">Poäng: <xliff:g id="score" example="150">%1$d</xliff:g></string> <string name="competitive_start">Starta</string> <string name="competitive_difficulty">Svårighetsgrad</string>- <string name="competitive_time_limit"><xliff:g id="seconds" example="45">%1$d</xliff:g> sekunder per nivå</string>- <string name="competitive_solved">Löst! +<xliff:g id="points" example="50">%1$d</xliff:g> poäng</string>- <string name="competitive_timed_out">Tiden är ute! <xliff:g id="points" example="-15">%1$d</xliff:g> poäng</string>+ <plurals name="competitive_time_limit">+ <item quantity="one"><xliff:g id="seconds" example="45">%1$d</xliff:g> sekunder per nivå</item>+ <item quantity="other"><xliff:g id="seconds" example="45">%1$d</xliff:g> sekunder per nivå</item>+ </plurals>+ <plurals name="competitive_solved">+ <item quantity="one">Löst! +<xliff:g id="points" example="50">%1$d</xliff:g> poäng</item>+ <item quantity="other">Löst! +<xliff:g id="points" example="50">%1$d</xliff:g> poäng</item>+ </plurals>+ <plurals name="competitive_timed_out">+ <item quantity="one">Tiden är ute! <xliff:g id="points" example="-15">%1$d</xliff:g> poäng</item>+ <item quantity="other">Tiden är ute! <xliff:g id="points" example="-15">%1$d</xliff:g> poäng</item>+ </plurals> <string name="mode_daily">Daglig</string> <string name="daily_come_back_tomorrow">Löst! Kom tillbaka i morgon.</string> <string name="cd_shuffle">Blanda</string>
games/wordmaker/src/main/res/values-zh-rCN/strings.xml
diff --git a/games/wordmaker/src/main/res/values-zh-rCN/strings.xml b/games/wordmaker/src/main/res/values-zh-rCN/strings.xmlindex 00ad42c65e..0e3efca790 100644--- a/games/wordmaker/src/main/res/values-zh-rCN/strings.xml+++ b/games/wordmaker/src/main/res/values-zh-rCN/strings.xml@@ -2,7 +2,6 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="error_parse_level">无法解析关卡数据。</string> <string name="level_number">关卡 <xliff:g id="level" example="12">%1$d</xliff:g></string>- <string name="next_level">下一关</string> <string name="bonus_words">奖励单词</string> <string name="tap_to_spell">点按拼写</string> <string name="tap_to_spell_description">点按字母拼写单词,而非拖动</string>@@ -11,21 +10,22 @@ <string name="no">否</string> <string name="mode_casual">休闲</string> <string name="mode_competitive">竞技</string>- <string name="difficulty_easy">简单</string>- <string name="difficulty_medium">中等</string>- <string name="difficulty_hard">困难</string> <string name="competitive_score">得分:<xliff:g id="score" example="150">%1$d</xliff:g></string> <string name="competitive_start">开始</string> <string name="competitive_difficulty">难度</string>- <string name="competitive_time_limit">每关 <xliff:g id="seconds" example="45">%1$d</xliff:g> 秒</string>- <string name="competitive_solved">通关!+<xliff:g id="points" example="50">%1$d</xliff:g> 分</string>- <string name="competitive_timed_out">时间到!<xliff:g id="points" example="-15">%1$d</xliff:g> 分</string>+ <plurals name="competitive_time_limit">+ <item quantity="other">每关 <xliff:g id="seconds" example="45">%1$d</xliff:g> 秒</item>+ </plurals>+ <plurals name="competitive_solved">+ <item quantity="other">通关!+<xliff:g id="points" example="50">%1$d</xliff:g> 分</item>+ </plurals>+ <plurals name="competitive_timed_out">+ <item quantity="other">时间到!<xliff:g id="points" example="-15">%1$d</xliff:g> 分</item>+ </plurals> <string name="cd_hint">提示</string> <string name="cd_shuffle">随机排序</string> <string name="cd_submit">提交</string> <string name="cd_backspace">退格键</string>- <string name="daily_challenge">每日挑战</string>- <string name="daily_streak">连续 <xliff:g id="days" example="5">%1$d</xliff:g> 天</string> <string name="mode_daily">每日</string> <string name="daily_come_back_tomorrow">已解决!明天再来。</string> <string name="wheel_spacing">字母转盘间距</string>
games/wordmaker/src/main/res/values/strings.xml
diff --git a/games/wordmaker/src/main/res/values/strings.xml b/games/wordmaker/src/main/res/values/strings.xmlindex 9f36a7f056..a8ebf8d54e 100644--- a/games/wordmaker/src/main/res/values/strings.xml+++ b/games/wordmaker/src/main/res/values/strings.xml@@ -43,16 +43,23 @@ <!-- CompetitiveLobbyScreen: Label above difficulty dropdown. Noun --> <string name="competitive_difficulty">Difficulty</string> <!-- CompetitiveLobbyScreen: Info showing time limit per level for selected difficulty. %1$d = seconds e.g. 45. Noun phrase duration -->- <string name="competitive_time_limit"><xliff:g id="seconds" example="45">%1$d</xliff:g> seconds per level</string>+ <plurals name="competitive_time_limit">+ <item quantity="one"><xliff:g id="seconds" example="45">%1$d</xliff:g> second per level</item>+ <item quantity="other"><xliff:g id="seconds" example="45">%1$d</xliff:g> seconds per level</item>+ </plurals> <!-- CompetitiveLobbyScreen: Result when level solved within time. %1$d = points delta e.g. 50 positive. Celebratory sentence -->- <string name="competitive_solved">Solved! +<xliff:g id="points" example="50">%1$d</xliff:g> points</string>+ <plurals name="competitive_solved">+ <item quantity="one">Solved! +<xliff:g id="points" example="50">%1$d</xliff:g> point</item>+ <item quantity="other">Solved! +<xliff:g id="points" example="50">%1$d</xliff:g> points</item>+ </plurals> <!-- CompetitiveLobbyScreen: Result when timer expired. %1$d = points delta negative e.g. -15 or penalized, but displays as positive in string with context. Sentence -->- <string name="competitive_timed_out">Time\'s up! <xliff:g id="points" example="-15">%1$d</xliff:g> points</string>+ <plurals name="competitive_timed_out">+ <item quantity="one">Time\'s up! <xliff:g id="points" example="-15">%1$d</xliff:g> point</item>+ <item quantity="other">Time\'s up! <xliff:g id="points" example="-15">%1$d</xliff:g> points</item>+ </plurals> <!-- GameModeDropdown: Daily challenge mode label. One date-seeded puzzle per day. Adjective --> <string name="mode_daily">Daily</string>- <!-- DailyStatusBar: Consecutive days solved. %1$d = streak length e.g. 5. Noun phrase with number -->- <string name="daily_streak"><xliff:g id="days" example="5">%1$d</xliff:g> day streak</string> <!-- WordGameScreen: Shown after solving the daily, in place of the Next Level button. Sentence --> <string name="daily_come_back_tomorrow">Solved! Come back tomorrow.</string>