Skip to content

Commit 3fbfaab

Browse files
committed
add multiple language support in app
1 parent bb8fe2c commit 3fbfaab

28 files changed

+166
-78
lines changed

.github/workflows/dart.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Flutter CI
22

33
on:
44
push:
5-
branches: [ master , develop ]
5+
branches: [master, develop]
66
pull_request:
7-
branches: [ master , develop ]
7+
branches: [master, develop]
88

99
jobs:
1010
build:
@@ -14,10 +14,10 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-java@v1
1616
with:
17-
java-version: '12.x'
17+
java-version: "12.x"
1818
- uses: subosito/flutter-action@v1
1919
with:
20-
flutter-version: '3.10.5'
20+
flutter-version: "3.13.1"
2121
- run: flutter pub get
2222
- run: flutter gen-l10n --arb-dir=lib/l10n/arb
2323
- run: flutter analyze

lib/Pages/home_screen/widgets/rss_feed_home_page.dart

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,20 +1011,23 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
10111011
Padding(
10121012
padding:
10131013
const EdgeInsets
1014-
.only(
1014+
.only(
10151015
top: 20),
10161016
child: Column(
10171017
crossAxisAlignment:
10181018
CrossAxisAlignment
10191019
.start,
10201020
children: [
10211021
Padding(
1022-
padding: const EdgeInsets
1022+
padding:
1023+
const EdgeInsets
10231024
.only(
1024-
right: 20,
1025-
left: 20,
1026-
bottom:
1027-
5),
1025+
right:
1026+
20,
1027+
left:
1028+
20,
1029+
bottom:
1030+
5),
10281031
child: Text(
10291032
l10n.selected_magnet_link,
10301033
style: TextStyle(
@@ -1043,7 +1046,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
10431046
),
10441047
Padding(
10451048
padding: const EdgeInsets
1046-
.only(
1049+
.only(
10471050
left:
10481051
20.0,
10491052
right:
@@ -1384,7 +1387,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
13841387
? Padding(
13851388
padding:
13861389
const EdgeInsets
1387-
.only(
1390+
.only(
13881391
top: 8.0),
13891392
child: Container(
13901393
height: 1,

lib/Pages/settings_screen/widgets/user_interface_section.dart

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -272,26 +272,21 @@ class _UserInterfaceSectionState extends State<UserInterfaceSection> {
272272
Row(
273273
children: [
274274
Expanded(
275-
child: ListTile(
275+
child: RadioListTile(
276276
contentPadding: EdgeInsets.zero,
277-
horizontalTitleGap: 0,
278277
title: Text(l10n.single_selection_radio_button),
279-
leading: Radio<TagPreferenceButtonValue>(
280-
value: TagPreferenceButtonValue.singleSelection,
281-
groupValue: widget.selectedRadioButton,
282-
onChanged: widget.tagSelectionOnChange,
283-
),
278+
value: TagPreferenceButtonValue.singleSelection,
279+
groupValue: widget.selectedRadioButton,
280+
onChanged: widget.tagSelectionOnChange,
284281
),
285282
),
286283
Expanded(
287-
child: ListTile(
284+
child: RadioListTile(
288285
contentPadding: EdgeInsets.zero,
289-
horizontalTitleGap: 0,
290286
title: Text(l10n.multi_selection_radio_button),
291-
leading: Radio<TagPreferenceButtonValue>(
292-
value: TagPreferenceButtonValue.multiSelection,
293-
groupValue: widget.selectedRadioButton,
294-
onChanged: widget.tagSelectionOnChange),
287+
value: TagPreferenceButtonValue.multiSelection,
288+
groupValue: widget.selectedRadioButton,
289+
onChanged: widget.tagSelectionOnChange,
295290
),
296291
),
297292
],

lib/l10n/arb/app_ar.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,9 @@
321321
"notification_stopped": "تم الإيقاف",
322322
"notification_downloading": "جاري التنزيل",
323323
"notification_error": "خطأ في التنزيل",
324-
"notification_finished": "تم التنزيل"
324+
"notification_finished": "تم التنزيل",
325+
"tag_selection_heading": "تفضيلات محدد الوسوم",
326+
"single_selection_radio_button": "اختيار واحد",
327+
"multi_selection_radio_button": "اختيار متعدد",
328+
"show_progress_bar_option": "عرض شريط التقدم"
325329
}

lib/l10n/arb/app_cs.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,9 @@
321321
"notification_stopped": "Zastaveno",
322322
"notification_downloading": "Stahování",
323323
"notification_error": "Chyba při stahování",
324-
"notification_finished": "Stahování dokončeno"
324+
"notification_finished": "Stahování dokončeno",
325+
"tag_selection_heading": "Předvolba výběru značek",
326+
"single_selection_radio_button": "Jednoduchý výběr",
327+
"multi_selection_radio_button": "Více výběrů",
328+
"show_progress_bar_option": "Zobrazovat pruh postupu"
325329
}

lib/l10n/arb/app_de.arb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@
284284
"torrent_screen_items_heading": "Torrent-Bildschirmelemente",
285285
"torrents_set_trackers_snackbar": "Tracker erfolgreich festgelegt",
286286
"context_menu_items_heading": "Elemente im Kontextmenü",
287+
"tag_selection_heading": "Tag-Auswahlpräferenz",
288+
"single_selection_radio_button": "Einzelne Auswahl",
289+
"multi_selection_radio_button": "Mehrfachauswahl",
287290
"notification_resume": "Fortsetzen",
288291
"notification_pause": "Pause",
289292
"notification_stop": "Stop",
@@ -321,5 +324,5 @@
321324
"sort_by_uploaded": "Hochgeladen",
322325
"sort_by_upload_speed": "Upload-Geschwindigkeit",
323326
"sort_by_file_size": "Dateigröße",
324-
"sort_by_percent_completed": "Prozent abgeschlossen"
327+
"sort_by_percent_completed": "Prozent abgeschlossen","show_progress_bar_option": "Fortschrittsbalken anzeigen"
325328
}

lib/l10n/arb/app_en.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@
335335
"notification_stopped": "Stopped",
336336
"notification_downloading": "Downloading",
337337
"notification_error": "Download Error",
338-
"notification_finished": "Download Finished"
338+
"notification_finished": "Download Finished",
339+
"tag_selection_heading": "Tag Selector Preference",
340+
"single_selection_radio_button":"Single Selection",
341+
"multi_selection_radio_button":"Multi Selection",
342+
"show_progress_bar_option":"Show Progress Bar"
339343
}
340344

lib/l10n/arb/app_es.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,9 @@
321321
"notification_stopped": "Detenido",
322322
"notification_downloading": "Descargando",
323323
"notification_error": "Error de descarga",
324-
"notification_finished": "Descarga finalizada"
324+
"notification_finished": "Descarga finalizada",
325+
"tag_selection_heading": "Preferencia del selector de etiquetas",
326+
"single_selection_radio_button": "Selección única",
327+
"multi_selection_radio_button": "Selección múltiple",
328+
"show_progress_bar_option": "Mostrar barra de progreso"
325329
}

lib/l10n/arb/app_fi.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,9 @@
321321
"notification_stopped": "Pysähtynyt",
322322
"notification_downloading": "Lataaminen",
323323
"notification_error": "Latausvirhe",
324-
"notification_finished": "Lataus valmis"
324+
"notification_finished": "Lataus valmis",
325+
"tag_selection_heading": "Tunnistevalitsimen asetukset",
326+
"single_selection_radio_button": "Yksittäinen valinta",
327+
"multi_selection_radio_button": "Useita valintoja",
328+
"show_progress_bar_option": "Näytä edistymispalkki"
325329
}

lib/l10n/arb/app_fr.arb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,10 @@
322322
"notification_stopped": "Arrêté",
323323
"notification_downloading": "Téléchargement",
324324
"notification_error": "Erreur de téléchargement",
325-
"notification_finished": "Téléchargement terminé"
325+
"notification_finished": "Téléchargement terminé",
326+
"tag_selection_heading": "Préférence du sélecteur de balises",
327+
"single_selection_radio_button": "Sélection unique",
328+
"multi_selection_radio_button": "Sélection multiple",
329+
"show_progress_bar_option": "Afficher la barre de progression"
330+
326331
}

0 commit comments

Comments
 (0)