π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
tr
Manav Rathieacc364498e9
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 27debc5d59..54406db091 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -96,8 +96,15 @@"exit_fullscreen": "Exit fullscreen","go_fullscreen": "Go fullscreen","zoom": "Zoom",+ "play": "Play",+ "pause": "Pause","previous": "Previous","next": "Next",+ "video_seek": "Video seek",+ "quality": "Quality",+ "auto": "Auto",+ "original": "Original",+ "speed": "Speed","title_photos": "Ente Photos","title_auth": "Ente Auth","title_accounts": "Ente Accounts",diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsxindex 2e1465f45f..d9a091794e 100644--- a/web/packages/gallery/components/viewer/FileViewer.tsx+++ b/web/packages/gallery/components/viewer/FileViewer.tsx@@ -28,7 +28,7 @@ import { useIsSmallWidth } from "ente-base/components/utils/hooks";import { type ModalVisibilityProps } from "ente-base/components/utils/modal";import { useBaseContext } from "ente-base/context";import { lowercaseExtension } from "ente-base/file-name";-import { formattedListJoin, pt, ut } from "ente-base/i18n";+import { formattedListJoin, ut } from "ente-base/i18n";import type { LocalUser } from "ente-base/local-user";import log from "ente-base/log";import {@@ -1155,7 +1155,7 @@ const Shortcuts: React.FC<ShortcutsProps> = ({shortcut={// TODO(HLS):shouldUsePlayerV2()- ? `${formattedListJoin([ut("β"), ut("β")])} (Option/Alt)`+ ? `${formattedListJoin([ut("β"), ut("β")])} ${ut("(Option/Alt)")}`: formattedListJoin([ut("β"), ut("β")])}/>@@ -1163,7 +1163,7 @@ const Shortcuts: React.FC<ShortcutsProps> = ({/* TODO(HLS): */shouldUsePlayerV2() && (<Shortcut- action={pt("Video seek")}+ action={t("video_seek")}shortcut={formattedListJoin([ut("β"), ut("β")])}/>)@@ -1188,7 +1188,7 @@ const Shortcuts: React.FC<ShortcutsProps> = ({/* TODO(HLS): */shouldUsePlayerV2() && (<Shortcut- action={pt("Play, Pause")}+ action={formattedListJoin([t("play"), t("pause")])}shortcut={ut("Space")}/>)diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex 2f953e7e88..ba1cd986cb 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -1,4 +1,3 @@-import { pt } from "ente-base/i18n";import log from "ente-base/log";import { albumsAppOrigin } from "ente-base/origins";import type { EnteFile } from "ente-media/file";@@ -563,8 +562,8 @@ export class FileViewerPhotoSwipe {const value =intendedVideoQualityForFileID(fileID) == "auto" &&videoPlaylistURL- ? pt("Auto")- : pt("Original");+ ? t("auto")+ : t("original");// Check first to avoid spurious updates.if (qualityMenu.value != value) {// Set a flag to avoid infinite update loop.@@ -1511,9 +1510,6 @@ const videoHTML = (url: string, mediaControllerID: string) => `* To make these functional, the `media-control-bar` requires the* `mediacontroller="${mediaControllerID}"` attribute.*- * - TODO(HLS): Add translations for all the pts- * - TODO(HLS): Add "Toggle play", "Seek forward, backward" to list of shortcuts- ** Notes:** - Examples: https://media-chrome.mux.dev/examples/vanilla/@@ -1543,17 +1539,17 @@ const hlsVideoControlsHTML = () => `<div><media-settings-menu id="ente-settings-menu" hidden anchor="ente-settings-menu-btn"><media-settings-menu-item>- ${pt("Quality")}+ ${t("quality")}<media-chrome-menu id="ente-quality-menu" slot="submenu" hidden>- <div slot="title">${pt("Quality")}</div>- <media-chrome-menu-item type="radio">${pt("Auto")}</media-chrome-menu-item>- <media-chrome-menu-item type="radio">${pt("Original")}</media-chrome-menu-item>+ <div slot="title">${t("quality")}</div>+ <media-chrome-menu-item type="radio">${t("auto")}</media-chrome-menu-item>+ <media-chrome-menu-item type="radio">${t("original")}</media-chrome-menu-item></media-chrome-menu></media-settings-menu-item><media-settings-menu-item>- ${pt("Speed")}+ ${t("speed")}<media-playback-rate-menu slot="submenu" hidden>- <div slot="title">${pt("Speed")}</div>+ <div slot="title">${t("speed")}</div></media-playback-rate-menu></media-settings-menu-item></media-settings-menu>