improved localizations

This commit is contained in:
Myzel394 2022-08-19 23:15:38 +02:00
parent 652123fca6
commit 17133c2bca
7 changed files with 40 additions and 34 deletions

View File

@ -4,6 +4,8 @@
"generalError": "Ein Fehler ist aufgetreten", "generalError": "Ein Fehler ist aufgetreten",
"generalCancelButtonLabel": "Abbrechen", "generalCancelButtonLabel": "Abbrechen",
"generalContinueButtonLabel": "Weiter", "generalContinueButtonLabel": "Weiter",
"generalUnderstoodButtonLabel": "OK",
"generalLoadingLabel": "Wird geladen...",
"welcomeScreenDescription": "Finde heraus was du den ganzen Tag gemacht hast und erlebe Erinnerungen wieder, die du komplett vergessen hast!", "welcomeScreenDescription": "Finde heraus was du den ganzen Tag gemacht hast und erlebe Erinnerungen wieder, die du komplett vergessen hast!",
"welcomeScreenSubtitle": "Was hab ich heute gemacht?", "welcomeScreenSubtitle": "Was hab ich heute gemacht?",
@ -11,15 +13,13 @@
"welcomeScreenCreateMemoriesGuideDescription": "Erstelle Fotos und Videos während des Tages auf...", "welcomeScreenCreateMemoriesGuideDescription": "Erstelle Fotos und Videos während des Tages auf...",
"welcomeScreenViewMemoriesGuideDescription": "...und lebe deine Liebelingsmomente des Tages wieder!", "welcomeScreenViewMemoriesGuideDescription": "...und lebe deine Liebelingsmomente des Tages wieder!",
"welcomeScreenGetStartedLabel": "Loslegen", "welcomeScreenGetStartedLabel": "Loslegen",
"welcomeScreenMemoriesDataMemoriesAmount": "Du hast {memoriesAmount} Erinnerungen erstellt", "welcomeScreenMemoriesDataMemoriesAmount": "Du hast {count,plural, =0{noch keine Erinnerungen}} =1{eine Erinnerung} other{{count} Erinnerungen}} erstellt",
"welcomeScreenMemoriesDataMemoriesSpanning": "Welche vom {startDateFormatted} bis zum {endDateFormatted} reichen", "welcomeScreenMemoriesDataMemoriesSpanning": "Welche vom {startDate} bis zum {endDate} reichen",
"serverLoadingScreenDescription": "Wir laden deine Daten", "serverLoadingScreenDescription": "Wir laden deine Daten",
"mainScreenLoadingCamera": "Kamera wird geladen",
"mainScreenActionsTorchButton": "Taschenlampe", "mainScreenActionsTorchButton": "Taschenlampe",
"mainScreenUploadSuccess": "Erfolgreich hochgeladen", "mainScreenUploadSuccess": "Erfolgreich hochgeladen",
@ -28,6 +28,10 @@
"mainScreenTakeVideoActionSaveVideo": "Video wird aufgenommen, halte still...", "mainScreenTakeVideoActionSaveVideo": "Video wird aufgenommen, halte still...",
"mainScreenTakeVideoActionUploadingVideo": "Video wird hochgeladen...", "mainScreenTakeVideoActionUploadingVideo": "Video wird hochgeladen...",
"mainScreenHelpSheetTitle": "Nimm deine besten Momente im Leben auf",
"mainScreenHelpSheetTakePhotoExplanation": "Tippe einmal auf den Auslöser um ein Foto zu erstellen.",
"mainScreenHelpSheetTakeVideoExplanation": "Halt den Auslöser gedrückt um ein Video aufzunehmen. Lasse los, wenn du fertig bist.",
"recordingOverlayIsRecording": "Aufnahme", "recordingOverlayIsRecording": "Aufnahme",
@ -62,7 +66,7 @@
"memorySheetUpdateMemoryMakePublic": "Veröffentlichen", "memorySheetUpdateMemoryMakePublic": "Veröffentlichen",
"memorySheetUpdateMemoryMakePrivate": "Privat machen", "memorySheetUpdateMemoryMakePrivate": "Privat machen",
"memorySheetDeleteMemory": "Erinnerung löschen", "memorySheetDeleteMemory": "Erinnerung löschen",
"memorySheetCreatedAtDataKey": "Erstellt am: {creationTimeFormatted}", "memorySheetCreatedAtDataKey": "Erstellt am: {creationTime}",
"memorySheetViewMoreDetails": "Mehr Details", "memorySheetViewMoreDetails": "Mehr Details",
@ -70,7 +74,6 @@
"memoryMapScreenExpandForMoreDescription": "Erweitere für mehr Details", "memoryMapScreenExpandForMoreDescription": "Erweitere für mehr Details",
"memoryMapScreenOpenNavigation": "Navigation öffnen", "memoryMapScreenOpenNavigation": "Navigation öffnen",
"memoryMapScreenValuesAddressLabel": "Geschätzte Adresse", "memoryMapScreenValuesAddressLabel": "Geschätzte Adresse",
"memoryMapScreenValuesAddressIsLoading": "Adresse wird geladen...",
"memoryMapScreenValuesAddressIsUnavailable": "Address nicht verfügbar", "memoryMapScreenValuesAddressIsUnavailable": "Address nicht verfügbar",
"memoryMapScreenValuesLatitudeLabel": "Latitude", "memoryMapScreenValuesLatitudeLabel": "Latitude",
"memoryMapScreenValuesLongitudeLabel": "Longitude", "memoryMapScreenValuesLongitudeLabel": "Longitude",
@ -88,7 +91,6 @@
"emptyScreenCreateMemory": "Erinnerung erstellen", "emptyScreenCreateMemory": "Erinnerung erstellen",
"settingsScreenLoading": "Einstellungen werden geladen...",
"settingsScreenTitle": "Einstellungen", "settingsScreenTitle": "Einstellungen",
"settingsScreenAccountSectionTitle": "Dein Account", "settingsScreenAccountSectionTitle": "Dein Account",
"settingsScreenAccountSectionCreationDateLabel": "Account-Erstellung", "settingsScreenAccountSectionCreationDateLabel": "Account-Erstellung",
@ -99,12 +101,21 @@
"settingsScreenDeleteAccountConfirmLabel": "Account jetzt löschen", "settingsScreenDeleteAccountConfirmLabel": "Account jetzt löschen",
"settingsScreenGeneralSectionTitle": "General", "settingsScreenGeneralSectionTitle": "General",
"settingsScreenGeneralSectionQualityLabel": "Qualität", "settingsScreenGeneralSectionQualityLabel": "Qualität",
"settingsScreenResetHelpSheetsLabel": "Hilf-Sheets zurücksetzen",
"settingsScreenResetHelpSheetsResetSuccessfully": "Hilf-Sheets wurden zurückgesetzt.",
"calendarScreenTitle": "Kalendar", "calendarScreenTitle": "Kalendar",
"timelineScreenTitle": "Timeline", "timelineScreenTitle": "Timeline",
"timelineScreenHelpSheetTitle": "Willkommen zu deiner Timeline",
"timelineHelpContentDescription": "Deine Erfahrungen werden in chronologischer Reihenfolge präsentiert. Du kannst nach links oder rechts wischen um durch deine Erinnerungen von deinem aktuellen Tag zu gehen. Du kannst auch nach oben und unten wischen um durch die verschiedenen Tage deiner Erinnerungen zu gehen. Deine Timeline springt automatisch zur nächsten Erinnerung nach einiger Zeit.",
"timelineHelpContentHoldDownExplanation": "Halte gedrückt um deine Timeline zu pausieren.",
"timelineHelpContentTapTwiceExplanation": "Tippe zweimal um mehr Details über deine Erinnerung zu erfahren,",
"helpSheetDontShowAgain": "Nicht mehr anzeigen",
"enumMapping_ResolutionPreset_low": "Niedrig", "enumMapping_ResolutionPreset_low": "Niedrig",

