From 35419afba8db10a22b0a072a9cb91e6c865e065c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 27 Sep 2024 15:50:28 +0100 Subject: [PATCH 1/4] fix(web): fix localization of overview headers --- web/src/components/overview/OverviewPage.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/components/overview/OverviewPage.tsx b/web/src/components/overview/OverviewPage.tsx index 4301d3ff1..7e992ff7a 100644 --- a/web/src/components/overview/OverviewPage.tsx +++ b/web/src/components/overview/OverviewPage.tsx @@ -44,12 +44,6 @@ import { _ } from "~/i18n"; import { useAllIssues } from "~/queries/issues"; import { IssuesList as IssuesListType, IssueSeverity } from "~/types/issues"; -const SCOPE_HEADERS = { - users: _("Users"), - storage: _("Storage"), - software: _("Software"), -}; - const ReadyForInstallation = () => (
@@ -59,6 +53,12 @@ const ReadyForInstallation = () => ( ); const IssuesList = ({ issues }: { issues: IssuesListType }) => { + const scopeHeaders = { + users: _("Users"), + storage: _("Storage"), + software: _("Software"), + }; + const { issues: issuesByScope } = issues; const list = []; Object.entries(issuesByScope).forEach(([scope, issues], idx) => { @@ -68,7 +68,7 @@ const IssuesList = ({ issues }: { issues: IssuesListType }) => { const link = ( @@ -109,7 +109,7 @@ const ResultSection = () => { const OverviewSection = () => ( Date: Fri, 27 Sep 2024 15:55:18 +0100 Subject: [PATCH 2/4] doc(web): update changes file --- web/package/agama-web-ui.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 36fbf9539..2d361fbde 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 27 14:54:46 UTC 2024 - Imobach Gonzalez Sosa + +- Translate overview page headers (gh#agama-project/agama#1629). + ------------------------------------------------------------------- Fri Sep 27 13:00:05 UTC 2024 - Imobach Gonzalez Sosa From 5626febf87c3faa7839abeee9333267b5e8b90c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 27 Sep 2024 16:04:41 +0100 Subject: [PATCH 3/4] fix(web): translate "No visible Wi-Fi..." message --- web/src/components/network/WifiNetworksListPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/network/WifiNetworksListPage.tsx b/web/src/components/network/WifiNetworksListPage.tsx index ce0dec8c4..68b4d30f5 100644 --- a/web/src/components/network/WifiNetworksListPage.tsx +++ b/web/src/components/network/WifiNetworksListPage.tsx @@ -264,7 +264,7 @@ function WifiNetworksListPage() { {networks.length === 0 ? ( - + ) : ( // @ts-expect-error: related to https://github.com/patternfly/patternfly-react/issues/9823 Date: Fri, 27 Sep 2024 16:05:28 +0100 Subject: [PATCH 4/4] doc(web): update changes file --- web/package/agama-web-ui.changes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 2d361fbde..65f79273e 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Fri Sep 27 14:54:46 UTC 2024 - Imobach Gonzalez Sosa -- Translate overview page headers (gh#agama-project/agama#1629). +- Translate overview page headers and a missing text in the + networking page (gh#agama-project/agama#1629). ------------------------------------------------------------------- Fri Sep 27 13:00:05 UTC 2024 - Imobach Gonzalez Sosa