From 01178657a9d32d93312c5e862707a0a62a0527d3 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Fri, 4 Mar 2022 18:11:39 +0900 Subject: [PATCH] l10n --- lib/l10n/app_en.arb | 2 +- lib/l10n/app_fr.arb | 17 ++++++++- lib/l10n/app_ko.arb | 15 ++++++++ lib/model/settings/enums/enums.dart | 2 +- lib/model/settings/enums/video_controls.dart | 4 +- .../viewer/overlay/video/controls.dart | 4 +- untranslated.json | 38 ++----------------- 7 files changed, 40 insertions(+), 42 deletions(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 46f340203..1313bd29c 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -154,10 +154,10 @@ "videoLoopModeShortOnly": "Short videos only", "videoLoopModeAlways": "Always", - "videoControlsNone": "None", "videoControlsPlay": "Play", "videoControlsPlaySeek": "Play & seek", "videoControlsPlayOutside": "Open with other player", + "videoControlsNone": "None", "mapStyleGoogleNormal": "Google Maps", "mapStyleGoogleHybrid": "Google Maps (Hybrid)", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 47da9ee1e..e507f20cc 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -68,6 +68,8 @@ "entryActionRemoveFavourite": "Retirer des favoris", "videoActionCaptureFrame": "Capturer l’image", + "videoActionMute": "Couper le son", + "videoActionUnmute": "Rétablir le son", "videoActionPause": "Pause", "videoActionPlay": "Lire", "videoActionReplay10": "Reculer de 10 secondes", @@ -112,6 +114,11 @@ "videoLoopModeShortOnly": "Courtes vidéos seulement", "videoLoopModeAlways": "Toujours", + "videoControlsPlay": "Lecture", + "videoControlsPlaySeek": "Lecture & déplacement", + "videoControlsPlayOutside": "Ouvrir avec un autre lecteur", + "videoControlsNone": "Aucun", + "mapStyleGoogleNormal": "Google Maps", "mapStyleGoogleHybrid": "Google Maps (Satellite)", "mapStyleGoogleTerrain": "Google Maps (Relief)", @@ -213,7 +220,7 @@ "removeEntryMetadataDialogTitle": "Retrait de métadonnées", "removeEntryMetadataDialogMore": "Voir plus", - "removeEntryMetadataMotionPhotoXmpWarningDialogMessage": "Les métadonnées XMP sont nécessaires pour jouer la vidéo d’une photo animée.\n\nVoulez-vous vraiment les supprimer ?", + "removeEntryMetadataMotionPhotoXmpWarningDialogMessage": "Les métadonnées XMP sont nécessaires pour lire la vidéo d’une photo animée.\n\nVoulez-vous vraiment les supprimer ?", "videoSpeedDialogLabel": "Vitesse de lecture", @@ -431,6 +438,7 @@ "settingsViewerShowInformation": "Afficher les détails", "settingsViewerShowInformationSubtitle": "Afficher les titre, date, lieu, etc.", "settingsViewerShowShootingDetails": "Afficher les détails de prise de vue", + "settingsViewerShowOverlayThumbnails": "Afficher les vignettes", "settingsViewerEnableOverlayBlurEffect": "Effets de flou", "settingsVideoPageTitle": "Réglages vidéo", @@ -456,6 +464,13 @@ "settingsSubtitleThemeTextAlignmentCenter": "centré", "settingsSubtitleThemeTextAlignmentRight": "droite", + "settingsVideoControlsTile": "Contrôles", + "settingsVideoControlsTitle": "Contrôles", + "settingsVideoButtonsTile": "Boutons", + "settingsVideoButtonsTitle": "Boutons", + "settingsVideoGestureDoubleTapTogglePlay": "Appuyer deux fois pour lire ou mettre en pause", + "settingsVideoGestureSideDoubleTapSeek": "Appuyer deux fois sur les bords de l’écran pour reculer ou avancer", + "settingsSectionPrivacy": "Confidentialité", "settingsAllowInstalledAppAccess": "Autoriser l’accès à l’inventaire des apps", "settingsAllowInstalledAppAccessSubtitle": "Pour un affichage amélioré des albums", diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index 8cf6068ca..e3a205e55 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -68,6 +68,8 @@ "entryActionRemoveFavourite": "즐겨찾기에서 삭제", "videoActionCaptureFrame": "프레임 캡처", + "videoActionMute": "음소거", + "videoActionUnmute": "음소거 해제", "videoActionPause": "일시정지", "videoActionPlay": "재생", "videoActionReplay10": "10초 뒤로 탐색", @@ -112,6 +114,11 @@ "videoLoopModeShortOnly": "짧은 동영상만 반복", "videoLoopModeAlways": "항상 반복", + "videoControlsPlay": "재생", + "videoControlsPlaySeek": "재생 및 탐색", + "videoControlsPlayOutside": "다른 앱에서 열기", + "videoControlsNone": "없음", + "mapStyleGoogleNormal": "구글 지도", "mapStyleGoogleHybrid": "구글 지도 (위성)", "mapStyleGoogleTerrain": "구글 지도 (지형)", @@ -431,6 +438,7 @@ "settingsViewerShowInformation": "상세 정보 표시", "settingsViewerShowInformationSubtitle": "제목, 날짜, 장소 등 표시", "settingsViewerShowShootingDetails": "촬영 정보 표시", + "settingsViewerShowOverlayThumbnails": "섬네일 표시", "settingsViewerEnableOverlayBlurEffect": "흐림 효과", "settingsVideoPageTitle": "동영상 설정", @@ -456,6 +464,13 @@ "settingsSubtitleThemeTextAlignmentCenter": "가운데", "settingsSubtitleThemeTextAlignmentRight": "오른쪽", + "settingsVideoControlsTile": "제어", + "settingsVideoControlsTitle": "제어", + "settingsVideoButtonsTile": "버튼", + "settingsVideoButtonsTitle": "버튼", + "settingsVideoGestureDoubleTapTogglePlay": "두 번 탭해서 재생이나 일시정지하기", + "settingsVideoGestureSideDoubleTapSeek": "화면 측면에서 두 번 탭해서 탐색하기", + "settingsSectionPrivacy": "개인정보 보호", "settingsAllowInstalledAppAccess": "설치된 앱의 목록 접근 허용", "settingsAllowInstalledAppAccessSubtitle": "앨범 표시 개선을 위해", diff --git a/lib/model/settings/enums/enums.dart b/lib/model/settings/enums/enums.dart index c4cef7957..f5100f413 100644 --- a/lib/model/settings/enums/enums.dart +++ b/lib/model/settings/enums/enums.dart @@ -19,4 +19,4 @@ enum UnitSystem { metric, imperial } enum VideoLoopMode { never, shortOnly, always } -enum VideoControls { none, play, playSeek, playOutside } +enum VideoControls { play, playSeek, playOutside, none } diff --git a/lib/model/settings/enums/video_controls.dart b/lib/model/settings/enums/video_controls.dart index 48c59b577..6f9979f71 100644 --- a/lib/model/settings/enums/video_controls.dart +++ b/lib/model/settings/enums/video_controls.dart @@ -6,14 +6,14 @@ import 'enums.dart'; extension ExtraVideoControls on VideoControls { String getName(BuildContext context) { switch (this) { - case VideoControls.none: - return context.l10n.videoControlsNone; case VideoControls.play: return context.l10n.videoControlsPlay; case VideoControls.playSeek: return context.l10n.videoControlsPlaySeek; case VideoControls.playOutside: return context.l10n.videoControlsPlayOutside; + case VideoControls.none: + return context.l10n.videoControlsNone; } } } diff --git a/lib/widgets/viewer/overlay/video/controls.dart b/lib/widgets/viewer/overlay/video/controls.dart index 7ecb9b309..eab6a7be9 100644 --- a/lib/widgets/viewer/overlay/video/controls.dart +++ b/lib/widgets/viewer/overlay/video/controls.dart @@ -28,8 +28,6 @@ class VideoControlRow extends StatelessWidget { selector: (context, s) => s.videoControls, builder: (context, videoControls, child) { switch (videoControls) { - case VideoControls.none: - return const SizedBox(); case VideoControls.play: return Padding( padding: const EdgeInsetsDirectional.only(start: padding), @@ -70,6 +68,8 @@ class VideoControlRow extends StatelessWidget { padding: const EdgeInsetsDirectional.only(start: padding), child: _buildIconButton(context, EntryAction.open, enabled: !trashed), ); + case VideoControls.none: + return const SizedBox(); } }, ); diff --git a/untranslated.json b/untranslated.json index 5fd972ea9..aa5b43ebd 100644 --- a/untranslated.json +++ b/untranslated.json @@ -3,10 +3,10 @@ "entryActionConvert", "videoActionMute", "videoActionUnmute", - "videoControlsNone", "videoControlsPlay", "videoControlsPlaySeek", "videoControlsPlayOutside", + "videoControlsNone", "settingsViewerShowOverlayThumbnails", "settingsVideoControlsTile", "settingsVideoControlsTitle", @@ -19,26 +19,10 @@ "es": [ "videoActionMute", "videoActionUnmute", - "videoControlsNone", "videoControlsPlay", "videoControlsPlaySeek", "videoControlsPlayOutside", - "settingsViewerShowOverlayThumbnails", - "settingsVideoControlsTile", - "settingsVideoControlsTitle", - "settingsVideoButtonsTile", - "settingsVideoButtonsTitle", - "settingsVideoGestureDoubleTapTogglePlay", - "settingsVideoGestureSideDoubleTapSeek" - ], - - "fr": [ - "videoActionMute", - "videoActionUnmute", "videoControlsNone", - "videoControlsPlay", - "videoControlsPlaySeek", - "videoControlsPlayOutside", "settingsViewerShowOverlayThumbnails", "settingsVideoControlsTile", "settingsVideoControlsTitle", @@ -51,26 +35,10 @@ "id": [ "videoActionMute", "videoActionUnmute", - "videoControlsNone", "videoControlsPlay", "videoControlsPlaySeek", "videoControlsPlayOutside", - "settingsViewerShowOverlayThumbnails", - "settingsVideoControlsTile", - "settingsVideoControlsTitle", - "settingsVideoButtonsTile", - "settingsVideoButtonsTitle", - "settingsVideoGestureDoubleTapTogglePlay", - "settingsVideoGestureSideDoubleTapSeek" - ], - - "ko": [ - "videoActionMute", - "videoActionUnmute", "videoControlsNone", - "videoControlsPlay", - "videoControlsPlaySeek", - "videoControlsPlayOutside", "settingsViewerShowOverlayThumbnails", "settingsVideoControlsTile", "settingsVideoControlsTitle", @@ -83,10 +51,10 @@ "pt": [ "videoActionMute", "videoActionUnmute", - "videoControlsNone", "videoControlsPlay", "videoControlsPlaySeek", "videoControlsPlayOutside", + "videoControlsNone", "settingsViewerShowOverlayThumbnails", "settingsVideoControlsTile", "settingsVideoControlsTitle", @@ -100,10 +68,10 @@ "entryActionConvert", "videoActionMute", "videoActionUnmute", - "videoControlsNone", "videoControlsPlay", "videoControlsPlaySeek", "videoControlsPlayOutside", + "videoControlsNone", "settingsViewerShowOverlayThumbnails", "settingsVideoControlsTile", "settingsVideoControlsTitle",