From 433d623f1483adffcdde8e86941e4cd0ed970d1d Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Wed, 2 Feb 2022 07:13:53 -0700 Subject: [PATCH] strings: fix improper usage of plurals Use a proper composition of the "many" and "other" fields in the plural fields of specific languages. In the french/czech plural configuration, both "many" and "other" are used for string fields. The lint does not make this obvious, so in d7f34e6 I ended up switching the "other" field to "many". This resulted in some devices on those languages crashing. To fix this, we define the "many" and "other" fields with the same value to avoid a crash. Resolves #69. --- app/src/main/res/values-cs/strings.xml | 2 ++ app/src/main/res/values-fr/strings.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 2ecf0dee8..4d7a96d28 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -140,10 +140,12 @@ "%d skladba" "%d skladby" "%d skladeb" + "%d skladeb" "%d album" "%d alba" "%d alb" + "%d alb" diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 5b46d6e1d..bcd920982 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -87,10 +87,12 @@ %s Titre %s Titres + %s Titres %s Album %s Albums + %s Albums \ No newline at end of file