diff --git a/.github/workflows/weblate-update-pot.yml b/.github/workflows/weblate-update-pot.yml
index 6d4db70d63..8402c76d1e 100644
--- a/.github/workflows/weblate-update-pot.yml
+++ b/.github/workflows/weblate-update-pot.yml
@@ -35,13 +35,11 @@ jobs:
# TODO: use a shared script for this
run: |
cd agama/web
- xgettext --default-domain=agama --output=- --language=C --keyword= \
- --keyword=_:1,1t --keyword=_:1c,2,2t --keyword=C_:1c,2 \
- --keyword=N_ --keyword=NC_:1c,2 --foreign-user \
- --copyright-holder="SuSE Linux Products GmbH, Nuernberg" \
+ xgettext --default-domain=agama --output=agama.pot --language=JavaScript --keyword= \
+ --keyword=_:1 --keyword=N_:1 --keyword=n_:1,2,3t --keyword=Nn_:1,2,3t \
+ --foreign-user --copyright-holder="SuSE Linux Products GmbH, Nuernberg" \
--from-code=UTF-8 --add-comments=TRANSLATORS --sort-by-file \
- $(find . ! -name cockpit.js -name '*.js' -o ! -name '*.test.jsx' -name '*.jsx') | \
- sed '/^#/ s/, c-format//' > agama.pot
+ $(find . ! -name cockpit.js -name '*.js' -o ! -name '*.test.jsx' -name '*.jsx')
msgfmt --statistics agama.pot
- name: Validate the generated POT file
diff --git a/web/src/components/core/About.jsx b/web/src/components/core/About.jsx
index 65649a27ef..e4cf5efe3b 100644
--- a/web/src/components/core/About.jsx
+++ b/web/src/components/core/About.jsx
@@ -23,6 +23,9 @@ import React, { useState } from "react";
import { Button, Text } from "@patternfly/react-core";
import { Icon } from "~/components/layout";
import { Popup } from "~/components/core";
+import { _ } from "~/i18n";
+
+import cockpit from "~/lib/cockpit";
export default function About() {
const [isOpen, setIsOpen] = useState(false);
@@ -37,23 +40,35 @@ export default function About() {
icon={
- There are some reported issues. Please, check
- If you continue, partitions on your hard disk will be modified according to the provided - installation settings. + { _(`If you continue, partitions on your hard disk will be modified +according to the provided installation settings.`) }
- Please, cancel and check the settings if you are unsure. + {_("Please, cancel and check the settings if you are unsure.")}
- Some problems were found when trying to start the installation. - Please, have a look to the reported errors and try again. + {_(`Some problems were found when trying to start the installation. +Please, have a look to the reported errors and try again.`)}