Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

i18n

Manav Rathi769b3ab21f16
diff --git a/web/apps/photos/src/services/searchService.ts b/web/apps/photos/src/services/searchService.ts
index 1be9fa01fd..3156652a38 100644
--- a/web/apps/photos/src/services/searchService.ts
+++ b/web/apps/photos/src/services/searchService.ts
@@ -194,8 +194,7 @@ export async function getMLStatusSuggestion(): Promise<Suggestion> {
label = t("indexing_photos", status);
break;
case "fetching":
- // label = pt("Fetching"indexing_photos", status);
- label = `Fetching indexes (${status.nSyncedFiles} / ${status.nTotalFiles})`;
+ label = t("indexing_fetching", status);
break;
case "clustering":
label = t("indexing_people", status);
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 9a5114934b..4df6277261 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -232,6 +232,7 @@
"PEOPLE": "People",
"indexing_scheduled": "Indexing is scheduled...",
"indexing_photos": "Indexing photos ({{nSyncedFiles, number}} / {{nTotalFiles, number}})",
+ "indexing_fetching": "Fetching indexes ({{nSyncedFiles, number}} / {{nTotalFiles, number}})",
"indexing_people": "Indexing people in {{nSyncedFiles, number}} photos...",
"indexing_done": "Indexed {{nSyncedFiles, number}} photos",
"UNIDENTIFIED_FACES": "Unidentified faces",
@@ -484,6 +485,7 @@
"indexing": "Indexing",
"processed": "Processed",
"indexing_status_running": "Running",
+ "indexing_status_fetching": "Fetching",
"indexing_status_scheduled": "Scheduled",
"indexing_status_done": "Done",
"ml_search_disable": "Disable machine learning",
diff --git a/web/packages/new/photos/components/MLSettings.tsx b/web/packages/new/photos/components/MLSettings.tsx
index 87613912d7..55fc07c466 100644
--- a/web/packages/new/photos/components/MLSettings.tsx
+++ b/web/packages/new/photos/components/MLSettings.tsx
@@ -1,7 +1,6 @@
import { EnteDrawer } from "@/base/components/EnteDrawer";
import { MenuItemGroup } from "@/base/components/Menu";
import { Titlebar } from "@/base/components/Titlebar";
-import { pt } from "@/base/i18n";
import log from "@/base/log";
import {
disableML,
@@ -301,17 +300,17 @@ const ManageML: React.FC<ManageMLProps> = ({
let status: string;
switch (phase) {
case "scheduled":
- status = "scheduled";
+ status = t("indexing_status_scheduled");
break;
case "fetching":
- status = "fetching";
+ status = t("indexing_status_fetching");
break;
case "indexing":
- status = "running";
+ status = t("indexing_status_running");
break;
// TODO: Clustering
default:
- status = "done";
+ status = t("indexing_status_done");
break;
}
const processed = `${nSyncedFiles} / ${nTotalFiles}`;
@@ -355,11 +354,7 @@ const ManageML: React.FC<ManageMLProps> = ({
<Typography color="text.faint">
{t("indexing")}
</Typography>
- <Typography>
- {status == "fetching"
- ? pt("Fetching")
- : t("indexing_status", { context: status })}
- </Typography>
+ <Typography>{status}</Typography>
</Stack>
<Divider sx={{ marginInlineStart: 2 }} />
<Stack