View File

@ -5,6 +5,7 @@
"generalCancelButtonLabel": "Cancel", "generalCancelButtonLabel": "Cancel",
"generalContinueButtonLabel": "Continue", "generalContinueButtonLabel": "Continue",
"generalUnderstoodButtonLabel": "OK", "generalUnderstoodButtonLabel": "OK",
"generalLoadingLabel": "Loading...",
"welcomeScreenDescription": "Find out what you did all the days and unlock moments you completely forgot!", "welcomeScreenDescription": "Find out what you did all the days and unlock moments you completely forgot!",
"welcomeScreenSubtitle": "What did I do today?", "welcomeScreenSubtitle": "What did I do today?",
@ -13,22 +14,24 @@
"welcomeScreenViewMemoriesGuideDescription": "...and relieve your best moments at the end of the day!", "welcomeScreenViewMemoriesGuideDescription": "...and relieve your best moments at the end of the day!",
"welcomeScreenGetStartedLabel": "Get started", "welcomeScreenGetStartedLabel": "Get started",
"welcomeScreenMemoriesDataMemoriesAmount": "You have created {memoriesAmount} memories", "welcomeScreenMemoriesDataMemoriesAmount": "You have created {count,plural, =0{no memories yet}} =1{one memory} other{{count} memories}}",
"@welcomeScreenMemoriesDataMemoriesAmount": { "@welcomeScreenMemoriesDataMemoriesAmount": {
"placeholders": { "placeholders": {
"memoriesAmount": { "count": {
"type": "int" "type": "int"
} }
} }
}, },
"welcomeScreenMemoriesDataMemoriesSpanning": "Spanning from {startDateFormatted} to {endDateFormatted}", "welcomeScreenMemoriesDataMemoriesSpanning": "Spanning from {startDate} to {endDate}",
"@welcomeScreenMemoriesDataMemoriesSpanning": { "@welcomeScreenMemoriesDataMemoriesSpanning": {
"placeholders": { "placeholders": {
"startDateFormatted": { "startDate": {
"type": "String" "type": "DateTime",
"format": "yMMMd"
}, },
"endDateFormatted": { "endDate": {
"type": "String" "type": "DateTime",
"format": "yMMMd"
} }
} }
}, },
@ -37,8 +40,6 @@
"serverLoadingScreenDescription": "We are loading your data", "serverLoadingScreenDescription": "We are loading your data",
"mainScreenLoadingCamera": "Loading camera",
"mainScreenActionsTorchButton": "Torch", "mainScreenActionsTorchButton": "Torch",
"mainScreenUploadSuccess": "Uploaded successfully!", "mainScreenUploadSuccess": "Uploaded successfully!",
@ -85,13 +86,13 @@
"memorySheetUpdateMemoryMakePublic": "Make Public", "memorySheetUpdateMemoryMakePublic": "Make Public",
"memorySheetUpdateMemoryMakePrivate": "Make Private", "memorySheetUpdateMemoryMakePrivate": "Make Private",
"memorySheetDeleteMemory": "Delete Memory", "memorySheetDeleteMemory": "Delete Memory",
"memorySheetCreatedAtDataKey": "Created at: {creationTimeFormatted}", "memorySheetCreatedAtDataKey": "Created at: {creationTime}",
"@memorySheetCreatedAtDataKey": { "@memorySheetCreatedAtDataKey": {
"description": "Formatted date when the memory was created", "description": "Formatted date when the memory was created",
"placeholders": { "placeholders": {
"creationTimeFormatted": { "creationTime": {
"type": "String", "type": "DateTime",
"example": "8am" "format": "jms"
} }
} }
}, },
@ -102,7 +103,6 @@
"memoryMapScreenExpandForMoreDescription": "Expand for more details", "memoryMapScreenExpandForMoreDescription": "Expand for more details",
"memoryMapScreenOpenNavigation": "Open Navigation", "memoryMapScreenOpenNavigation": "Open Navigation",
"memoryMapScreenValuesAddressLabel": "Estimated Address", "memoryMapScreenValuesAddressLabel": "Estimated Address",
"memoryMapScreenValuesAddressIsLoading": "Loading address...",
"memoryMapScreenValuesAddressIsUnavailable": "Address not available", "memoryMapScreenValuesAddressIsUnavailable": "Address not available",
"memoryMapScreenValuesLatitudeLabel": "Latitude", "memoryMapScreenValuesLatitudeLabel": "Latitude",
"memoryMapScreenValuesLongitudeLabel": "Longitude", "memoryMapScreenValuesLongitudeLabel": "Longitude",
@ -141,7 +141,6 @@
"emptyScreenCreateMemory": "Create a Memory", "emptyScreenCreateMemory": "Create a Memory",
"settingsScreenLoading": "Loading Settings...",
"settingsScreenTitle": "Settings", "settingsScreenTitle": "Settings",
"settingsScreenAccountSectionTitle": "Your Account", "settingsScreenAccountSectionTitle": "Your Account",
"settingsScreenAccountSectionCreationDateLabel": "Account creation", "settingsScreenAccountSectionCreationDateLabel": "Account creation",
@ -161,8 +160,8 @@
"timelineScreenTitle": "Timeline", "timelineScreenTitle": "Timeline",
"timelineScreenHelpSheetTitle": "Welcome to your timeline", "timelineScreenHelpSheetTitle": "Welcome to your timeline",
"timelineHelpContentDescription": "Your memories are displayed in chronological order. You can swipe left or right to navigate through the memories of the given day. You can also swipe up or down to navigate through the days of your memories. The timeline automatically progresses through your memories.", "timelineHelpContentDescription": "Your memories are presented in chronological order. You can swipe left or right to navigate through the memories of the current day. You can also swipe up or down to navigate through the days of your memories. Your timeline automatically jumps to your next memory after some time.",
"timelineHelpContentHoldDownExplanation": "Hold down to pause the timeline from progressing to your next memory.", "timelineHelpContentHoldDownExplanation": "Hold down to pause your timeline.",
"timelineHelpContentTapTwiceExplanation": "Tap twice to see more details about your memory.", "timelineHelpContentTapTwiceExplanation": "Tap twice to see more details about your memory.",

