diff --git a/debian/patches/override-elixir-version.path b/debian/patches/override-elixir-version.path index 26f9a019..72a2d97f 100644 --- a/debian/patches/override-elixir-version.path +++ b/debian/patches/override-elixir-version.path @@ -1,7 +1,7 @@ -Index: mobilizon/mix.exs +Index: debianize-mobilizon/mix.exs =================================================================== ---- mobilizon.orig/mix.exs 2024-01-13 15:23:04.911709837 +0000 -+++ mobilizon/mix.exs 2024-01-13 15:23:04.907709918 +0000 +--- debianize-mobilizon.orig/mix.exs 2024-03-10 16:59:58.067660182 +0000 ++++ debianize-mobilizon/mix.exs 2024-03-10 16:59:58.063660257 +0000 @@ -7,7 +7,7 @@ [ app: :mobilizon, diff --git a/debian/patches/restrict-supported-l10n.patch b/debian/patches/restrict-supported-l10n.patch new file mode 100644 index 00000000..e2fa5280 --- /dev/null +++ b/debian/patches/restrict-supported-l10n.patch @@ -0,0 +1,72 @@ +Description: Remove languages with less than 50% of translated strings. +Index: debianize-mobilizon/config/prod.exs +=================================================================== +--- debianize-mobilizon.orig/config/prod.exs 2024-03-10 17:10:45.662725338 +0000 ++++ debianize-mobilizon/config/prod.exs 2024-03-10 17:10:45.658725422 +0000 +@@ -16,30 +16,21 @@ + # Load all locales in production + config :mobilizon, :cldr, + locales: [ +- "ar", +- "be", +- "bn", + "ca", + "cs", +- "cy", + "de", + "en", + "es", +- "fa", + "fi", + "fr", + "gd", + "gl", + "hr", + "hu", +- "id", + "it", +- "ja", + "nl", + "nn", + "pl", +- "pt", + "ru", + "sv", +- "zh_Hant" + ] +Index: debianize-mobilizon/src/i18n/langs.json +=================================================================== +--- debianize-mobilizon.orig/src/i18n/langs.json 2024-03-09 11:35:56.402348657 +0000 ++++ debianize-mobilizon/src/i18n/langs.json 2024-03-10 17:12:48.164170596 +0000 +@@ -1,30 +1,20 @@ + { +- "ar": "العربية", +- "bn": "বাংলা", + "ca": "Català", + "cs": "čeština", +- "cy": "Cymraeg", + "de": "Deutsch", + "en": "English", + "es": "Español", +- "fa": "فارسی", + "fi": "suomi", + "fr": "Français", + "gd": "Gàidhlig", + "gl": "Galego", + "hr": "Hrvatski", + "hu": "Magyar", +- "id": "Bahasa Indonesia", + "it": "Italiano", +- "ja": "日本語", + "nl": "Nederlands", + "nn": "Nynorsk", + "oc": "Occitan", + "pl": "Polski", +- "pt_BR": "Português brasileiro", + "ru": "Русский", +- "sl": "Slovenščina", +- "sv": "Svenska", +- "zh_Hans": "简体字", +- "zh_Hant": "繁體字" ++ "sv": "Svenska" + } diff --git a/debian/patches/series b/debian/patches/series index 2a1565c3..18cc402c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ override-elixir-version.path +restrict-supported-l10n.patch