diff --git a/web/Makefile b/web/Makefile index 7ac51ba276..07b3cb7f84 100644 --- a/web/Makefile +++ b/web/Makefile @@ -177,15 +177,15 @@ bots: # when you start a new project, use the latest release, and update it from time to time test/common: flock Makefile sh -ec '\ - git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 307; \ + git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 309; \ git checkout --force FETCH_HEAD -- test/common; \ git reset test/common' # checkout Cockpit's PF/React/build library; again this has no API stability guarantee, so check out a stable tag -# TODO: replace the commit with the tag 307 once it is released, which includes cockpit.js as a ES6 module in lib/. +# TODO: replace the commit with the tag 309 once it is released, which includes cockpit.js as a ES6 module in lib/. $(LIB_TEST): flock Makefile sh -ec '\ - git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 307; \ + git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 309; \ git checkout --force FETCH_HEAD -- ../pkg/lib; \ git reset -- ../pkg/lib' mv ../pkg/lib src/ && rmdir ../pkg diff --git a/web/package/cockpit-agama.changes b/web/package/cockpit-agama.changes index 11aa800032..6769afa843 100644 --- a/web/package/cockpit-agama.changes +++ b/web/package/cockpit-agama.changes @@ -1,7 +1,12 @@ +------------------------------------------------------------------- +Mon Feb 12 11:53:29 UTC 2024 - Imobach Gonzalez Sosa + +- Update cockpit.js to version 309 (gh#openSUSE/agama#1038). + ------------------------------------------------------------------- Mon Jan 29 14:34:37 UTC 2024 - Knut Anderssen -- Partly replacing the NetworkManager client by the agama one +- Partly replacing the NetworkManager client by the Agama one (gh#openSUSE/agama#1006). ------------------------------------------------------------------- @@ -9,7 +14,7 @@ Fri Jan 19 09:34:26 UTC 2024 - Nagu - Storage UI: show mount point selector only when the user can change it. (gh#openSUSE/agama#1007) - + ------------------------------------------------------------------- Thu Jan 18 08:33:52 UTC 2024 - Ancor Gonzalez Sosa diff --git a/web/src/lib/cockpit.js b/web/src/lib/cockpit.js index 34873a73b0..bef8e61033 100644 --- a/web/src/lib/cockpit.js +++ b/web/src/lib/cockpit.js @@ -3709,6 +3709,7 @@ function factory() { cockpit.language = "en"; cockpit.language_direction = "ltr"; + const test_l10n = window.localStorage.test_l10n; cockpit.locale = function locale(po) { let lang = cockpit.language; @@ -3796,8 +3797,12 @@ function factory() { if (po_data) { const translated = po_data[key]; if (translated?.[1]) - return translated[1]; + string = translated[1]; } + + if (test_l10n === 'true') + return "»" + string + "«"; + return string; };