From 9b67923662ba1f0dd7db3f58ab9e5d585e859593 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Thu, 14 Nov 2024 11:03:29 +0100 Subject: [PATCH 1/2] fix(build): Fix `i18n` script to find msgids inside `_t` methods with multiline mapping dictionaries as second parameter. --- src/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n.js b/src/i18n.js index 3bdcdde72..90d7f6431 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -27,7 +27,7 @@ msgstr "" } console.log("reading file: " + filepath); const file = fs.readFileSync(filepath, { encoding: "utf-8" }); - const re = /_t\((("[^"]+")|('[^']+'))(,\W{.*})?\)?\)/g; + const re = /_t\((("[^"]+")|('[^']+'))(,\W{[^}]*})?\)/g; let match = re.exec(file); while (match) { if (match) { From 16d782e5a42d8ef6658223f8ad7fbaf0b1c387d3 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Thu, 14 Nov 2024 11:03:41 +0100 Subject: [PATCH 2/2] update .pot --- widgets.pot | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/widgets.pot b/widgets.pot index 508e7dc00..f4ddf5812 100644 --- a/widgets.pot +++ b/widgets.pot @@ -13,6 +13,10 @@ msgstr "" "Preferred-Encodings: utf-8\n" "Domain: widgets\n" +#: ./src/pat/contentbrowser/src/ContentBrowser.svelte +msgid "upload to ${current_path}" +msgstr "" + #: ./src/pat/contentbrowser/src/ContentBrowser.svelte msgid "loading content items" msgstr "" @@ -29,6 +33,18 @@ msgstr "" msgid "select ${preview_path}" msgstr "" +#: ./src/pat/contentbrowser/src/ContentBrowser.svelte +msgid "add selected items" +msgstr "" + +#: ./src/pat/contentbrowser/src/Favorites.svelte +msgid "Favorites" +msgstr "" + +#: ./src/pat/contentbrowser/src/RecentlyUsed.svelte +msgid "Recently Used" +msgstr "" + #: ./src/pat/contentbrowser/src/SelectedItems.svelte msgid "loading selected items" msgstr "" @@ -93,6 +109,10 @@ msgstr "" msgid "There was an error loading modal." msgstr "" +#: ./src/pat/modal/modal.js +msgid "Close" +msgstr "" + #: ./src/pat/preventdoublesubmit/preventdoublesubmit.js msgid "You already clicked the submit button. Do you really want to submit this form again?" msgstr "" @@ -145,10 +165,6 @@ msgstr "" msgid "One level up" msgstr "" -#: ./src/pat/relateditems/relateditems.js -msgid "Favorites" -msgstr "" - #: ./src/pat/relateditems/relateditems.js msgid "Current path:" msgstr "" @@ -161,10 +177,6 @@ msgstr "" msgid "Browse" msgstr "" -#: ./src/pat/relateditems/relateditems.js -msgid "Recently Used" -msgstr "" - #: ./src/pat/relateditems/relateditems.js msgid "Upload" msgstr ""