Skip to content

Commit

Permalink
modification: user dashboard translations
Browse files Browse the repository at this point in the history
  • Loading branch information
philippgualdi committed Oct 4, 2023
1 parent 662fbbf commit 1a65691
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: invenio-records-marc21 0.2.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-10-03 08:34+0200\n"
"POT-Creation-Date: 2023-10-03 14:25+0200\n"
"PO-Revision-Date: 2023-09-14 09:03+0200\n"
"Last-Translator: \n"
"Language: de\n"
Expand Down Expand Up @@ -290,8 +290,8 @@ msgid "Curator"
msgstr "Kurator"

#: invenio_records_marc21/ui/theme/__init__.py:41
msgid "Marc21"
msgstr "Marc21"
msgid "Publications"
msgstr "Publikationen"

#: tests/services/schemas/access/test_record.py:45
msgid "'record' must be either 'public' or 'restricted'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: invenio-records-marc21 0.2.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-10-03 08:34+0200\n"
"POT-Creation-Date: 2023-10-03 14:25+0200\n"
"PO-Revision-Date: 2021-11-11 11:14+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
Expand Down Expand Up @@ -285,7 +285,7 @@ msgid "Curator"
msgstr ""

#: invenio_records_marc21/ui/theme/__init__.py:41
msgid "Marc21"
msgid "Publications"
msgstr ""

#: tests/services/schemas/access/test_record.py:45
Expand Down
4 changes: 2 additions & 2 deletions invenio_records_marc21/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: invenio-records-marc21 0.16.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-10-03 08:34+0200\n"
"POT-Creation-Date: 2023-10-03 14:25+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -284,7 +284,7 @@ msgid "Curator"
msgstr ""

#: invenio_records_marc21/ui/theme/__init__.py:41
msgid "Marc21"
msgid "Publications"
msgstr ""

#: tests/services/schemas/access/test_record.py:45
Expand Down
4 changes: 2 additions & 2 deletions invenio_records_marc21/ui/theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def init_theme_views(blueprint, app):
def register_marc21_dashboard():
"""Register entry for marc21 in the `flask_menu`-submenu "dashboard"."""
user_dashboard_menu = current_menu.submenu("dashboard")
user_dashboard_menu.submenu("Marc21").register(
user_dashboard_menu.submenu("Publications").register(
"invenio_records_marc21.uploads_marc21",
text=_("Marc21"),
text=_("Publications"),
order=4,
visible_when=current_user.is_authenticated,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { createSearchAppInit } from "@js/invenio_search_ui";
import { Button, Divider, Header, Segment } from "semantic-ui-react";
import {
RDMRecordSearchBarContainer,
RDMRecordSearchBarElement,
RDMToggleComponent,
RDMCountComponent,
RDMErrorComponent,
Expand All @@ -36,7 +37,7 @@ const ContribSearchAppFacetsWithConfig = parametrize(ContribSearchAppFacets, {
});

export const Marc21SearchLayout = DashboardSearchLayoutHOC({
searchBarPlaceholder: i18next.t("Search in marc21..."),
searchBarPlaceholder: i18next.t("Search in publications..."),
newBtn: (
<Button
positive
Expand Down Expand Up @@ -80,6 +81,7 @@ const initSearchApp = createSearchAppInit({
"ResultsList.item": Marc21RecordResultsListItem,
"SearchApp.facets": ContribSearchAppFacetsWithConfig,
"SearchApp.searchbarContainer": RDMRecordSearchBarContainer,
"SearchBar.element": RDMRecordSearchBarElement,
"SearchApp.layout": Marc21SearchLayout,
"SearchApp.results": DashboardResultView,
"SearchFilters.ToggleComponent": RDMToggleComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Manage": "Verwalten",
"Version": "Version",
"Preview": "Vorschau",
"Search in marc21...": "Suche in Publikationen...",
"Search in publications...": "Suche in Publikationen...",
"New upload": "Neuer Eintrag",
"Uploaded on": "Hochgeladen am",
"Make your first upload!": "Machen Sie Ihren ersten Eintrag!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Manage": "Manage",
"Version": "Version",
"Preview": "Preview",
"Search in marc21...": "Search in marc21...",
"Search in publications...": "Search in publications...",
"New upload": "New upload",
"Uploaded on": "Uploaded on",
"Make your first upload!": "Make your first upload!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ msgstr "Version"
msgid "Preview"
msgstr "Preview"

msgid "Search in marc21..."
msgstr "Search in marc21..."
msgid "Search in publications..."
msgstr "Search in publications..."

msgid "New upload"
msgstr "New upload"
Expand All @@ -52,4 +52,4 @@ msgid "Uploaded on"
msgstr "Uploaded on"

msgid "Make your first upload!"
msgstr "Make your first upload!"
msgstr "Make your first upload!"

0 comments on commit 1a65691

Please sign in to comment.