Skip to content

Commit

Permalink
Pull from tx; fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Jun 20, 2024
1 parent 5bf15a6 commit 5ef00ce
Show file tree
Hide file tree
Showing 20 changed files with 740 additions and 345 deletions.
5 changes: 2 additions & 3 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function (Event $event) {
$pages = $api->search('faceted_browse_pages', ['site_id' => $site->id()])->getContent();
$pageMap = [];
foreach ($pages as $page) {
$callback = function (&$jsonLd) use ($siteCopy){
$callback = function (&$jsonLd) use ($siteCopy) {
unset($jsonLd['o:owner']);
$jsonLd['o:site']['o:id'] = $siteCopy->id();
};
Expand All @@ -108,7 +108,7 @@ function (Event $event) {
// Copy categories.
$categories = $api->search('faceted_browse_categories', ['page_id' => $page->id()])->getContent();
foreach ($categories as $category) {
$callback = function (&$jsonLd) use ($siteCopy, $pageCopy){
$callback = function (&$jsonLd) use ($siteCopy, $pageCopy) {
unset($jsonLd['o:owner']);
$jsonLd['o:site']['o:id'] = $siteCopy->id();
$jsonLd['o-module-faceted_browse:page']['o:id'] = $pageCopy->id();
Expand All @@ -125,7 +125,6 @@ function (Event $event) {
}
};
$copyResources->modifySiteNavigation($siteCopy->id(), 'facetedBrowse', $callback);

}
);
}
Expand Down
89 changes: 61 additions & 28 deletions language/bg_BG.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-11 13:50-0500\n"
"POT-Creation-Date: 2024-06-20 14:29-0400\n"
"PO-Revision-Date: 2021-04-26 01:55+0000\n"
"Last-Translator: Emil Stoyanov <[email protected]>, 2021\n"
"Language-Team: Bulgarian (Bulgaria) (https://app.transifex.com/omeka/teams/14184/bg_BG/)\n"
Expand Down Expand Up @@ -103,56 +103,52 @@ msgstr "Премахване на фасета"
msgid "Restore facet"
msgstr "Възстановяване на фасета"

#: view/faceted-browse/site-admin/category/form.phtml:16
#: view/faceted-browse/site-admin/category/form.phtml:17
msgid "Edit Category"
msgstr "Редактиране на категория"

#: view/faceted-browse/site-admin/category/form.phtml:16
#: view/faceted-browse/site-admin/category/form.phtml:18
#: view/faceted-browse/site-admin/category/form.phtml:17
#: view/faceted-browse/site-admin/category/form.phtml:19
#: view/faceted-browse/site-admin/page/browse.phtml:7
#: view/faceted-browse/site-admin/page/form.phtml:14
#: view/faceted-browse/site-admin/page/form.phtml:16
msgid "Faceted Browse"
msgstr "Фасетиран преглед"

#: view/faceted-browse/site-admin/category/form.phtml:18
#: view/faceted-browse/site-admin/category/form.phtml:19
msgid "Add Category"
msgstr "Добавяне на категория"

#: view/faceted-browse/site-admin/category/form.phtml:30
#: view/faceted-browse/site-admin/category/form.phtml:31
#: view/faceted-browse/site-admin/page/form.phtml:28
msgid "Save and&hellip;"
msgstr "Запазване"

#: view/faceted-browse/site-admin/category/form.phtml:32
#: view/faceted-browse/site-admin/category/form.phtml:33
msgid "Return to page"
msgstr ""

#: view/faceted-browse/site-admin/category/form.phtml:33
#: view/faceted-browse/site-admin/category/form.phtml:34
msgid "Stay on this category"
msgstr "Оставане на тази категория"

#: view/faceted-browse/site-admin/category/form.phtml:41
#: view/faceted-browse/site-admin/category/form.phtml:42
#: view/faceted-browse/site-admin/page/form.phtml:39
msgid "Page edit"
msgstr ""

#: view/faceted-browse/site-admin/category/form.phtml:43
#: view/faceted-browse/site-admin/category/form.phtml:44
msgid "Category edit"
msgstr ""

#: view/faceted-browse/site-admin/category/form.phtml:43
#: view/faceted-browse/site-admin/category/form.phtml:44
msgid "Category add"
msgstr ""

#: view/faceted-browse/site-admin/category/form.phtml:58
#: view/faceted-browse/site-admin/category/form.phtml:61
msgid "Facets"
msgstr "Фасети"

#: view/faceted-browse/site-admin/category/form.phtml:74
msgid "Columns"
msgstr ""

#: view/faceted-browse/site-admin/category/show-all-table.phtml:2
msgid "Add all"
msgstr ""
Expand Down Expand Up @@ -235,43 +231,59 @@ msgstr "Няма категории за преглед."
msgid "Back"
msgstr "Обратно"

#: view/faceted-browse/site/page/facets.phtml:14
msgid "Instructions"
msgstr ""

#: view/faceted-browse/site/page/page.phtml:27
#: view/faceted-browse/site/page/page.phtml:28
msgid "Filters"
msgstr ""

#: config/module.config.php:93
#: config/module.config.php:98
msgid "A facet must have a name."
msgstr "Фасетата трябва да има име."

#: config/module.config.php:94
#: config/module.config.php:99
msgid "A column must have a name."
msgstr ""

#: config/module.config.php:95
#: config/module.config.php:100
msgid "A column must have a property."
msgstr ""

#: config/module.config.php:96
#: config/module.config.php:101
msgid "Error fetching browse markup."
msgstr "Грешка при извличането на маркъпа на прегледа."

#: config/module.config.php:97
#: config/module.config.php:102
msgid "Error fetching facet markup."
msgstr "Грешка при извличането на маркъпа на фасетата."

#: config/module.config.php:98
#: config/module.config.php:103
msgid "Error fetching category markup."
msgstr "Грешка при извличането на маркъпа на категорията."

#: config/module.config.php:99
#: config/module.config.php:104
msgid "Cannot show all. The result set is likely too large."
msgstr ""

#: config/module.config.php:100
#: config/module.config.php:105
msgid "Loading results…"
msgstr ""

#: src/Site/BlockLayout/FacetedBrowsePreview.php:23
msgid "Faceted browse preview"
msgstr ""

#: src/Site/BlockLayout/FacetedBrowsePreview.php:49
msgid "Page category"
msgstr ""

#: src/Site/BlockLayout/FacetedBrowsePreview.php:50
msgid "Select one…"
msgstr ""

#: src/Site/NavigationLink/FacetedBrowse.php:13
msgid "Faceted browse"
msgstr "Фасетен преглед"
Expand Down Expand Up @@ -457,20 +469,20 @@ msgstr "Неизвестен тип фасета"
msgid "Unknown facet data"
msgstr "Неизвестни данни на фасета"

#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:51
#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:57
#: src/Api/Adapter/FacetedBrowsePageAdapter.php:49
msgid "A site must have an ID"
msgstr "Сайтът трябва да има ID"

#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:152
#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:166
msgid "A category must have a site"
msgstr "Категорията трябва да има сайт"

#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:155
#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:169
msgid "A category must have a name"
msgstr "Категорията трябва да има име"

#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:158
#: src/Api/Adapter/FacetedBrowseCategoryAdapter.php:172
msgid "A category must have a query"
msgstr "Категорията трябва да има заявка"

Expand Down Expand Up @@ -510,7 +522,28 @@ msgid ""
"query means all site resources."
msgstr ""

#: src/Form/CategoryForm.php:77
msgid "Helper text"
msgstr ""

#: src/Form/CategoryForm.php:78
msgid ""
"Enter text to be displayed to the user on the category sidebar. Here you can"
" add short instructions, a link to instructions, etc. Enter nothing to have "
"no helper text."
msgstr ""

#: src/Form/CategoryForm.php:89
msgid "Helper text button label"
msgstr ""

#: src/Form/CategoryForm.php:90
msgid ""
"Enter the label of the button the user will click to toggle the helper text."
" Enter nothing for the default label: \"Instructions\"."
msgstr ""

#: src/Form/CategoryForm.php:113
msgid "Add a facet…"
msgstr ""

Expand Down
Binary file modified language/ca_ES.mo
Binary file not shown.
Loading

0 comments on commit 5ef00ce

Please sign in to comment.