Skip to content

Commit

Permalink
Merge pull request #1407 from plone/i18n-fix
Browse files Browse the repository at this point in the history
i18n fixes
  • Loading branch information
petschki authored Nov 14, 2024
2 parents 231ddde + 16d782e commit 2088259
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
28 changes: 20 additions & 8 deletions widgets.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand All @@ -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 ""
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""
Expand All @@ -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 ""
Expand Down

0 comments on commit 2088259

Please sign in to comment.