Fix errors when a plural translation is missing (#1716)

## Description
Previously not every plural translation had full coverage and some did
not have the fallback "other" quantity translation. So for some
languages this would cause an error when trying to display the string
depending on the quantity. This PR ensures every plural translation has
the "other" fallback.

Note: the "other" fallback is copied from an existing translation so I'm
sure some will not be grammatically correct!

Dev note: I used a python script to parse and fix the entries, so it
also rewrote some of the unrelated `CDATA` entries.

### Related issues
Fixes #1676

### Testing
On the emulator, I reproduced the error in the issue with the Danish
translation, verified it was fixed after the patch was applied

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-07-18 17:52:16 -04:00 • committed by GitHub
parent 35c4d13f8f
commit 4f5cd3e7b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 200 additions and 66 deletions

View file

@ -27,7 +27,7 @@
<string name="directed_by">Режиссёр %1$s</string>
<string name="director">Режиссёр</string>
<string name="discovered_servers">Обнаруженные серверы</string>
<string name="download_and_update"><![CDATA[Загрузить и Обновить]]></string>
<string name="download_and_update">Загрузить и Обновить</string>
<string name="downloading">Скачивание…</string>
<string name="enter_server_url">Введите IP или URL сервера</string>
<string name="episodes">Эпизоды</string>
@ -73,7 +73,7 @@
<string name="remove_favorite">Убрать из избранного</string>
<string name="resume">Продолжить</string>
<string name="save">Сохранить</string>
<string name="search_and_download"><![CDATA[Найти и скачать]]></string>
<string name="search_and_download">Найти и скачать</string>
<string name="search">Найти</string>
<string name="searching">Поиск…</string>
<string name="select_server">Выберите сервер</string>
@ -134,6 +134,7 @@
</plurals>
<plurals name="behind_the_scenes">
<item quantity="one">За кадром</item>
<item quantity="other">За кадром</item>
</plurals>
<plurals name="clips">
<item quantity="one">Клип</item>
@ -201,7 +202,7 @@
<string name="watch_live">Смотреть прямой эфир</string>
<string name="aired_episode_order">Порядок выхода эпизодов</string>
<string name="reset">Сброс</string>
<string name="cast_and_crew"><![CDATA[Снимались и снимали]]></string>
<string name="cast_and_crew">Снимались и снимали</string>
<string name="guest_stars">Приглашённые звёзды</string>
<string name="aspect_ratio">Соотношение сторон</string>
<string name="show_details">Показать подробности</string>
@ -273,7 +274,7 @@
<string name="auto_play_next_delay">Задержка перед воспроизведением следующей серии</string>
<string name="auto_play_next">Автовоспроизведение следующей серии</string>
<string name="combine_continue_next_summary">Применяется только к Телешоу</string>
<string name="combine_continue_next"><![CDATA[Объединить Продолжить просмотр и Далее]]></string>
<string name="combine_continue_next">Объединить Продолжить просмотр и Далее</string>
<string name="direct_play_ass">Прямое воспроизведение ASS-субтитров</string>
<string name="direct_play_pgs">Прямое воспроизведение PGS-субтитров</string>
<string name="font_size">Размер шрифта</string>
@ -297,9 +298,11 @@
</plurals>
<plurals name="samples">
<item quantity="one">Отрывки</item>
<item quantity="other">Отрывки</item>
</plurals>
<plurals name="featurettes">
<item quantity="one">Дополнительные материалы</item>
<item quantity="other">Дополнительные материалы</item>
</plurals>
<string name="player_backend">Выбор плеера</string>
<string name="edge_size">Толщина обводки</string>
@ -308,9 +311,11 @@
<string name="forced_track">Форсированные</string>
<plurals name="theme_songs">
<item quantity="one">Саундтреки</item>
<item quantity="other">Саундтреки</item>
</plurals>
<plurals name="theme_videos">
<item quantity="one">Видеоролики</item>
<item quantity="other">Видеоролики</item>
</plurals>
<string name="nav_drawer_pins">Настроить элементы боковой панели</string>
<string name="nav_drawer_pins_summary">Выберите элементы для показа на панели, остальные элементы будут скрыты</string>
@ -325,6 +330,7 @@
<string name="pass_out_protection">Остановка воспроизведения при бездействии</string>
<plurals name="shorts">
<item quantity="one">Короткометражки</item>
<item quantity="other">Короткометражки</item>
</plurals>
<string name="ends_at">Конец в %1$s</string>
<string name="enter_server_address">Введите адрес сервера</string>