diff --git a/src/i18n.js b/src/i18n.js index bbc33cf03..3bdcdde72 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -18,7 +18,7 @@ msgstr "" `; - const okayFiles = ["xml", "js", "htm", "html"]; + const okayFiles = ["xml", "js", "htm", "html", "svelte"]; const found = []; const checkFile = function (filepath) { const split = filepath.split("."); diff --git a/src/pat/contentbrowser/src/ContentBrowser.svelte b/src/pat/contentbrowser/src/ContentBrowser.svelte index d370c4270..663997eab 100644 --- a/src/pat/contentbrowser/src/ContentBrowser.svelte +++ b/src/pat/contentbrowser/src/ContentBrowser.svelte @@ -7,6 +7,7 @@ import { clickOutside } from "./clickOutside"; import { resolveIcon } from "./resolveIcon.js"; import Upload from "../../upload/upload"; + import _t from "../../../core/i18n-wrapper"; // import Keydown from "svelte-keydown"; @@ -165,7 +166,7 @@ > {#await $contentItems} -

...loading content items

+

{_t("loading content items")}

{:then levels}
{#each levels as level, i (level.path)} @@ -192,7 +193,7 @@ disabled={!isSelectable(level)} on:click|preventDefault={() => selectItem(level)} > - select {level.path} + {_t("select ${level_path}", {level_path: level.path})} {/if}
@@ -268,7 +269,7 @@ {/each} {#if level.total == 0}
-

no items found.

+

{_t("no results found")}

{/if}
@@ -281,7 +282,7 @@ disabled={!isSelectable(previewItem)} on:click|preventDefault={() => selectItem(previewItem)} - >select "{previewItem.path.split("/").pop()}"{_t("select ${preview_path}", {preview_path: previewItem.path.split("/").pop()})}
diff --git a/src/pat/contentbrowser/src/ContentStore.js b/src/pat/contentbrowser/src/ContentStore.js index 09c54cd06..cf5368317 100644 --- a/src/pat/contentbrowser/src/ContentStore.js +++ b/src/pat/contentbrowser/src/ContentStore.js @@ -75,7 +75,6 @@ export default function (config, pathCache) { } const search = async (portalPath, searchTerm) => { - let level = {}; let query = { method: "GET", vocabularyUrl: config.vocabularyUrl, @@ -88,7 +87,9 @@ export default function (config, pathCache) { if (config.selectableTypes.length) { query["selectableTypes"] = config.selectableTypes; } - level = await request(query); + let level = await request(query); + level.selectable = false; + level.gridView = false; store.set([level, ]); } diff --git a/src/pat/contentbrowser/src/SelectedItems.svelte b/src/pat/contentbrowser/src/SelectedItems.svelte index 3f73b46a0..dc90a6da2 100644 --- a/src/pat/contentbrowser/src/SelectedItems.svelte +++ b/src/pat/contentbrowser/src/SelectedItems.svelte @@ -4,6 +4,7 @@ import { request } from "./api.js"; import { resolveIcon } from "./resolveIcon.js"; import Sortable from "sortablejs"; + import _t from "../../../core/i18n-wrapper"; let ref; let initializing = true; @@ -151,7 +152,7 @@ {/each} {/if} {#if !$selectedItems} -

loading selected items

+

{_t("loading selected items")}

{/if}
{_t("Select")} diff --git a/widgets.pot b/widgets.pot index 8457b79bf..508e7dc00 100644 --- a/widgets.pot +++ b/widgets.pot @@ -13,6 +13,30 @@ msgstr "" "Preferred-Encodings: utf-8\n" "Domain: widgets\n" +#: ./src/pat/contentbrowser/src/ContentBrowser.svelte +msgid "loading content items" +msgstr "" + +#: ./src/pat/contentbrowser/src/ContentBrowser.svelte +msgid "select ${level_path}" +msgstr "" + +#: ./src/pat/contentbrowser/src/ContentBrowser.svelte +msgid "no results found" +msgstr "" + +#: ./src/pat/contentbrowser/src/ContentBrowser.svelte +msgid "select ${preview_path}" +msgstr "" + +#: ./src/pat/contentbrowser/src/SelectedItems.svelte +msgid "loading selected items" +msgstr "" + +#: ./src/pat/contentbrowser/src/SelectedItems.svelte +msgid "Select" +msgstr "" + #: ./src/pat/formunloadalert/formunloadalert.js msgid "Discard changes? If you click OK, any changes you have made will be lost." msgstr "" @@ -33,10 +57,6 @@ msgstr "" msgid "enter search phrase" msgstr "" -#: ./src/pat/livesearch/livesearch.js -msgid "no results found" -msgstr "" - #: ./src/pat/livesearch/livesearch.js msgid "found" msgstr "" @@ -345,10 +365,6 @@ msgstr "" msgid "Title" msgstr "" -#: ./src/pat/structure/templates/tablerow.xml -msgid "Select" -msgstr "" - #: ./src/pat/structure/templates/tablerow.xml msgid "Excluded from navigation" msgstr "" @@ -369,6 +385,10 @@ msgstr "" msgid "Insert Image" msgstr "" +#: ./src/pat/tinymce/tinymce--implementation.js +msgid "Insert table with header row" +msgstr "" + #: ./src/pat/tinymce/tinymce.js msgid "Search for item on site..." msgstr ""