Skip to content

schedules: add localized event text #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell/custom-dictionary-workspace.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
searchwork
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"plansPageCardRemainingDays": "{remainingDays}d",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Přejít na záložku",
"schedulePageEventPrefixTerm": "{prefix, select, a{po} b{př.} other{asi}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{n. l.} other{př. n. l.}}",
"schedulePageToggleReadDialogTitle": "Přepínání čtení",
"schedulePageToggleReadDialogText": "Chceš označit všechny předchozí sekce jako přečtené a všechny následující jako nepřečtené?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"plansPageCardRemainingDays": "{remainingDays}T",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Springe zum Lesezeichen",
"schedulePageEventPrefixTerm": "{prefix, select, a{n.} b{v.} other{um}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{u. Z.} other{v. u. Z.}}",
"schedulePageToggleReadDialogTitle": "Lesestatus ändern",
"schedulePageToggleReadDialogText": "Möchtest du alle vorherigen Abschnitte als gelesen und alle folgenden als ungelesen markieren?",
Expand Down
461 changes: 461 additions & 0 deletions assets/localization/app_en.arb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"plansPageCardRemainingDays": "{remainingDays}d",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Saltar al marcador",
"schedulePageEventCommonEraTerm": "{isCE, select, true{d.C.} other{a.C.}}",
"schedulePageEventPrefixTerm": "{prefix, select, a{a.} b{d.} other{c.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{C.E.} other{a.C.E.}}",
"schedulePageToggleReadDialogTitle": "Alternar lectura",
"schedulePageToggleReadDialogText": "¿Quieres marcar todas las secciones anteriores como leídas y todas las siguientes como no leídas?",
"planEditPageTitle": "Editar Plan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"plansPageCardRemainingDays": "{remainingDays}j",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Aller au marque-page",
"schedulePageEventCommonEraTerm": "{isCE, select, true{de notre ère} other{avant notre ère}}",
"schedulePageEventPrefixTerm": "{prefix, select, a{apr.} b{av.} other{env.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{n. è.} other{av. n. è.}}",
"schedulePageToggleReadDialogTitle": "Basculer la lecture",
"schedulePageToggleReadDialogText": "Veux-tu marquer toutes les sections précédentes comme lues et toutes les suivantes comme non lues ?",
"planEditPageTitle": "Modifier le Plan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"plansPageCardRemainingDays": "{remainingDays}n",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Ugrás a könyvjelzőhöz",
"schedulePageEventPrefixTerm": "{prefix, select, a{a.} b{b.} other{c.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{i.sz.} other{i.e.}}",
"schedulePageToggleReadDialogTitle": "Olvasás váltása",
"schedulePageToggleReadDialogText": "Szeretnéd az összes korábbi szakaszt olvasottnak, és az összes következőt olvasatlannak jelölni?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"plansPageCardRemainingDays": "{remainingDays}g",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Vai al segnalibro",
"schedulePageEventCommonEraTerm": "{isCE, select, true{d.C.} other{a.C.}}",
"schedulePageEventPrefixTerm": "{prefix, select, a{a.} b{d.} other{ca.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{E.V.} other{a.E.V.}}",
"schedulePageToggleReadDialogTitle": "Alterna lettura",
"schedulePageToggleReadDialogText": "Vuoi segnare tutte le sezioni precedenti come lette e tutte le successive come non lette?",
"planEditPageTitle": "Modifica Piano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"plansPageCardRemainingDays": "{remainingDays}d",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Przejdź do zakładki",
"schedulePageEventPrefixTerm": "{prefix, select, a{po.} b{przed.} other{ok.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{n.e.} other{p.n.e.}}",
"schedulePageToggleReadDialogTitle": "Przełączanie czytania",
"schedulePageToggleReadDialogText": "Czy chcesz oznaczyć wszystkie poprzednie sekcje jako przeczytane, a wszystkie następne jako nieprzeczytane?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"plansPageCardRemainingDays": "{remainingDays}d",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Ir para o marcador",
"schedulePageEventCommonEraTerm": "{isCE, select, true{d.C.} other{a.C.}}",
"schedulePageEventPrefixTerm": "{prefix, select, a{a.} b{d.} other{c.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{EC} other{AEC}}",
"schedulePageToggleReadDialogTitle": "Alternar leitura",
"schedulePageToggleReadDialogText": "Você quer marcar todas as seções anteriores como lidas e todas as seguintes como não lidas?",
"planEditPageTitle": "Editar Plano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"plansPageCardRemainingDays": "{remainingDays}z",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Sari la marcaj",
"schedulePageEventPrefixTerm": "{prefix, select, a{d.} b{î.} other{a.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{e.n.} other{î.e.n.}}",
"schedulePageToggleReadDialogTitle": "Comutare citire",
"schedulePageToggleReadDialogText": "Vrei să marchezi toate secțiunile anterioare ca citite și toate următoarele ca necitite?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"plansPageCardRemainingDays": "{remainingDays}д",
"schedulePageCardWeekday": "{date}",
"schedulePageJumpToBookmarkTooltip": "Перейти к закладке",
"schedulePageEventCommonEraTerm": "{isCE, select, true{н.э.} other{до н.э.}}",
"schedulePageEventPrefixTerm": "{prefix, select, a{a.} b{b.} other{c.}}",
"schedulePageEventCommonEraTerm": "{isCE, select, true{CE} other{BCE}}",
"schedulePageToggleReadDialogTitle": "Переключение чтения",
"schedulePageToggleReadDialogText": "Ты хочешь отметить все предыдущие разделы как прочитанные и все последующие как непрочитанные?",
"planEditPageTitle": "Редактировать план",
Expand Down
2 changes: 1 addition & 1 deletion l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
arb-dir: lib/src/localization
arb-dir: assets/localization
nullable-getter: false
output-localization-file: app_localizations.dart
template-arb-file: app_en.arb
Expand Down
4 changes: 2 additions & 2 deletions lib/src/app.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:nwt_reading/src/localization/app_localizations_getter.dart';
import 'package:nwt_reading/src/settings/stories/theme_mode_story.dart';
import 'package:nwt_reading/src/theme.dart';

Expand All @@ -20,8 +21,7 @@ class App extends ConsumerWidget {
restorationScopeId: 'app',
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
onGenerateTitle: (BuildContext context) =>
AppLocalizations.of(context).appTitle,
onGenerateTitle: (BuildContext context) => context.loc.appTitle,
theme: lightTheme,
darkTheme: darkTheme,
themeMode: themeMode,
Expand Down
186 changes: 0 additions & 186 deletions lib/src/localization/app_en.arb

This file was deleted.

Loading
Loading