From 3e45b04f31ff1ef4acf853055dc5667abcce3036 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 4 Nov 2026 21:03:13 +0100 Subject: [PATCH] Use plural forms for the remaining counted strings --- AGENTS.md | 1 + .../screens/add_exercise_screen.dart | 2 +- lib/features/exercises/validators.dart | 4 +- .../measurements/widgets/forms/category.dart | 2 +- lib/features/nutrition/widgets/forms.dart | 2 +- .../routines/widgets/forms/session.dart | 2 +- lib/l10n/app_ar.arb | 4 +- lib/l10n/app_ca.arb | 8 +-- lib/l10n/app_cs.arb | 8 +-- lib/l10n/app_de.arb | 38 ++++++------- lib/l10n/app_en.arb | 26 ++++----- lib/l10n/app_es.arb | 40 ++++++------- lib/l10n/app_fr.arb | 42 +++++++------- lib/l10n/app_he.arb | 4 +- lib/l10n/app_hr.arb | 38 ++++++------- lib/l10n/app_hu.arb | 6 +- lib/l10n/app_id.arb | 6 +- lib/l10n/app_it.arb | 12 ++-- lib/l10n/app_ko.arb | 4 +- lib/l10n/app_mk.arb | 2 +- lib/l10n/app_nl.arb | 12 ++-- lib/l10n/app_pl.arb | 8 +-- lib/l10n/app_pt.arb | 12 ++-- lib/l10n/app_pt_BR.arb | 12 ++-- lib/l10n/app_pt_PT.arb | 12 ++-- lib/l10n/app_ro.arb | 12 ++-- lib/l10n/app_ru.arb | 8 +-- lib/l10n/app_sl.arb | 18 +++--- lib/l10n/app_ta.arb | 4 +- lib/l10n/app_tr.arb | 4 +- lib/l10n/app_uk.arb | 40 ++++++------- lib/l10n/app_zh.arb | 4 +- lib/l10n/app_zh_Hant.arb | 4 +- test/core/l10n_plural_test.dart | 56 +++++++++++++++++++ test/core/validators_test.mocks.dart | 6 +- test/features/exercises/validators_test.dart | 6 +- 36 files changed, 263 insertions(+), 206 deletions(-) create mode 100644 test/core/l10n_plural_test.dart diff --git a/AGENTS.md b/AGENTS.md index 39d741e4e..0ea708838 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -82,6 +82,7 @@ integration_test/ screenshot driver - **PowerSync column types:** the `ps.Column` type must match the Drift column. Bool and int columns need `ps.Column.integer`; behind a `ps.Column.text` a bool reads `'0'` and Dart's `'0' != 0` turns every row `true`. In-memory tests can't catch this. - **REST write, local read:** a REST write reaches the local DB only after the next sync. Don't `getById` the row right after a POST; use the response or a nullable lookup with a fallback. - **Logs:** never log a secret at any level (tokens, auth response bodies, deep-link URIs with a `#token=` fragment). Logs are exported into public GitHub issues by the bug-report flow. +- **Plurals:** strings with a number use ICU plurals with an `int` or `num` placeholder and keep the placeholder in the `one` branch: in some languages that form also covers numbers like 21. Use `=1` for wording specific to exactly one. See `lib/l10n/README.md`. - **New language:** a new `lib/l10n/app_.arb` also needs the locale in `locales_config.xml`, iOS `Info.plist` and `language_native_names.dart`, see `lib/l10n/README.md`. - **Create/edit forms:** the form owns an editable `_draft` of the entity, seeded once in `initState` (`widget.session ?? Entity(...defaults)`); create vs edit follows from `_draft.id == null`. Never mutate the passed-in or stream-sourced object in place, and never build the default in the widget constructor (it re-runs every rebuild and drops in-progress edits). Mutate via `copyWith` (entity models are `@freezed`). If the entity is fed from a stream and its identity can change under the form (e.g. a lazily created row arrives late), re-seed in `didUpdateWidget` only when the `id` changes. `SessionForm` is the reference. - **Text-field wiring:** default to controllerless `TextFormField(initialValue: _draft.x, onSaved: (v) => _draft = _draft.copyWith(x: v))`. Reach for a `TextEditingController` ONLY when you need imperative access to the text (quick +/- buttons, autocomplete fill, clear button, format-while-typing, cross-field sync). A controller is state: create it in `initState`, seed once, `dispose()` it; never as a field on a `ConsumerWidget`/`StatelessWidget`, never `TextEditingController(...)` inside `build`, never `controller.text = ` inside `build`. `MeasurementCategoryForm` is the reference for plain text fields, `SessionForm`'s notes field for a justified controller. diff --git a/lib/features/exercises/screens/add_exercise_screen.dart b/lib/features/exercises/screens/add_exercise_screen.dart index 97947f6ba..f18e8de5b 100644 --- a/lib/features/exercises/screens/add_exercise_screen.dart +++ b/lib/features/exercises/screens/add_exercise_screen.dart @@ -350,7 +350,7 @@ class EmailNotVerified extends ConsumerWidget { subtitle: Text( AppLocalizations.of( context, - ).contributeExerciseWarning(MIN_ACCOUNT_AGE.toString()), + ).contributeExerciseWarning(MIN_ACCOUNT_AGE), ), ), Row( diff --git a/lib/features/exercises/validators.dart b/lib/features/exercises/validators.dart index f6f58ee5f..ea0ca554d 100644 --- a/lib/features/exercises/validators.dart +++ b/lib/features/exercises/validators.dart @@ -39,14 +39,14 @@ String? validateExerciseDescription(String? name, BuildContext context) { } if (name.length < MIN_CHARS_DESCRIPTION) { - return AppLocalizations.of(context).enterMinCharacters(MIN_CHARS_DESCRIPTION.toString()); + return AppLocalizations.of(context).enterMinCharacters(MIN_CHARS_DESCRIPTION); } // Words are tokens with at least one letter, so markdown list markers don't count final letter = RegExp(r'\p{L}', unicode: true); final words = name.split(RegExp(r'\s+')).where((token) => letter.hasMatch(token)).length; if (words < MIN_WORDS_DESCRIPTION) { - return AppLocalizations.of(context).enterMinWords(MIN_WORDS_DESCRIPTION.toString()); + return AppLocalizations.of(context).enterMinWords(MIN_WORDS_DESCRIPTION); } return null; diff --git a/lib/features/measurements/widgets/forms/category.dart b/lib/features/measurements/widgets/forms/category.dart index 2c511c30a..a40f3d469 100644 --- a/lib/features/measurements/widgets/forms/category.dart +++ b/lib/features/measurements/widgets/forms/category.dart @@ -277,7 +277,7 @@ class _IdentityFields extends StatelessWidget { return optional ? null : i18n.enterValue; } - return value.length > max ? i18n.enterMaxCharacters(max.toString()) : null; + return value.length > max ? i18n.enterMaxCharacters(max) : null; } } diff --git a/lib/features/nutrition/widgets/forms.dart b/lib/features/nutrition/widgets/forms.dart index d98442c53..2dabc4685 100644 --- a/lib/features/nutrition/widgets/forms.dart +++ b/lib/features/nutrition/widgets/forms.dart @@ -691,7 +691,7 @@ class _PlanFormState extends ConsumerState { if (value != null && value.length > NutritionalPlan.maxDescriptionChars) { return AppLocalizations.of( context, - ).enterMaxCharacters(NutritionalPlan.maxDescriptionChars.toString()); + ).enterMaxCharacters(NutritionalPlan.maxDescriptionChars); } return null; }, diff --git a/lib/features/routines/widgets/forms/session.dart b/lib/features/routines/widgets/forms/session.dart index 36a59404f..827e764e0 100644 --- a/lib/features/routines/widgets/forms/session.dart +++ b/lib/features/routines/widgets/forms/session.dart @@ -144,7 +144,7 @@ class _SessionFormState extends ConsumerState { if (value != null && value.length > WorkoutSession.maxNotesChars) { return AppLocalizations.of( context, - ).enterMaxCharacters(WorkoutSession.maxNotesChars.toString()); + ).enterMaxCharacters(WorkoutSession.maxNotesChars); } return null; }, diff --git a/lib/l10n/app_ar.arb b/lib/l10n/app_ar.arb index dd288fe0e..55a14ed6c 100644 --- a/lib/l10n/app_ar.arb +++ b/lib/l10n/app_ar.arb @@ -573,7 +573,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -616,7 +616,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, diff --git a/lib/l10n/app_ca.arb b/lib/l10n/app_ca.arb index 706bc7482..6d2eb004e 100644 --- a/lib/l10n/app_ca.arb +++ b/lib/l10n/app_ca.arb @@ -532,12 +532,12 @@ "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, - "contributeExerciseWarning": "Només pots contribuir amb exercicis si el teu compte té més de {days} dies i has verificat el teu correu electrònic", + "contributeExerciseWarning": "{days, plural, one{Només pots contribuir amb exercicis si el teu compte té més de {days} dia i has verificat el teu correu electrònic} other{Només pots contribuir amb exercicis si el teu compte té més de {days} dies i has verificat el teu correu electrònic}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -666,13 +666,13 @@ "selectMealToLog": "Selecciona un àpat per registrar al diari", "goalFiber": "Objectiu de fibra", "loggedToday": "Registrat avui", - "enterMinCharacters": "Si us plau, introdueix almenys {min} caràcters", + "enterMinCharacters": "{min, plural, one{Si us plau, introdueix almenys {min} caràcter} other{Si us plau, introdueix almenys {min} caràcters}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index a58291e18..094a18632 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -215,13 +215,13 @@ } } }, - "enterMinCharacters": "Prosím, zadejte alespoň {min} znaků", + "enterMinCharacters": "{min, plural, one{Prosím, zadejte alespoň {min} znak} few{Prosím, zadejte alespoň {min} znaky} other{Prosím, zadejte alespoň {min} znaků}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -715,12 +715,12 @@ "@arms": { "description": "Generated entry for translation for server strings" }, - "contributeExerciseWarning": "Cvičení můžete přidávat pouze, pokud je váš účet starší než {days} dní a máte ověřený e-mail", + "contributeExerciseWarning": "{days, plural, one{Cvičení můžete přidávat pouze, pokud je váš účet starší než {days} den a máte ověřený e-mail} few{Cvičení můžete přidávat pouze, pokud je váš účet starší než {days} dny a máte ověřený e-mail} other{Cvičení můžete přidávat pouze, pokud je váš účet starší než {days} dní a máte ověřený e-mail}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 794a88a53..d310afb89 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -511,24 +511,24 @@ "incline_bench": "Schrägbank", "lats": "Latissimus", "enterMinCharacters": "Bitte gebe mindestens {min} Zeichen ein", - "enterMinWords": "Bitte gib mindestens {min} Wörter ein", + "enterMinWords": "{min, plural, one{Bitte gib mindestens {min} Wort ein} other{Bitte gib mindestens {min} Wörter ein}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, "enterMaxCharacters": "Bitte gebe höchstens {max} Zeichen ein", "baseNameEnglish": "Alle Übungen brauchen einen Basisnamen in Englisch", - "contributeExerciseWarning": "Sie können nur Übungen beitragen, wenn Ihr Konto älter als {days} Tage ist und Sie Ihre E-Mail verifiziert haben", + "contributeExerciseWarning": "{days, plural, one{Sie können nur Übungen beitragen, wenn Ihr Konto älter als {days} Tag ist und Sie Ihre E-Mail verifiziert haben} other{Sie können nur Übungen beitragen, wenn Ihr Konto älter als {days} Tage ist und Sie Ihre E-Mail verifiziert haben}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1061,12 +1061,12 @@ "syncStatusNeverSynced": "Noch nie synchronisiert", "sessionExpired": "Deine Sitzung ist abgelaufen, bitte melde dich erneut an", "endBeforeStart": "Der Endwert darf nicht vor dem Startwert liegen", - "minLengthRoutine": "Die Routine muss mindestens {number} Wochen lang sein", - "maxLengthRoutine": "Die Routine darf maximal {number} Wochen lang sein", + "minLengthRoutine": "{number, plural, one{Die Routine muss mindestens {number} Woche lang sein} other{Die Routine muss mindestens {number} Wochen lang sein}}", + "maxLengthRoutine": "{number, plural, one{Die Routine darf maximal {number} Woche lang sein} other{Die Routine darf maximal {number} Wochen lang sein}}", "gymModeLogScope": "Frühere Protokolle", "gymModeLogScopeHelp": "Welche Protokolle beim Training als Referenz angezeigt werden", "gymModeLogScopeCurrentRoutine": "Aktuelle Routine", - "gymModeLogScopeWeeks": "Letzte {weeks} Wochen", + "gymModeLogScopeWeeks": "{weeks, plural, one{Letzte {weeks} Woche} other{Letzte {weeks} Wochen}}", "gymModeDistinctLogs": "Doppelte Werte ausblenden", "gymModeShowWorkoutDuration": "Trainingsdauer anzeigen", "allowSelfSignedCertsTitle": "Selbstsignierte Zertifikate erlauben", @@ -1110,13 +1110,13 @@ "noGroup": "Keine Gruppe", "healthSync": "Health-Synchronisation", "healthSyncDescription": "Importiert Körpermesswerte aus Apple Health oder Health Connect", - "healthSyncSuccess": "{count} Messwerte aus Health importiert", + "healthSyncSuccess": "{count, plural, one{{count} Messwert aus Health importiert} other{{count} Messwerte aus Health importiert}}", "health": "Gesundheit", "importedEntry": "Dieser Eintrag wurde aus einer Health-App synchronisiert und kann nur dort geändert werden", "healthSyncPermissionDenied": "Zugriff auf die Gesundheitsdaten wurde nicht gewährt", "chartRangeAll": "Gesamt", - "chartRangeMonths": "{count, plural, one{1 Monat} other{{count} Monate}}", - "chartRangeYears": "{count, plural, one{1 Jahr} other{{count} Jahre}}", + "chartRangeMonths": "{count, plural, one{{count} Monat} other{{count} Monate}}", + "chartRangeYears": "{count, plural, one{{count} Jahr} other{{count} Jahre}}", "chartType": "Diagrammtyp", "chartTypeAuto": "Automatisch", "chartTypeLine": "Linie", @@ -1129,15 +1129,15 @@ "trendBalanced": "Ausgewogen", "trendSluggish": "Geglättet", "chartAverageWindow": "Durchschnitt über", - "chartAverageWindowDays": "{days, plural, one{1 Tag} other{{days} Tage}}", + "chartAverageWindowDays": "{days, plural, one{{days} Tag} other{{days} Tage}}", "chartTypeDistribution": "Verteilung", "chartDistributionTitle": "{name}, Verteilung", "distributionMedian": "Median", "distributionLatest": "Aktuell", - "distributionEntryCount": "{count, plural, one{1 Eintrag} other{{count} Einträge}}", - "distributionDayCount": "{count, plural, one{1 Tag} other{{count} Tage}}", + "distributionEntryCount": "{count, plural, one{{count} Eintrag} other{{count} Einträge}}", + "distributionDayCount": "{count, plural, one{{count} Tag} other{{count} Tage}}", "healthSyncNoData": "Es wurden keine Gesundheitsdaten gefunden. Prüfe in {platform}, ob wger deine Daten lesen darf.", - "healthSyncStatus": "{count, plural, =0{Letzter Abgleich: {time}, keine neuen Einträge} one{Letzter Abgleich: {time}, 1 neuer Eintrag} other{Letzter Abgleich: {time}, {count} neue Einträge}}", + "healthSyncStatus": "{count, plural, =0{Letzter Abgleich: {time}, keine neuen Einträge} one{Letzter Abgleich: {time}, {count} neuer Eintrag} other{Letzter Abgleich: {time}, {count} neue Einträge}}", "healthSyncSyncing": "Gesundheitsdaten werden synchronisiert …", "healthSyncNow": "Jetzt synchronisieren", "healthSyncPermissionMissing": "{platform} gibt deine Daten nicht frei", @@ -1151,12 +1151,12 @@ "sparkTrendPerWeek": "{value}/Woche", "sparkTrendStable": "stabil", "trackNewMetric": "Etwas Neues aufzeichnen", - "chartRangeWeeks": "{count, plural, one{1 Woche} other{{count} Wochen}}", + "chartRangeWeeks": "{count, plural, one{{count} Woche} other{{count} Wochen}}", "relativeDaysAgo": "{count, plural, =0{heute} =1{gestern} other{vor {count} Tagen}}", - "relativeWeeksAgo": "{count, plural, one{vor 1 Woche} other{vor {count} Wochen}}", - "relativeMonthsAgo": "{count, plural, one{vor 1 Monat} other{vor {count} Monaten}}", - "relativeYearsAgo": "{count, plural, one{vor 1 Jahr} other{vor {count} Jahren}}", - "sessionTooLong": "Eine Trainingseinheit darf nicht länger als {hours} Stunden dauern", + "relativeWeeksAgo": "{count, plural, one{vor {count} Woche} other{vor {count} Wochen}}", + "relativeMonthsAgo": "{count, plural, one{vor {count} Monat} other{vor {count} Monaten}}", + "relativeYearsAgo": "{count, plural, one{vor {count} Jahr} other{vor {count} Jahren}}", + "sessionTooLong": "{hours, plural, one{Eine Trainingseinheit darf nicht länger als {hours} Stunde dauern} other{Eine Trainingseinheit darf nicht länger als {hours} Stunden dauern}}", "calculationValuesManual": "Von Hand eingetragen", "calculationType": "Berechnung", "calculationUnknown": "Diese Berechnung wurde in einer neueren Version von wger eingerichtet und kann hier nicht geändert werden.", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 727ef41b5..7868d91f8 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -501,7 +501,7 @@ "gymModeLogScope": "Previous logs", "gymModeLogScopeHelp": "Which logs to show as reference while training", "gymModeLogScopeCurrentRoutine": "Current routine", - "gymModeLogScopeWeeks": "Last {weeks} weeks", + "gymModeLogScopeWeeks": "{weeks, plural, one{Last {weeks} week} other{Last {weeks} weeks}}", "@gymModeLogScopeWeeks": { "placeholders": { "weeks": { "type": "int" } @@ -920,14 +920,14 @@ "@endBeforeStart": { "description": "Validation error shown when a plan or routine end date is before its start date" }, - "minLengthRoutine": "The routine needs to be at least {number} weeks long", + "minLengthRoutine": "{number, plural, one{The routine needs to be at least {number} week long} other{The routine needs to be at least {number} weeks long}}", "@minLengthRoutine": { "description": "Validation error when a routine is shorter than the minimum allowed duration", "placeholders": { "number": { "type": "int" } } }, - "maxLengthRoutine": "The routine can be at most {number} weeks long", + "maxLengthRoutine": "{number, plural, one{The routine can be at most {number} week long} other{The routine can be at most {number} weeks long}}", "@maxLengthRoutine": { "description": "Validation error when a routine is longer than the maximum allowed duration", "placeholders": { @@ -1184,33 +1184,33 @@ } } }, - "enterMinCharacters": "Please enter at least {min} characters", + "enterMinCharacters": "{min, plural, one{Please enter at least {min} character} other{Please enter at least {min} characters}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, - "enterMinWords": "Please enter at least {min} words", + "enterMinWords": "{min, plural, one{Please enter at least {min} word} other{Please enter at least {min} words}}", "@enterMinWords": { "description": "Error message when the user hasn't entered the minimum amount of words in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, - "enterMaxCharacters": "Please enter at most {max} characters", + "enterMaxCharacters": "{max, plural, one{Please enter at most {max} character} other{Please enter at most {max} characters}}", "@enterMaxCharacters": { "description": "Error message when the user has entered more than the allowed amount of characters in a form", "type": "text", "placeholders": { "max": { - "type": "String" + "type": "int" } } }, @@ -1450,12 +1450,12 @@ }, "settingsVerboseLoggingDescription": "Useful when reporting persistent problems.", "aboutPageTitle": "About us & Support", - "contributeExerciseWarning": "You can only contribute exercises if your account is older than {days} days and have verified your email", + "contributeExerciseWarning": "{days, plural, one{You can only contribute exercises if your account is older than {days} day and have verified your email} other{You can only contribute exercises if your account is older than {days} days and have verified your email}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1845,7 +1845,7 @@ "@weightOrRepsRequired": { "description": "Validation error when both weight and repetitions are empty in a workout log" }, - "sessionTooLong": "A session cannot be longer than {hours} hours", + "sessionTooLong": "{hours, plural, one{A session cannot be longer than {hours} hour} other{A session cannot be longer than {hours} hours}}", "@sessionTooLong": { "description": "Validation error when a workout session exceeds the maximum length", "placeholders": { @@ -1862,7 +1862,7 @@ "@healthSyncDescription": { "description": "Subtitle for the health platform sync setting" }, - "healthSyncSuccess": "Imported {count} measurements from Health", + "healthSyncSuccess": "{count, plural, one{Imported {count} measurement from Health} other{Imported {count} measurements from Health}}", "@healthSyncSuccess": { "description": "Snackbar message after successful health sync", "placeholders": { diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index da4ae498d..1b45c6677 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -531,13 +531,13 @@ "selectEntry": "Por favor selecciona una entrada", "baseNameEnglish": "Todos los ejercicios necesitan un nombre base en Inglés", "lats": "Laterales", - "enterMinCharacters": "Por favor ingresa al menos {min} caracteres", + "enterMinCharacters": "{min, plural, one{Por favor ingresa al menos {min} carácter} other{Por favor ingresa al menos {min} caracteres}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -548,12 +548,12 @@ "sz_bar": "Barra SZ", "cacheWarning": "Debido al cache, puede tomar un tiempo hasta que los cambios sean visibles en toda la aplicación.", "cardio": "Aerobico", - "contributeExerciseWarning": "Sólo puedes contribuir ejercicios únicamente si tu cuenta tiene más de {days} días y tu email está verificado", + "contributeExerciseWarning": "{days, plural, one{Sólo puedes contribuir ejercicios únicamente si tu cuenta tiene más de {days} día y tu email está verificado} other{Sólo puedes contribuir ejercicios únicamente si tu cuenta tiene más de {days} días y tu email está verificado}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1049,7 +1049,7 @@ "carbohydratesSugar": "Azúcar (carbohidratos)", "aboutViewDocsTitle": "Abrir la documentación", "aboutViewLicensesTitle": "Ver licencias", - "enterMaxCharacters": "Introduce como máximo {max} caracteres", + "enterMaxCharacters": "{max, plural, one{Introduce como máximo {max} carácter} other{Introduce como máximo {max} caracteres}}", "powerSyncUnreachableTitle": "Servicio de sincronización no disponible", "powerSyncUnreachableContent": "Tu servidor de wger es accesible, pero el servicio (independiente) que gestiona la sincronización sin conexión no responde. Si alojas wger por tu cuenta, revisa tu configuración y asegúrate de que el servicio PowerSync funcione correctamente.", "serverUnreachableRetry": "Reintentar", @@ -1077,12 +1077,12 @@ "sessionExpired": "Tu sesión ha expirado, inicia sesión de nuevo", "weightOrRepsRequired": "Introduce un peso, repeticiones o ambos", "endBeforeStart": "El final no puede ser anterior al inicio", - "minLengthRoutine": "La rutina debe ser de al menos {number} semanas", - "maxLengthRoutine": "La rutina debe tener como mucho {number} semanas", + "minLengthRoutine": "{number, plural, one{La rutina debe ser de al menos {number} semana} other{La rutina debe ser de al menos {number} semanas}}", + "maxLengthRoutine": "{number, plural, one{La rutina debe tener como mucho {number} semana} other{La rutina debe tener como mucho {number} semanas}}", "gymModeLogScope": "Registros anteriores", "gymModeLogScopeHelp": "Qué registros mostrar como referencia durante el entrenamiento", "gymModeLogScopeCurrentRoutine": "Rutina actual", - "gymModeLogScopeWeeks": "Últimas {weeks} semanas", + "gymModeLogScopeWeeks": "{weeks, plural, one{Última {weeks} semana} other{Últimas {weeks} semanas}}", "gymModeDistinctLogs": "Ocultar valores duplicados", "gymModeShowWorkoutDuration": "Mostrar la duración del entrenamiento", "allowSelfSignedCertsTitle": "Permitir certificados autofirmados", @@ -1126,13 +1126,13 @@ "noGroup": "Sin grupo", "healthSync": "Sincronización de salud", "healthSyncDescription": "Importa medidas corporales desde Apple Health o Health Connect", - "healthSyncSuccess": "Se importaron {count} medidas de salud", + "healthSyncSuccess": "{count, plural, one{Se importó {count} medida de salud} other{Se importaron {count} medidas de salud}}", "health": "Salud", "importedEntry": "Esta entrada se sincronizó desde una aplicación de salud y solo se puede cambiar allí", "healthSyncPermissionDenied": "No se concedió el acceso a los datos de salud", "chartRangeAll": "Todo", - "chartRangeMonths": "{count, plural, one{1 mes} other{{count} meses}}", - "chartRangeYears": "{count, plural, one{1 año} other{{count} años}}", + "chartRangeMonths": "{count, plural, one{{count} mes} other{{count} meses}}", + "chartRangeYears": "{count, plural, one{{count} año} other{{count} años}}", "chartType": "Tipo de gráfico", "chartTypeAuto": "Automático", "chartTypeLine": "Línea", @@ -1145,15 +1145,15 @@ "trendBalanced": "Equilibrada", "trendSluggish": "Suavizada", "chartAverageWindow": "Promedio de", - "chartAverageWindowDays": "{days, plural, one{1 día} other{{days} días}}", + "chartAverageWindowDays": "{days, plural, one{{days} día} other{{days} días}}", "chartTypeDistribution": "Distribución", "chartDistributionTitle": "{name}, distribución", "distributionMedian": "Mediana", "distributionLatest": "Actual", - "distributionEntryCount": "{count, plural, one{1 entrada} other{{count} entradas}}", - "distributionDayCount": "{count, plural, one{1 día} other{{count} días}}", + "distributionEntryCount": "{count, plural, one{{count} entrada} other{{count} entradas}}", + "distributionDayCount": "{count, plural, one{{count} día} other{{count} días}}", "healthSyncNoData": "No se han encontrado datos de salud. Comprueba en {platform} que wger puede leer tus datos.", - "healthSyncStatus": "{count, plural, =0{Última sincronización: {time}, sin entradas nuevas} one{Última sincronización: {time}, 1 entrada nueva} other{Última sincronización: {time}, {count} entradas nuevas}}", + "healthSyncStatus": "{count, plural, =0{Última sincronización: {time}, sin entradas nuevas} one{Última sincronización: {time}, {count} entrada nueva} other{Última sincronización: {time}, {count} entradas nuevas}}", "healthSyncSyncing": "Sincronizando datos de salud…", "healthSyncNow": "Sincronizar ahora", "healthSyncPermissionMissing": "{platform} no comparte tus datos", @@ -1167,12 +1167,12 @@ "sparkTrendPerWeek": "{value}/semana", "sparkTrendStable": "estable", "trackNewMetric": "Registrar algo nuevo", - "chartRangeWeeks": "{count, plural, one{1 semana} other{{count} semanas}}", + "chartRangeWeeks": "{count, plural, one{{count} semana} other{{count} semanas}}", "relativeDaysAgo": "{count, plural, =0{hoy} =1{ayer} other{hace {count} días}}", - "relativeWeeksAgo": "{count, plural, one{hace 1 semana} other{hace {count} semanas}}", - "relativeMonthsAgo": "{count, plural, one{hace 1 mes} other{hace {count} meses}}", - "relativeYearsAgo": "{count, plural, one{hace 1 año} other{hace {count} años}}", - "sessionTooLong": "Una sesión de entrenamiento no puede durar más de {hours} horas", + "relativeWeeksAgo": "{count, plural, one{hace {count} semana} other{hace {count} semanas}}", + "relativeMonthsAgo": "{count, plural, one{hace {count} mes} other{hace {count} meses}}", + "relativeYearsAgo": "{count, plural, one{hace {count} año} other{hace {count} años}}", + "sessionTooLong": "{hours, plural, one{Una sesión de entrenamiento no puede durar más de {hours} hora} other{Una sesión de entrenamiento no puede durar más de {hours} horas}}", "calculationValuesManual": "Introducido a mano", "calculationType": "Cálculo", "calculationUnknown": "Este cálculo se configuró en una versión más reciente de wger y no se puede cambiar aquí.", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index a6950eb9a..9cdf532ca 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -454,25 +454,25 @@ } } }, - "contributeExerciseWarning": "Vous ne pouvez contribuer aux exercices que si votre compte a plus de {days} jours et si vous avez vérifié votre adresse email", + "contributeExerciseWarning": "{days, plural, one{Vous ne pouvez contribuer aux exercices que si votre compte a plus de {days} jour et si vous avez vérifié votre adresse email} other{Vous ne pouvez contribuer aux exercices que si votre compte a plus de {days} jours et si vous avez vérifié votre adresse email}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } }, "back": "Dos", - "enterMinCharacters": "Veuillez entrer au moins {min} caractères", - "enterMinWords": "Veuillez saisir au moins {min} mots", + "enterMinCharacters": "{min, plural, one{Veuillez entrer au moins {min} caractère} other{Veuillez entrer au moins {min} caractères}}", + "enterMinWords": "{min, plural, one{Veuillez saisir au moins {min} mot} other{Veuillez saisir au moins {min} mots}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -1042,7 +1042,7 @@ "carbohydratesSugar": "Sucre (glucides)", "aboutViewDocsTitle": "Ouvrir la documentation", "aboutViewLicensesTitle": "Voir les licences", - "enterMaxCharacters": "Veuillez saisir au maximum {max} caractères", + "enterMaxCharacters": "{max, plural, one{Veuillez saisir au maximum {max} caractère} other{Veuillez saisir au maximum {max} caractères}}", "powerSyncUnreachableTitle": "Service de synchronisation inaccessible", "powerSyncUnreachableContent": "Votre serveur wger est accessible, mais le service (distinct) qui gère la synchronisation hors ligne ne répond pas. Si vous hébergez wger vous-même, vérifiez votre configuration et assurez-vous que le service PowerSync fonctionne correctement.", "serverUnreachableRetry": "Réessayer", @@ -1070,12 +1070,12 @@ "sessionExpired": "Votre session a expiré, veuillez vous reconnecter", "weightOrRepsRequired": "Veuillez saisir un poids, des répétitions, ou les deux", "endBeforeStart": "La valeur de fin ne peut être avant le début", - "minLengthRoutine": "La routine doit durer au moins {number} semaines", - "maxLengthRoutine": "La routine peut durer au maximum {number} semaines", + "minLengthRoutine": "{number, plural, one{La routine doit durer au moins {number} semaine} other{La routine doit durer au moins {number} semaines}}", + "maxLengthRoutine": "{number, plural, one{La routine peut durer au maximum {number} semaine} other{La routine peut durer au maximum {number} semaines}}", "gymModeLogScope": "Journaux précédents", "gymModeLogScopeHelp": "Quels journaux afficher comme référence pendant l'entraînement", "gymModeLogScopeCurrentRoutine": "Routine actuelle", - "gymModeLogScopeWeeks": "{weeks} dernières semaines", + "gymModeLogScopeWeeks": "{weeks, plural, one{{weeks} dernière semaine} other{{weeks} dernières semaines}}", "gymModeDistinctLogs": "Masquer les valeurs en double", "gymModeShowWorkoutDuration": "Afficher la durée de l'entraînement", "allowSelfSignedCertsTitle": "Autoriser les certificats auto-signés", @@ -1119,13 +1119,13 @@ "noGroup": "Aucun groupe", "healthSync": "Synchronisation santé", "healthSyncDescription": "Importe les mesures corporelles depuis Apple Santé ou Health Connect", - "healthSyncSuccess": "{count} mesures de santé importées", + "healthSyncSuccess": "{count, plural, one{{count} mesure de santé importée} other{{count} mesures de santé importées}}", "health": "Santé", "importedEntry": "Cette entrée a été synchronisée depuis une app de santé et ne peut être modifiée que là-bas", "healthSyncPermissionDenied": "L'accès aux données de santé n'a pas été autorisé", "chartRangeAll": "Tout", - "chartRangeMonths": "{count, plural, one{1 mois} other{{count} mois}}", - "chartRangeYears": "{count, plural, one{1 an} other{{count} ans}}", + "chartRangeMonths": "{count, plural, one{{count} mois} other{{count} mois}}", + "chartRangeYears": "{count, plural, one{{count} an} other{{count} ans}}", "chartType": "Type de graphique", "chartTypeAuto": "Automatique", "chartTypeLine": "Ligne", @@ -1138,15 +1138,15 @@ "trendBalanced": "Équilibrée", "trendSluggish": "Lissée", "chartAverageWindow": "Moyenne sur", - "chartAverageWindowDays": "{days, plural, one{1 jour} other{{days} jours}}", + "chartAverageWindowDays": "{days, plural, one{{days} jour} other{{days} jours}}", "chartTypeDistribution": "Répartition", "chartDistributionTitle": "{name}, répartition", "distributionMedian": "Médiane", "distributionLatest": "Actuel", - "distributionEntryCount": "{count, plural, one{1 entrée} other{{count} entrées}}", - "distributionDayCount": "{count, plural, one{1 jour} other{{count} jours}}", + "distributionEntryCount": "{count, plural, one{{count} entrée} other{{count} entrées}}", + "distributionDayCount": "{count, plural, one{{count} jour} other{{count} jours}}", "healthSyncNoData": "Aucune donnée de santé n'a été trouvée. Vérifiez dans {platform} que wger peut lire vos données.", - "healthSyncStatus": "{count, plural, =0{Dernière synchronisation : {time}, aucune nouvelle entrée} one{Dernière synchronisation : {time}, 1 nouvelle entrée} other{Dernière synchronisation : {time}, {count} nouvelles entrées}}", + "healthSyncStatus": "{count, plural, =0{Dernière synchronisation : {time}, aucune nouvelle entrée} one{Dernière synchronisation : {time}, {count} nouvelle entrée} other{Dernière synchronisation : {time}, {count} nouvelles entrées}}", "healthSyncSyncing": "Synchronisation des données de santé…", "healthSyncNow": "Synchroniser maintenant", "healthSyncPermissionMissing": "{platform} ne partage pas vos données", @@ -1160,12 +1160,12 @@ "sparkTrendPerWeek": "{value}/semaine", "sparkTrendStable": "stable", "trackNewMetric": "Suivre autre chose", - "chartRangeWeeks": "{count, plural, one{1 semaine} other{{count} semaines}}", + "chartRangeWeeks": "{count, plural, one{{count} semaine} other{{count} semaines}}", "relativeDaysAgo": "{count, plural, =0{aujourd'hui} =1{hier} other{il y a {count} jours}}", - "relativeWeeksAgo": "{count, plural, one{il y a 1 semaine} other{il y a {count} semaines}}", - "relativeMonthsAgo": "{count, plural, one{il y a 1 mois} other{il y a {count} mois}}", - "relativeYearsAgo": "{count, plural, one{il y a 1 an} other{il y a {count} ans}}", - "sessionTooLong": "Une session d’entraînement ne peut pas durer plus de {hours} heures", + "relativeWeeksAgo": "{count, plural, one{il y a {count} semaine} other{il y a {count} semaines}}", + "relativeMonthsAgo": "{count, plural, one{il y a {count} mois} other{il y a {count} mois}}", + "relativeYearsAgo": "{count, plural, one{il y a {count} an} other{il y a {count} ans}}", + "sessionTooLong": "{hours, plural, one{Une session d’entraînement ne peut pas durer plus de {hours} heure} other{Une session d’entraînement ne peut pas durer plus de {hours} heures}}", "calculationValuesManual": "Saisi à la main", "calculationType": "Calcul", "calculationUnknown": "Ce calcul a été configuré dans une version plus récente de wger et ne peut pas être modifié ici.", diff --git a/lib/l10n/app_he.arb b/lib/l10n/app_he.arb index 9da650478..98b46b1db 100644 --- a/lib/l10n/app_he.arb +++ b/lib/l10n/app_he.arb @@ -619,7 +619,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -710,7 +710,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_hr.arb b/lib/l10n/app_hr.arb index 2ef18eb77..4c324d25d 100644 --- a/lib/l10n/app_hr.arb +++ b/lib/l10n/app_hr.arb @@ -463,13 +463,13 @@ "@close": { "description": "Translation for close" }, - "enterMinCharacters": "Upiši barem {min} znakova", + "enterMinCharacters": "{min, plural, one{Upiši barem {min} znak} few{Upiši barem {min} znaka} other{Upiši barem {min} znakova}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -550,7 +550,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1301,13 +1301,13 @@ "@syncStatusErrorDetails": { "description": "Header of the expandable section in the sync status dialog that reveals the raw error message" }, - "enterMaxCharacters": "Upiši maksimalno {max} znakova", + "enterMaxCharacters": "{max, plural, one{Upiši maksimalno {max} znak} few{Upiši maksimalno {max} znaka} other{Upiši maksimalno {max} znakova}}", "@enterMaxCharacters": { "description": "Error message when the user has entered more than the allowed amount of characters in a form", "type": "text", "placeholders": { "max": { - "type": "String" + "type": "int" } } }, @@ -1337,8 +1337,8 @@ }, "powerSyncUnreachableContent": "Tvoj je wger server dostupan, ali (zasebna) usluga koja obrađuje izvanmrežnu sinkronizaciju ne odgovara. Ako pokrećeš vlastiti hosting za wger, provjeri konfiguraciju i provjeri je li PowerSync usluga ispravno radi.", "endBeforeStart": "Vrijednost kraja ne može biti prije vrijednosti početka", - "minLengthRoutine": "Rutina mora trajati barem {number} tjedna", - "maxLengthRoutine": "Rutina smije trajati najviše {number} tjedna", + "minLengthRoutine": "{number, plural, one{Rutina mora trajati barem {number} tjedan} few{Rutina mora trajati barem {number} tjedna} other{Rutina mora trajati barem {number} tjedana}}", + "maxLengthRoutine": "{number, plural, one{Rutina smije trajati najviše {number} tjedan} few{Rutina smije trajati najviše {number} tjedna} other{Rutina smije trajati najviše {number} tjedana}}", "allowSelfSignedCertsTitle": "Dopusti samopotpisane certifikate", "allowSelfSignedCertsDetail": "Deaktivira provjeru valjanosti TLS certifikata. Aktiviraj ovo samo za server kojem vjeruješ.", "certsNotVerifiedTitle": "Provjera valjanosti certifikata je isključena", @@ -1359,7 +1359,7 @@ "gymModeLogScope": "Prethodni zapisi", "gymModeLogScopeHelp": "Koje zapise prikazati kao referencu tijekom treniranja", "gymModeLogScopeCurrentRoutine": "Trenutačna rutina", - "gymModeLogScopeWeeks": "Zadnjih {weeks} tjedna", + "gymModeLogScopeWeeks": "{weeks, plural, one{Zadnji {weeks} tjedan} few{Zadnja {weeks} tjedna} other{Zadnjih {weeks} tjedana}}", "@gymModeLogScopeWeeks": { "placeholders": { "weeks": { @@ -1559,7 +1559,7 @@ "@distributionLatest": { "description": "Label of the marker for the most recent value in the distribution histogram" }, - "distributionEntryCount": "{count, plural, one{1 unos} few{{count} unosa} other{{count} unosa}}", + "distributionEntryCount": "{count, plural, one{{count} unos} few{{count} unosa} other{{count} unosa}}", "@distributionEntryCount": { "description": "How many measurements fall into the tapped histogram bin", "placeholders": { @@ -1568,7 +1568,7 @@ } } }, - "distributionDayCount": "{count, plural, one{1 dan} few{{count} dana} other{{count} dana}}", + "distributionDayCount": "{count, plural, one{{count} dan} few{{count} dana} other{{count} dana}}", "@distributionDayCount": { "description": "How many days fall into the tapped histogram bin, for metrics summed per day", "placeholders": { @@ -1586,7 +1586,7 @@ } } }, - "relativeWeeksAgo": "{count, plural, one{prije 1 tjedan} few{prije {count} tjedna} other{prije {count} tjedna}}", + "relativeWeeksAgo": "{count, plural, one{prije {count} tjedan} few{prije {count} tjedna} other{prije {count} tjedna}}", "@relativeWeeksAgo": { "description": "How long ago something was measured, for distances below a month", "placeholders": { @@ -1595,7 +1595,7 @@ } } }, - "relativeMonthsAgo": "{count, plural, one{prije 1 mjesec} few{prije {count} mjeseca} other{prije {count} mjeseci}}", + "relativeMonthsAgo": "{count, plural, one{prije {count} mjesec} few{prije {count} mjeseca} other{prije {count} mjeseci}}", "@relativeMonthsAgo": { "description": "How long ago something was measured, for distances below a year", "placeholders": { @@ -1604,7 +1604,7 @@ } } }, - "relativeYearsAgo": "{count, plural, one{prije 1 godine} few{prije {count} godine} other{prije {count} godina}}", + "relativeYearsAgo": "{count, plural, one{prije {count} godine} few{prije {count} godine} other{prije {count} godina}}", "@relativeYearsAgo": { "description": "How long ago something was measured, for distances of a year and more", "placeholders": { @@ -1658,7 +1658,7 @@ } } }, - "healthSyncSuccess": "Uvezeno {count} mjerenja iz Zdravlja", + "healthSyncSuccess": "{count, plural, one{Uvezeno {count} mjerenje iz Zdravlja} other{Uvezeno {count} mjerenja iz Zdravlja}}", "@healthSyncSuccess": { "description": "Snackbar message after successful health sync", "placeholders": { @@ -1667,7 +1667,7 @@ } } }, - "chartRangeYears": "{count, plural, one{1 godina} few{{count} godine} other{{count} godina}}", + "chartRangeYears": "{count, plural, one{{count} godina} few{{count} godine} other{{count} godina}}", "@chartRangeYears": { "description": "Chart time-range selector option covering a number of years", "placeholders": { @@ -1676,7 +1676,7 @@ } } }, - "chartRangeMonths": "{count, plural, one{1 mjesec} few{{count} mjeseca} other{{count} mjeseci}}", + "chartRangeMonths": "{count, plural, one{{count} mjesec} few{{count} mjeseca} other{{count} mjeseci}}", "@chartRangeMonths": { "description": "Chart time-range selector option covering a number of months", "placeholders": { @@ -1685,7 +1685,7 @@ } } }, - "chartRangeWeeks": "{count, plural, one{1 tjedan} few{{count} tjedna} other{{count} tjedna}}", + "chartRangeWeeks": "{count, plural, one{{count} tjedan} few{{count} tjedna} other{{count} tjedna}}", "@chartRangeWeeks": { "description": "Chart time-range selector option covering a number of weeks", "placeholders": { @@ -1694,7 +1694,7 @@ } } }, - "healthSyncStatus": "{count, plural, =0{Zadnja sinkronizacija: {time}, bez novih unosa} one{Zadnja sinkronizacija: {time}, 1 novi unos} few{Zadnja sinkronizacija: {time}, {count} nova unosa} other{Zadnja sinkronizacija: {time}, {count} novih unosa}}", + "healthSyncStatus": "{count, plural, =0{Zadnja sinkronizacija: {time}, bez novih unosa} one{Zadnja sinkronizacija: {time}, {count} novi unos} few{Zadnja sinkronizacija: {time}, {count} nova unosa} other{Zadnja sinkronizacija: {time}, {count} novih unosa}}", "@healthSyncStatus": { "description": "Status line under the health sync toggle showing when the last sync ran and how many entries it imported", "placeholders": { @@ -1719,7 +1719,7 @@ "@chartTypeHeatmap": { "description": "Chart type option: a calendar grid with one coloured cell per day" }, - "chartAverageWindowDays": "{days, plural, one{1 dan} few{{days} dana} other{{days} dana}}", + "chartAverageWindowDays": "{days, plural, one{{days} dan} few{{days} dana} other{{days} dana}}", "@chartAverageWindowDays": { "description": "One option of the average window setting, e.g. '7 days'", "placeholders": { diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb index 201f95c3f..f79d0b038 100644 --- a/lib/l10n/app_hu.arb +++ b/lib/l10n/app_hu.arb @@ -771,7 +771,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -781,7 +781,7 @@ "type": "text", "placeholders": { "max": { - "type": "String" + "type": "int" } } }, @@ -997,7 +997,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_id.arb b/lib/l10n/app_id.arb index ed0296ba7..a29c0938e 100644 --- a/lib/l10n/app_id.arb +++ b/lib/l10n/app_id.arb @@ -792,7 +792,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -853,7 +853,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -1392,7 +1392,7 @@ "type": "text", "placeholders": { "max": { - "type": "String" + "type": "int" } } }, diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index 958b6ec52..03922032d 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -568,13 +568,13 @@ "add_exercise_image_license": "Le immagini devono essere compatibili con la licenza CC BY SA. In caso di dubbi, carica solo le foto che hai scattato tu stesso.", "baseNameEnglish": "Tutti gli esercizi necessitano di un nome base in inglese", "aboutMastodonTitle": "Mastodonte", - "enterMinCharacters": "Inserisci almeno {min} caratteri", + "enterMinCharacters": "{min, plural, one{Inserisci almeno {min} carattere} other{Inserisci almeno {min} caratteri}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -643,12 +643,12 @@ "description": "Generated entry for translation for server strings" }, "aboutPageTitle": "Chi siamo & Supporto", - "contributeExerciseWarning": "Puoi contribuire agli esercizi solo se il tuo account è più vecchio di {days} giorni e hai verificato la tua email", + "contributeExerciseWarning": "{days, plural, one{Puoi contribuire agli esercizi solo se il tuo account è più vecchio di {days} giorno e hai verificato la tua email} other{Puoi contribuire agli esercizi solo se il tuo account è più vecchio di {days} giorni e hai verificato la tua email}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1146,6 +1146,6 @@ "description": "Button label to open the documentation about server configuration" }, "endBeforeStart": "Il valore finale non può precedere quello iniziale", - "minLengthRoutine": "Il programma deve durare almeno {number} settimane", - "maxLengthRoutine": "Il programma può durare massimo {number} settimane" + "minLengthRoutine": "{number, plural, one{Il programma deve durare almeno {number} settimana} other{Il programma deve durare almeno {number} settimane}}", + "maxLengthRoutine": "{number, plural, one{Il programma può durare massimo {number} settimana} other{Il programma può durare massimo {number} settimane}}" } diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index 06d814019..e17fd98e0 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -698,7 +698,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -776,7 +776,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_mk.arb b/lib/l10n/app_mk.arb index cf4fa5e66..81ba09945 100644 --- a/lib/l10n/app_mk.arb +++ b/lib/l10n/app_mk.arb @@ -277,7 +277,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index 7a95c7c10..c1b91d575 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -596,13 +596,13 @@ } } }, - "enterMinCharacters": "Voer minstens {min} tekens in", + "enterMinCharacters": "{min, plural, one{Voer minstens {min} teken in} other{Voer minstens {min} tekens in}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -795,12 +795,12 @@ "settingsIngredientCacheDescription": "Ingrediënten­cache", "settingsCacheDeletedSnackbar": "Cache succesvol geleegd", "aboutPageTitle": "Over ons & onder­steuning", - "contributeExerciseWarning": "Je kunt alleen oefeningen bijdragen als je account ouder is dan {days} dagen en je e-mailadres is geverifieerd", + "contributeExerciseWarning": "{days, plural, one{Je kunt alleen oefeningen bijdragen als je account ouder is dan {days} dag en je e-mailadres is geverifieerd} other{Je kunt alleen oefeningen bijdragen als je account ouder is dan {days} dagen en je e-mailadres is geverifieerd}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1150,8 +1150,8 @@ "description": "Button label to open the documentation about server configuration" }, "endBeforeStart": "De eindwaarde mag niet vóór de beginwaarde liggen", - "minLengthRoutine": "De routine moet minimaal {number} weken duren", - "maxLengthRoutine": "De routine kan maximaal {number} weken duren", + "minLengthRoutine": "{number, plural, one{De routine moet minimaal {number} week duren} other{De routine moet minimaal {number} weken duren}}", + "maxLengthRoutine": "{number, plural, one{De routine kan maximaal {number} week duren} other{De routine kan maximaal {number} weken duren}}", "syncStatusConnected": "Verbonden", "@syncStatusConnected": { "description": "Tooltip on the sync icon when the app is online and idle (no upload or download in progress)" diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index 25a8a38be..8a9123564 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -468,13 +468,13 @@ "@moreMeasurementEntries": { "description": "Message shown when the user wants to add new measurement" }, - "enterMinCharacters": "Proszę wpisać co najmniej {min} znaków", + "enterMinCharacters": "{min, plural, one{Proszę wpisać co najmniej {min} znak} few{Proszę wpisać co najmniej {min} znaki} other{Proszę wpisać co najmniej {min} znaków}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -561,12 +561,12 @@ "abs": "Brzuch", "quads": "Mięsień czworogłowy uda", "cardio": "Kardio", - "contributeExerciseWarning": "Możesz dodawać ćwiczenia tylko wtedy, gdy Twoje konto jest starsze niż {days} dni i zweryfikowałeś swój adres e-mail", + "contributeExerciseWarning": "{days, plural, one{Możesz dodawać ćwiczenia tylko wtedy, gdy Twoje konto jest starsze niż {days} dzień i zweryfikowałeś swój adres e-mail} other{Możesz dodawać ćwiczenia tylko wtedy, gdy Twoje konto jest starsze niż {days} dni i zweryfikowałeś swój adres e-mail}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index 6d849fb2e..6ab2c99df 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -524,13 +524,13 @@ "kettlebell": "Kettlebell", "none__bodyweight_exercise_": "nenhum (somente peso do corpo)", "aboutPageTitle": "Sobre o nós & Suporte", - "enterMinCharacters": "Por favor, selecione ao menos {min} de caracteres", + "enterMinCharacters": "{min, plural, one{Por favor, selecione ao menos {min} caractere} other{Por favor, selecione ao menos {min} de caracteres}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -565,12 +565,12 @@ "@success": { "description": "Message when an action completed successfully, usually used as a heading" }, - "contributeExerciseWarning": "Podes contribuir com exercícios se a tua conta tiver mais de {days} dias e se tiveres verificado o e-mail", + "contributeExerciseWarning": "{days, plural, one{Podes contribuir com exercícios se a tua conta tiver mais de {days} dia e se tiveres verificado o e-mail} other{Podes contribuir com exercícios se a tua conta tiver mais de {days} dias e se tiveres verificado o e-mail}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1058,8 +1058,8 @@ "description": "Dropdown entry that follows the device system language" }, "endBeforeStart": "O valor de fim não pode anteceder o início", - "minLengthRoutine": "A rotina tem de ser, pelo menos, de {number} semanas", - "maxLengthRoutine": "A rotina pode ser, no máximo, de {number} semanas", + "minLengthRoutine": "{number, plural, one{A rotina tem de ser, pelo menos, de {number} semana} other{A rotina tem de ser, pelo menos, de {number} semanas}}", + "maxLengthRoutine": "{number, plural, one{A rotina pode ser, no máximo, de {number} semana} other{A rotina pode ser, no máximo, de {number} semanas}}", "settingsVerboseLoggingDescription": "Útil, quando reportando problemas persistentes.", "useDynamicColor": "Usa cores dinâmicas", "@useDynamicColor": { diff --git a/lib/l10n/app_pt_BR.arb b/lib/l10n/app_pt_BR.arb index cc3a14f61..699fb5b16 100644 --- a/lib/l10n/app_pt_BR.arb +++ b/lib/l10n/app_pt_BR.arb @@ -435,13 +435,13 @@ } } }, - "enterMinCharacters": "Por favor, utilize pelo menos {min} caracteres", + "enterMinCharacters": "{min, plural, one{Por favor, utilize pelo menos {min} caractere} other{Por favor, utilize pelo menos {min} caracteres}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -504,12 +504,12 @@ "settingsExerciseCacheDescription": "Cache do exercício", "settingsCacheDeletedSnackbar": "Cache limpa com sucesso", "translateExercise": "Traduza este exercício agora", - "contributeExerciseWarning": "Você só pode contribuir com exercícios se sua conta tiver mais de {days} dias e se você tiver verificado seu e-mail", + "contributeExerciseWarning": "{days, plural, one{Você só pode contribuir com exercícios se sua conta tiver mais de {days} dia e se você tiver verificado seu e-mail} other{Você só pode contribuir com exercícios se sua conta tiver mais de {days} dias e se você tiver verificado seu e-mail}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1249,6 +1249,6 @@ "description": "Other unassigned logs. Label for the pseudo-meal section that groups all nutritional diary entries not assigned to a specific meal" }, "endBeforeStart": "O valor final não pode ser anterior ao inicial", - "minLengthRoutine": "A rotina precisa durar pelo menos {number} semanas", - "maxLengthRoutine": "A rotina pode durar no máximo {number} semanas" + "minLengthRoutine": "{number, plural, one{A rotina precisa durar pelo menos {number} semana} other{A rotina precisa durar pelo menos {number} semanas}}", + "maxLengthRoutine": "{number, plural, one{A rotina pode durar no máximo {number} semana} other{A rotina pode durar no máximo {number} semanas}}" } diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index 8e12f48ae..0f6446589 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -493,13 +493,13 @@ } } }, - "enterMinCharacters": "Escreve pelo menos {min} caracteres", + "enterMinCharacters": "{min, plural, one{Escreve pelo menos {min} caractere} other{Escreve pelo menos {min} caracteres}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -669,12 +669,12 @@ "settingsIngredientCacheDescription": "Cache de ingredientes", "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", "aboutPageTitle": "Sobre nós & Apoio", - "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e e-mail verificado", + "contributeExerciseWarning": "{days, plural, one{Só podes contribuir com exercícios se a tua conta tiver mais de {days} dia e e-mail verificado} other{Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e e-mail verificado}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -898,6 +898,6 @@ "dayTypeAfap": "O mais rápido possível", "slotEntryTypeNormal": "Normal", "endBeforeStart": "O valor final não pode ser anterior ao inicial", - "minLengthRoutine": "A rotina tem de ter pelo menos {number} semanas", - "maxLengthRoutine": "A rotina pode ter no máximo {number} semanas" + "minLengthRoutine": "{number, plural, one{A rotina tem de ter pelo menos {number} semana} other{A rotina tem de ter pelo menos {number} semanas}}", + "maxLengthRoutine": "{number, plural, one{A rotina pode ter no máximo {number} semana} other{A rotina pode ter no máximo {number} semanas}}" } diff --git a/lib/l10n/app_ro.arb b/lib/l10n/app_ro.arb index 5b5d7b531..13b232737 100644 --- a/lib/l10n/app_ro.arb +++ b/lib/l10n/app_ro.arb @@ -621,13 +621,13 @@ } } }, - "enterMinCharacters": "Te rugăm să introduci cel puțin {min} caractere", + "enterMinCharacters": "{min, plural, one{Te rugăm să introduci cel puțin {min} caracter} few{Te rugăm să introduci cel puțin {min} caractere} other{Te rugăm să introduci cel puțin {min} de caractere}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -820,12 +820,12 @@ "settingsIngredientCacheDescription": "Memorie cache pentru ingrediente", "settingsCacheDeletedSnackbar": "Memoria cache a fost ștearsă cu succes", "aboutPageTitle": "Despre noi și Suport", - "contributeExerciseWarning": "Poți contribui cu exerciții doar dacă contul tău este mai vechi de {days} zile și ți-ai verificat adresa de e-mail", + "contributeExerciseWarning": "{days, plural, one{Poți contribui cu exerciții doar dacă contul tău este mai vechi de {days} zi și ți-ai verificat adresa de e-mail} few{Poți contribui cu exerciții doar dacă contul tău este mai vechi de {days} zile și ți-ai verificat adresa de e-mail} other{Poți contribui cu exerciții doar dacă contul tău este mai vechi de {days} de zile și ți-ai verificat adresa de e-mail}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -1038,6 +1038,6 @@ "description": "Label shown as the clickable link to go on Open Food Facts" }, "endBeforeStart": "Valoarea de sfârșit nu poate fi înaintea celei de început", - "minLengthRoutine": "Rutina trebuie să dureze cel puțin {number} săptămâni", - "maxLengthRoutine": "Rutina poate dura cel mult {number} săptămâni" + "minLengthRoutine": "{number, plural, one{Rutina trebuie să dureze cel puțin {number} săptămână} few{Rutina trebuie să dureze cel puțin {number} săptămâni} other{Rutina trebuie să dureze cel puțin {number} de săptămâni}}", + "maxLengthRoutine": "{number, plural, one{Rutina poate dura cel mult {number} săptămână} few{Rutina poate dura cel mult {number} săptămâni} other{Rutina poate dura cel mult {number} de săptămâni}}" } diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index cb0210a1a..78b828dc8 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -463,13 +463,13 @@ } } }, - "enterMinCharacters": "Пожалуйста, введите как минимум {min} символов", + "enterMinCharacters": "{min, plural, one{Пожалуйста, введите как минимум {min} символ} few{Пожалуйста, введите как минимум {min} символа} other{Пожалуйста, введите как минимум {min} символов}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -632,12 +632,12 @@ "contributeExercise": "Добавить упражнение", "addExercise": "Добавить упражнение", "translateExercise": "Перевести это упражнение", - "contributeExerciseWarning": "Вы можете добавлять упражнения только в том случае, если ваша учетная запись старше {days} дней и вы подтвердили свою электронную почту", + "contributeExerciseWarning": "{days, plural, one{Вы можете добавлять упражнения только в том случае, если ваша учетная запись старше {days} дня и вы подтвердили свою электронную почту} other{Вы можете добавлять упражнения только в том случае, если ваша учетная запись старше {days} дней и вы подтвердили свою электронную почту}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb index c00745be7..a3f278b0f 100644 --- a/lib/l10n/app_sl.arb +++ b/lib/l10n/app_sl.arb @@ -380,7 +380,7 @@ "gymModeLogScope": "Prejšnji dnevniki", "gymModeLogScopeHelp": "Kateri dnevniki naj bodo med treningom prikazani kot referenčni", "gymModeLogScopeCurrentRoutine": "Trenutna rutina", - "gymModeLogScopeWeeks": "Zadnjih {weeks} tednov", + "gymModeLogScopeWeeks": "{weeks, plural, one{Zadnji {weeks} teden} two{Zadnja {weeks} tedna} few{Zadnje {weeks} tedne} other{Zadnjih {weeks} tednov}}", "@gymModeLogScopeWeeks": { "placeholders": { "weeks": { @@ -495,7 +495,7 @@ "@endBeforeStart": { "description": "Validation error shown when a plan or routine end date is before its start date" }, - "minLengthRoutine": "Rutina mora trajati vsaj {number} tednov", + "minLengthRoutine": "{number, plural, one{Rutina mora trajati vsaj {number} teden} two{Rutina mora trajati vsaj {number} tedna} few{Rutina mora trajati vsaj {number} tedne} other{Rutina mora trajati vsaj {number} tednov}}", "@minLengthRoutine": { "description": "Validation error when a routine is shorter than the minimum allowed duration", "placeholders": { @@ -504,7 +504,7 @@ } } }, - "maxLengthRoutine": "Rutina lahko traja največ {number} tednov", + "maxLengthRoutine": "{number, plural, one{Rutina lahko traja največ {number} teden} two{Rutina lahko traja največ {number} tedna} few{Rutina lahko traja največ {number} tedne} other{Rutina lahko traja največ {number} tednov}}", "@maxLengthRoutine": { "description": "Validation error when a routine is longer than the maximum allowed duration", "placeholders": { @@ -770,23 +770,23 @@ } } }, - "enterMinCharacters": "Vnesite vsaj {min} znakov", + "enterMinCharacters": "{min, plural, one{Vnesite vsaj {min} znak} two{Vnesite vsaj {min} znaka} few{Vnesite vsaj {min} znake} other{Vnesite vsaj {min} znakov}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, - "enterMaxCharacters": "Vnesite največ {max} znakov", + "enterMaxCharacters": "{max, plural, one{Vnesite največ {max} znak} two{Vnesite največ {max} znaka} few{Vnesite največ {max} znake} other{Vnesite največ {max} znakov}}", "@enterMaxCharacters": { "description": "Error message when the user has entered more than the allowed amount of characters in a form", "type": "text", "placeholders": { "max": { - "type": "String" + "type": "int" } } }, @@ -1012,12 +1012,12 @@ "settingsKeepDataOnLogout": "Po odjavi obdrži podatke", "settingsKeepDataOnLogoutDescription": "Krajevna podatkovna zbirka ostane na vaši napravi dokler se ne prijavi drug račun.", "aboutPageTitle": "O nas in podpora", - "contributeExerciseWarning": "Vaje lahko prispevate, ko je vaš račun starejši od {days} dni in ste potrdili vašo e-pošto", + "contributeExerciseWarning": "{days, plural, one{Vaje lahko prispevate, ko je vaš račun starejši od {days} dneva in ste potrdili vašo e-pošto} other{Vaje lahko prispevate, ko je vaš račun starejši od {days} dni in ste potrdili vašo e-pošto}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_ta.arb b/lib/l10n/app_ta.arb index 57a23990e..a4c38858f 100644 --- a/lib/l10n/app_ta.arb +++ b/lib/l10n/app_ta.arb @@ -477,7 +477,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -605,7 +605,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_tr.arb b/lib/l10n/app_tr.arb index 06f182f6c..7e8f66314 100644 --- a/lib/l10n/app_tr.arb +++ b/lib/l10n/app_tr.arb @@ -459,7 +459,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -539,7 +539,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index 5b81274f2..75cec1aa6 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -534,13 +534,13 @@ "add_exercise_image_license": "Зображення повинні бути сумісні з ліцензією CC BY SA. Якщо ви сумніваєтеся, завантажуйте лише фотографії, які ви зробили самі.", "translateExercise": "Перекладіть цю вправу зараз", "selectEntry": "Будь ласка, виберіть запис", - "enterMinCharacters": "Будь ласка, введіть принаймні {min} символів", + "enterMinCharacters": "{min, plural, one{Будь ласка, введіть принаймні {min} символ} few{Будь ласка, введіть принаймні {min} символи} other{Будь ласка, введіть принаймні {min} символів}}", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -571,12 +571,12 @@ "contributeExercise": "Додати вправу спільноті", "translation": "Переклад", "cardio": "Кардіо", - "contributeExerciseWarning": "Ви можете пропонувати вправи, лише якщо ваш обліковий запис створено понад {days} днів тому, а електронну пошту підтверджено", + "contributeExerciseWarning": "{days, plural, one{Ви можете пропонувати вправи, лише якщо ваш обліковий запис створено понад {days} день тому, а електронну пошту підтверджено} few{Ви можете пропонувати вправи, лише якщо ваш обліковий запис створено понад {days} дні тому, а електронну пошту підтверджено} other{Ви можете пропонувати вправи, лише якщо ваш обліковий запис створено понад {days} днів тому, а електронну пошту підтверджено}}", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -967,8 +967,8 @@ "personalRecords": "Особисті рекорди", "noTrophies": "У вас ще немає трофеїв", "endBeforeStart": "Кінцеве значення не може передувати початку", - "minLengthRoutine": "Програма має тривати принаймні {number} тижнів", - "maxLengthRoutine": "Програма тренувань щонайбільше {number} тижнів", + "minLengthRoutine": "{number, plural, one{Програма має тривати принаймні {number} тиждень} few{Програма має тривати принаймні {number} тижні} other{Програма має тривати принаймні {number} тижнів}}", + "maxLengthRoutine": "{number, plural, one{Програма тренувань щонайбільше {number} тиждень} few{Програма тренувань щонайбільше {number} тижні} other{Програма тренувань щонайбільше {number} тижнів}}", "preview": "Попередній перегляд", "refreshToken": "Токен оновлення", "invalidRefreshToken": "Будь ласка, введіть дійсний токен оновлення", @@ -1067,7 +1067,7 @@ "gymModeLogScope": "Попередні записи", "gymModeLogScopeHelp": "Які записи показувати для довідки під час тренування", "gymModeLogScopeCurrentRoutine": "Поточний план тренування", - "gymModeLogScopeWeeks": "За останні {weeks} тижнів", + "gymModeLogScopeWeeks": "{weeks, plural, one{За останній {weeks} тиждень} few{За останні {weeks} тижні} other{За останні {weeks} тижнів}}", "@gymModeLogScopeWeeks": { "placeholders": { "weeks": { @@ -1167,7 +1167,7 @@ "@chartAverageWindow": { "description": "Label of the setting for how many days the moving average covers" }, - "chartAverageWindowDays": "{days, plural, one{1 день} few{{days} дні} many{{days} днів} other{{days} дня}}", + "chartAverageWindowDays": "{days, plural, one{{days} день} few{{days} дні} many{{days} днів} other{{days} дня}}", "@chartAverageWindowDays": { "description": "One option of the average window setting, e.g. '7 days'", "placeholders": { @@ -1198,7 +1198,7 @@ "@distributionLatest": { "description": "Label of the marker for the most recent value in the distribution histogram" }, - "distributionEntryCount": "{count, plural, one{1 запис} few{{count} записи} many{{count} записів} other{{count} запису}}", + "distributionEntryCount": "{count, plural, one{{count} запис} few{{count} записи} many{{count} записів} other{{count} запису}}", "@distributionEntryCount": { "description": "How many measurements fall into the tapped histogram bin", "placeholders": { @@ -1216,7 +1216,7 @@ } } }, - "relativeMonthsAgo": "{count, plural, one{1 місяць тому} few{{count} місяці тому} many{{count} місяців тому} other{{count} місяця тому}}", + "relativeMonthsAgo": "{count, plural, one{{count} місяць тому} few{{count} місяці тому} many{{count} місяців тому} other{{count} місяця тому}}", "@relativeMonthsAgo": { "description": "How long ago something was measured, for distances below a year", "placeholders": { @@ -1225,7 +1225,7 @@ } } }, - "relativeYearsAgo": "{count, plural, one{1 рік тому} few{{count} роки тому} many{{count} років тому} other{{count} року тому}}", + "relativeYearsAgo": "{count, plural, one{{count} рік тому} few{{count} роки тому} many{{count} років тому} other{{count} року тому}}", "@relativeYearsAgo": { "description": "How long ago something was measured, for distances of a year and more", "placeholders": { @@ -1260,7 +1260,7 @@ "@trackNewMetric": { "description": "Tooltip of the overview's + button, which opens the sheet for starting a new measurement category" }, - "distributionDayCount": "{count, plural, one{1 день} few{{count} дні} many{{count} днів} other{{count} дня}}", + "distributionDayCount": "{count, plural, one{{count} день} few{{count} дні} many{{count} днів} other{{count} дня}}", "@distributionDayCount": { "description": "How many days fall into the tapped histogram bin, for metrics summed per day", "placeholders": { @@ -1269,7 +1269,7 @@ } } }, - "chartRangeWeeks": "{count, plural, one{1 тиждень} few{{count} тижні} many{{count} тижнів} other{{count} тижня}}", + "chartRangeWeeks": "{count, plural, one{{count} тиждень} few{{count} тижні} many{{count} тижнів} other{{count} тижня}}", "@chartRangeWeeks": { "description": "Chart time-range selector option covering a number of weeks", "placeholders": { @@ -1278,7 +1278,7 @@ } } }, - "chartRangeMonths": "{count, plural, one{1 місяць} few{{count} місяці} many{{count} місяців} other{{count} місяця}}", + "chartRangeMonths": "{count, plural, one{{count} місяць} few{{count} місяці} many{{count} місяців} other{{count} місяця}}", "@chartRangeMonths": { "description": "Chart time-range selector option covering a number of months", "placeholders": { @@ -1287,7 +1287,7 @@ } } }, - "chartRangeYears": "{count, plural, one{1 рік} few{{count} роки} many{{count} років} other{{count} року}}", + "chartRangeYears": "{count, plural, one{{count} рік} few{{count} роки} many{{count} років} other{{count} року}}", "@chartRangeYears": { "description": "Chart time-range selector option covering a number of years", "placeholders": { @@ -1645,7 +1645,7 @@ } } }, - "healthSyncStatus": "{count, plural, =0{Остання синхронізація: {time}, нових записів немає} one{Остання синхронізація: {time}, 1 новий запис} few{Остання синхронізація: {time}, {count} нові записи} many{Остання синхронізація: {time}, {count} нових записів} other{Остання синхронізація: {time}, {count} нового запису}}", + "healthSyncStatus": "{count, plural, =0{Остання синхронізація: {time}, нових записів немає} one{Остання синхронізація: {time}, {count} новий запис} few{Остання синхронізація: {time}, {count} нові записи} many{Остання синхронізація: {time}, {count} нових записів} other{Остання синхронізація: {time}, {count} нового запису}}", "@healthSyncStatus": { "description": "Status line under the health sync toggle showing when the last sync ran and how many entries it imported", "placeholders": { @@ -1831,7 +1831,7 @@ } } }, - "relativeWeeksAgo": "{count, plural, one{1 тиждень тому} few{{count} тижні тому} many{{count} тижнів тому} other{{count} тижня тому}}", + "relativeWeeksAgo": "{count, plural, one{{count} тиждень тому} few{{count} тижні тому} many{{count} тижнів тому} other{{count} тижня тому}}", "@relativeWeeksAgo": { "description": "How long ago something was measured, for distances below a month", "placeholders": { @@ -1860,17 +1860,17 @@ "@carbohydratesSugar": { "description": "Label for the carbohydrates sugar" }, - "enterMaxCharacters": "Введіть не більше ніж {max} символів", + "enterMaxCharacters": "{max, plural, one{Введіть не більше ніж {max} символ} few{Введіть не більше ніж {max} символи} other{Введіть не більше ніж {max} символів}}", "@enterMaxCharacters": { "description": "Error message when the user has entered more than the allowed amount of characters in a form", "type": "text", "placeholders": { "max": { - "type": "String" + "type": "int" } } }, - "healthSyncSuccess": "Імпортовано {count} вимірювань із Health", + "healthSyncSuccess": "{count, plural, one{Імпортовано {count} вимірювання із Health} few{Імпортовано {count} вимірювання із Health} other{Імпортовано {count} вимірювань із Health}}", "@healthSyncSuccess": { "description": "Snackbar message after successful health sync", "placeholders": { diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index c5beb1414..e4e56c909 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -585,7 +585,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, @@ -639,7 +639,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } diff --git a/lib/l10n/app_zh_Hant.arb b/lib/l10n/app_zh_Hant.arb index 8ad6b1c6f..134a832c5 100644 --- a/lib/l10n/app_zh_Hant.arb +++ b/lib/l10n/app_zh_Hant.arb @@ -263,7 +263,7 @@ "description": "Number of days before which a person can add exercise", "placeholders": { "days": { - "type": "String", + "type": "int", "example": "14" } } @@ -687,7 +687,7 @@ "type": "text", "placeholders": { "min": { - "type": "String" + "type": "int" } } }, diff --git a/test/core/l10n_plural_test.dart b/test/core/l10n_plural_test.dart new file mode 100644 index 000000000..8694e7b9b --- /dev/null +++ b/test/core/l10n_plural_test.dart @@ -0,0 +1,56 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * wger Workout Manager is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'dart:convert'; +import 'dart:io'; + +import 'package:flutter_test/flutter_test.dart'; + +/// The text of the `one` branch of a plural message, null if it has none. +String? oneBranch(String message) { + final start = message.indexOf(' one{'); + if (!message.startsWith(RegExp(r'\{\w+, plural,')) || start == -1) { + return null; + } + final begin = start + ' one{'.length; + var depth = 1; + for (var i = begin; i < message.length; i++) { + if (message[i] == '{') { + depth++; + } else if (message[i] == '}' && --depth == 0) { + return message.substring(begin, i); + } + } + return null; +} + +void main() { + test('the one branch of every English plural keeps its placeholder', () { + final arb = jsonDecode(File('lib/l10n/app_en.arb').readAsStringSync()) as Map; + + final missing = arb.entries + .where((e) => !e.key.startsWith('@') && e.value is String) + .where((e) { + final branch = oneBranch(e.value as String); + return branch != null && !branch.contains(RegExp(r'\{\w+\}')); + }) + .map((e) => e.key); + + expect(missing, isEmpty); + }); +} diff --git a/test/core/validators_test.mocks.dart b/test/core/validators_test.mocks.dart index 7b552f83d..8848e6abc 100644 --- a/test/core/validators_test.mocks.dart +++ b/test/core/validators_test.mocks.dart @@ -6051,7 +6051,7 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations { as String); @override - String enterMinCharacters(String? min) => + String enterMinCharacters(int? min) => (super.noSuchMethod( Invocation.method(#enterMinCharacters, [min]), returnValue: _i3.dummyValue( @@ -6062,7 +6062,7 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations { as String); @override - String enterMaxCharacters(String? max) => + String enterMaxCharacters(int? max) => (super.noSuchMethod( Invocation.method(#enterMaxCharacters, [max]), returnValue: _i3.dummyValue( @@ -6150,7 +6150,7 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations { as String); @override - String contributeExerciseWarning(String? days) => + String contributeExerciseWarning(int? days) => (super.noSuchMethod( Invocation.method(#contributeExerciseWarning, [days]), returnValue: _i3.dummyValue( diff --git a/test/features/exercises/validators_test.dart b/test/features/exercises/validators_test.dart index 04d023317..9d0cfa3dc 100644 --- a/test/features/exercises/validators_test.dart +++ b/test/features/exercises/validators_test.dart @@ -58,7 +58,7 @@ void main() { expect(_fifteenWords.length, lessThan(MIN_CHARS_DESCRIPTION)); expect( validateExerciseDescription(_fifteenWords, context), - i18n.enterMinCharacters('$MIN_CHARS_DESCRIPTION'), + i18n.enterMinCharacters(MIN_CHARS_DESCRIPTION), ); }); @@ -67,7 +67,7 @@ void main() { final fewWords = 'Supercalifragilisticexpialidocious ' * 5; expect( validateExerciseDescription(fewWords, context), - i18n.enterMinWords('$MIN_WORDS_DESCRIPTION'), + i18n.enterMinWords(MIN_WORDS_DESCRIPTION), ); }); @@ -77,7 +77,7 @@ void main() { expect(padded.length, greaterThanOrEqualTo(MIN_CHARS_DESCRIPTION)); expect( validateExerciseDescription(padded, context), - i18n.enterMinWords('$MIN_WORDS_DESCRIPTION'), + i18n.enterMinWords(MIN_WORDS_DESCRIPTION), ); }); });