View File

@ -1,6 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:intl/intl.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:quid_faciam_hodie/constants/spacing.dart'; import 'package:quid_faciam_hodie/constants/spacing.dart';
import 'package:quid_faciam_hodie/models/memories.dart'; import 'package:quid_faciam_hodie/models/memories.dart';
@ -28,8 +27,8 @@ class MemoriesData extends StatelessWidget {
const SizedBox(height: SMALL_SPACE), const SizedBox(height: SMALL_SPACE),
Text( Text(
localizations.welcomeScreenMemoriesDataMemoriesSpanning( localizations.welcomeScreenMemoriesDataMemoriesSpanning(
DateFormat.yMMMd().format(memories.memories.last.creationDate), memories.memories.last.creationDate,
DateFormat.yMMMd().format(memories.memories.first.creationDate), memories.memories.first.creationDate,
), ),
style: getBodyTextTextStyle(context), style: getBodyTextTextStyle(context),
), ),

View File

@ -323,7 +323,7 @@ class _MainScreenState extends AuthRequiredState<MainScreen> with Loadable {
PlatformCircularProgressIndicator(), PlatformCircularProgressIndicator(),
const SizedBox(height: MEDIUM_SPACE), const SizedBox(height: MEDIUM_SPACE),
Text( Text(
localizations.mainScreenLoadingCamera, localizations.generalLoadingLabel,
style: platformThemeData( style: platformThemeData(
context, context,
material: (data) => data.textTheme.bodyText1, material: (data) => data.textTheme.bodyText1,

View File

@ -106,7 +106,7 @@ class _MemoryMapScreenState extends State<MemoryMapScreen> with Loadable {
title: localizations.memoryMapScreenValuesAddressLabel, title: localizations.memoryMapScreenValuesAddressLabel,
value: () { value: () {
if (isLoading) { if (isLoading) {
return localizations.memoryMapScreenValuesAddressIsLoading; return localizations.generalLoadingLabel;
} }
if (address == null) { if (address == null) {

View File

@ -138,7 +138,7 @@ class _SettingsScreenState extends AuthRequiredState<SettingsScreen>
children: <Widget>[ children: <Widget>[
PlatformCircularProgressIndicator(), PlatformCircularProgressIndicator(),
const SizedBox(height: MEDIUM_SPACE), const SizedBox(height: MEDIUM_SPACE),
Text(localizations.settingsScreenLoading), Text(localizations.generalLoadingLabel),
], ],
), ),
) )

View File

@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:gallery_saver/gallery_saver.dart'; import 'package:gallery_saver/gallery_saver.dart';
import 'package:intl/intl.dart';
import 'package:quid_faciam_hodie/constants/spacing.dart'; import 'package:quid_faciam_hodie/constants/spacing.dart';
import 'package:quid_faciam_hodie/enums.dart'; import 'package:quid_faciam_hodie/enums.dart';
import 'package:quid_faciam_hodie/extensions/snackbar.dart'; import 'package:quid_faciam_hodie/extensions/snackbar.dart';
@ -236,10 +235,8 @@ class _MemorySheetState extends State<MemorySheet> with Loadable {
const SizedBox(width: TINY_SPACE), const SizedBox(width: TINY_SPACE),
Text( Text(
localizations.memorySheetCreatedAtDataKey( localizations.memorySheetCreatedAtDataKey(
DateFormat.jms().format(
widget.memory.creationDate, widget.memory.creationDate,
), ),
),
style: getBodyTextTextStyle(context), style: getBodyTextTextStyle(context),
), ),
], ],