From 6c05ed8aaa39a10dd5d7e95e07071ddc0130ed83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Thu, 12 Mar 2026 17:34:59 +0100 Subject: [PATCH] chore: Add support button everywhere --- lib/config/app_config.dart | 3 ++- lib/l10n/intl_be.arb | 2 -- lib/l10n/intl_ca.arb | 1 - lib/l10n/intl_cs.arb | 1 - lib/l10n/intl_de.arb | 3 +-- lib/l10n/intl_en.arb | 4 ++-- lib/l10n/intl_es.arb | 1 - lib/l10n/intl_et.arb | 3 +-- lib/l10n/intl_eu.arb | 3 +-- lib/l10n/intl_fi.arb | 2 -- lib/l10n/intl_ga.arb | 3 +-- lib/l10n/intl_gl.arb | 3 +-- lib/l10n/intl_hr.arb | 1 - lib/l10n/intl_id.arb | 1 - lib/l10n/intl_kab.arb | 1 - lib/l10n/intl_lv.arb | 1 - lib/l10n/intl_nb.arb | 3 +-- lib/l10n/intl_nl.arb | 3 +-- lib/l10n/intl_pl.arb | 2 +- lib/l10n/intl_pt_BR.arb | 1 - lib/l10n/intl_ru.arb | 1 - lib/l10n/intl_sv.arb | 1 - lib/l10n/intl_ta.arb | 3 +-- lib/l10n/intl_uk.arb | 1 - lib/l10n/intl_uz.arb | 1 - lib/l10n/intl_zh.arb | 3 +-- .../chat_list/client_chooser_button.dart | 21 +++++++++---------- 27 files changed, 24 insertions(+), 49 deletions(-) diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index 0dcb6c4c0..6e53d61ba 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -37,7 +37,8 @@ abstract class AppConfig { static const String supportUrl = 'https://github.com/krille-chan/fluffychat/issues'; static const String changelogUrl = 'https://fluffy.chat/en/changelog/'; - static const String donationUrl = 'https://ko-fi.com/krille'; + static const String donationUrl = + 'https://fluffychat.im/faq/#how_can_i_support_fluffychat'; static const Set defaultReactions = {'👍', '❤️', '😂', '😮', '😢'}; diff --git a/lib/l10n/intl_be.arb b/lib/l10n/intl_be.arb index 055345750..338e33f9b 100644 --- a/lib/l10n/intl_be.arb +++ b/lib/l10n/intl_be.arb @@ -2992,8 +2992,6 @@ } } }, - "donate": "Даць грошы", - "@donate": {}, "startedAPoll": "{username} пачаў апытанне.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_ca.arb b/lib/l10n/intl_ca.arb index 796ba7828..e25350141 100644 --- a/lib/l10n/intl_ca.arb +++ b/lib/l10n/intl_ca.arb @@ -2691,7 +2691,6 @@ } } }, - "donate": "Dona", "startedAPoll": "{username} ha creat una enquesta.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_cs.arb b/lib/l10n/intl_cs.arb index 9b61e29eb..ead46d2d8 100644 --- a/lib/l10n/intl_cs.arb +++ b/lib/l10n/intl_cs.arb @@ -2560,7 +2560,6 @@ } } }, - "donate": "Přispět", "startedAPoll": "{username} spustil/a hlasování.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arb index 10fc72d9c..b4e4c0a6a 100644 --- a/lib/l10n/intl_de.arb +++ b/lib/l10n/intl_de.arb @@ -2697,7 +2697,6 @@ } } }, - "donate": "Spenden", "resume": "Fortsetzen", "startedAPoll": "{username} hat eine Umfrage gestartet.", "@startedAPoll": { @@ -2789,4 +2788,4 @@ "searchOrEnterHomeserverAddress": "Homeserver-Adresse suchen oder eingeben", "matrixId": "Matrix ID", "reset": "Zurücksetzen" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 4226d4fdc..e88217c88 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -2681,7 +2681,6 @@ } } }, - "donate": "Donate", "startedAPoll": "{username} started a poll.", "@startedAPoll": { "type": "String", @@ -2782,5 +2781,6 @@ "description": "This should be a very short string because there is not much space in the button!" }, "createNewChat": "Create new chat", - "reset": "Reset" + "reset": "Reset", + "supportFluffyChat": "Support FluffyChat" } \ No newline at end of file diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index b580147b8..0ef41aea0 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -2713,7 +2713,6 @@ } } }, - "donate": "Donar", "pollQuestion": "Pregunta de encuesta", "answerOption": "Respuesta", "addAnswerOption": "Añadir respuesta", diff --git a/lib/l10n/intl_et.arb b/lib/l10n/intl_et.arb index 75e039679..5dde21462 100644 --- a/lib/l10n/intl_et.arb +++ b/lib/l10n/intl_et.arb @@ -2690,7 +2690,6 @@ } } }, - "donate": "Toeta meid rahaliselt", "startedAPoll": "{username} koostas küsitluse.", "@startedAPoll": { "type": "String", @@ -2793,4 +2792,4 @@ "description": "This should be a very short string because there is not much space in the button!" }, "createNewChat": "Loo uus vestlus" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_eu.arb b/lib/l10n/intl_eu.arb index caf6e44fa..15766e648 100644 --- a/lib/l10n/intl_eu.arb +++ b/lib/l10n/intl_eu.arb @@ -2672,7 +2672,6 @@ } } }, - "donate": "Egin dohaintza", "spaceMemberOf": "{spaces} guneko kidea", "@spaceMemberOf": { "type": "String", @@ -2794,4 +2793,4 @@ }, "createNewChat": "Sortu txat berria", "reset": "Berrezarri" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_fi.arb b/lib/l10n/intl_fi.arb index be92c553a..9c26272be 100644 --- a/lib/l10n/intl_fi.arb +++ b/lib/l10n/intl_fi.arb @@ -3003,8 +3003,6 @@ } } }, - "donate": "Lahjoita", - "@donate": {}, "startedAPoll": "{username} aloitti kyselyn.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_ga.arb b/lib/l10n/intl_ga.arb index 38eb98035..db7ed2983 100644 --- a/lib/l10n/intl_ga.arb +++ b/lib/l10n/intl_ga.arb @@ -2696,7 +2696,6 @@ } } }, - "donate": "Tabhair Síntiús", "startedAPoll": "Chuir {username} tús le pobalbhreith.", "@startedAPoll": { "type": "String", @@ -2800,4 +2799,4 @@ }, "createNewChat": "Cruthaigh comhrá nua", "reset": "Athshocraigh" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_gl.arb b/lib/l10n/intl_gl.arb index 13fa86d83..6c19e5fa8 100644 --- a/lib/l10n/intl_gl.arb +++ b/lib/l10n/intl_gl.arb @@ -2672,7 +2672,6 @@ } } }, - "donate": "Doar", "spaceMemberOf": "Participa no espazo {spaces}", "@spaceMemberOf": { "type": "String", @@ -2793,4 +2792,4 @@ "description": "This should be a very short string because there is not much space in the button!" }, "createNewChat": "Crear nova conversa" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_hr.arb b/lib/l10n/intl_hr.arb index e21320630..cba7322ec 100644 --- a/lib/l10n/intl_hr.arb +++ b/lib/l10n/intl_hr.arb @@ -2692,7 +2692,6 @@ } } }, - "donate": "Doniraj", "startedAPoll": "{username} je pokrenuo/la anketu.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_id.arb b/lib/l10n/intl_id.arb index 65174f6c9..b0877b55d 100644 --- a/lib/l10n/intl_id.arb +++ b/lib/l10n/intl_id.arb @@ -2691,7 +2691,6 @@ } } }, - "donate": "Donasi", "startedAPoll": "{username} memulai polling.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_kab.arb b/lib/l10n/intl_kab.arb index e2e2fa634..f0464eef3 100644 --- a/lib/l10n/intl_kab.arb +++ b/lib/l10n/intl_kab.arb @@ -1392,7 +1392,6 @@ } } }, - "donate": "Mudd tawsa", "startedAPoll": "{username}yessenker tafrent.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_lv.arb b/lib/l10n/intl_lv.arb index cfca1b491..c81ba6cab 100644 --- a/lib/l10n/intl_lv.arb +++ b/lib/l10n/intl_lv.arb @@ -2673,7 +2673,6 @@ } } }, - "donate": "Ziedot", "startedAPoll": "{username} uzsāka aptauju.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_nb.arb b/lib/l10n/intl_nb.arb index 41ad546df..a3fad8ec3 100644 --- a/lib/l10n/intl_nb.arb +++ b/lib/l10n/intl_nb.arb @@ -2540,7 +2540,6 @@ } } }, - "donate": "Doner", "banUserDescription": "Brukeren vil bli utestengt fra chatten og vil ikke kunne delta i chatten igjen før utestengelsen er opphevet.", "unbanUserDescription": "Brukeren vil kunne gå inn i chatten igjen hvis vedkommende prøver.", "kickUserDescription": "Brukeren blir kastet ut av chatten, men ikke utestengt. I offentlige chatter kan brukeren bli med på nytt når som helst.", @@ -2801,4 +2800,4 @@ }, "createNewChat": "Opprett ny chat", "reset": "Nullstill" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_nl.arb b/lib/l10n/intl_nl.arb index e8273fea8..00ad6495c 100644 --- a/lib/l10n/intl_nl.arb +++ b/lib/l10n/intl_nl.arb @@ -2661,7 +2661,6 @@ "longPressToRecordVoiceMessage": "Lang drukken om een spraakbericht op te nemen.", "pause": "Pauzeer", "resume": "Hervat", - "donate": "Doneer", "removeFromSpaceDescription": "De chat zal worden verwijderd uit de space, maar blijft in je chats.", "countChats": "{chats} chats", "@countChats": { @@ -2793,4 +2792,4 @@ }, "createNewChat": "Creëer nieuw chat", "reset": "Herstellen" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_pl.arb b/lib/l10n/intl_pl.arb index cfb6dbe5d..1b14a5922 100644 --- a/lib/l10n/intl_pl.arb +++ b/lib/l10n/intl_pl.arb @@ -2699,4 +2699,4 @@ "moreEvents": "Więcej zdarzeń", "declineInvitation": "Odrzuć zaproszenie", "@declineInvitation": {} -} +} \ No newline at end of file diff --git a/lib/l10n/intl_pt_BR.arb b/lib/l10n/intl_pt_BR.arb index e5be40fa3..dae54b882 100644 --- a/lib/l10n/intl_pt_BR.arb +++ b/lib/l10n/intl_pt_BR.arb @@ -2689,7 +2689,6 @@ } } }, - "donate": "Doar", "startedAPoll": "{username} iniciou uma enquete.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_ru.arb b/lib/l10n/intl_ru.arb index aad8890b9..7341066d5 100644 --- a/lib/l10n/intl_ru.arb +++ b/lib/l10n/intl_ru.arb @@ -2640,7 +2640,6 @@ } } }, - "donate": "Пожертвовать", "startedAPoll": "{username} начал опрос.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_sv.arb b/lib/l10n/intl_sv.arb index 87f9ebd40..82fb566c0 100644 --- a/lib/l10n/intl_sv.arb +++ b/lib/l10n/intl_sv.arb @@ -2606,7 +2606,6 @@ } } }, - "donate": "Donera", "answerOption": "Svarsalternativ", "addAnswerOption": "Lägg till svarsalternativ", "allowMultipleAnswers": "Tillåt flera svar", diff --git a/lib/l10n/intl_ta.arb b/lib/l10n/intl_ta.arb index 4e2b6aa2e..cfbff0b0f 100644 --- a/lib/l10n/intl_ta.arb +++ b/lib/l10n/intl_ta.arb @@ -2684,7 +2684,6 @@ } } }, - "donate": "நன்கொடை", "startedAPoll": "{username} ஒரு வாக்கெடுப்பைத் தொடங்கினார்.", "@startedAPoll": { "type": "String", @@ -2785,4 +2784,4 @@ "description": "This should be a very short string because there is not much space in the button!" }, "createNewChat": "புதிய அரட்டையை உருவாக்கு" -} +} \ No newline at end of file diff --git a/lib/l10n/intl_uk.arb b/lib/l10n/intl_uk.arb index f72345152..72b90b9a3 100644 --- a/lib/l10n/intl_uk.arb +++ b/lib/l10n/intl_uk.arb @@ -2690,7 +2690,6 @@ } } }, - "donate": "Задонатити", "startedAPoll": "Нове опитування від {username}.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_uz.arb b/lib/l10n/intl_uz.arb index 3567af880..963431384 100644 --- a/lib/l10n/intl_uz.arb +++ b/lib/l10n/intl_uz.arb @@ -2598,7 +2598,6 @@ } } }, - "donate": "Xayriya qilmoq", "startedAPoll": "{username} so‘rovnoma boshladi.", "@startedAPoll": { "type": "String", diff --git a/lib/l10n/intl_zh.arb b/lib/l10n/intl_zh.arb index 422790656..161ce3965 100644 --- a/lib/l10n/intl_zh.arb +++ b/lib/l10n/intl_zh.arb @@ -2690,7 +2690,6 @@ } } }, - "donate": "捐赠", "startedAPoll": "{username} 启动了投票。", "@startedAPoll": { "type": "String", @@ -2794,4 +2793,4 @@ }, "createNewChat": "新建聊天", "reset": "重置" -} +} \ No newline at end of file diff --git a/lib/pages/chat_list/client_chooser_button.dart b/lib/pages/chat_list/client_chooser_button.dart index b4dca19dc..f4093cb0b 100644 --- a/lib/pages/chat_list/client_chooser_button.dart +++ b/lib/pages/chat_list/client_chooser_button.dart @@ -69,17 +69,6 @@ class ClientChooserButton extends StatelessWidget { ], ), ), - if (Matrix.of(context).backgroundPush?.firebaseEnabled != true) - PopupMenuItem( - value: SettingsAction.support, - child: Row( - children: [ - const Icon(Icons.favorite, color: Colors.red), - const SizedBox(width: 18), - Text(L10n.of(context).donate), - ], - ), - ), PopupMenuItem( value: SettingsAction.settings, child: Row( @@ -90,6 +79,16 @@ class ClientChooserButton extends StatelessWidget { ], ), ), + PopupMenuItem( + value: SettingsAction.support, + child: Row( + children: [ + Icon(Icons.volunteer_activism, color: Colors.red), + const SizedBox(width: 18), + Text(L10n.of(context).supportFluffyChat), + ], + ), + ), const PopupMenuDivider(), for (final bundle in bundles) ...[ if (matrix.accountBundles[bundle]!.length != 1 ||