Skip to content

Commit a9288d4

Browse files
authored
Merge pull request #3 from collective/translate-contents
fix: translated contents
2 parents fcba413 + c14de47 commit a9288d4

8 files changed

Lines changed: 180 additions & 4 deletions

File tree

frontend/packages/volto-searchblocks/locales/de/LC_MESSAGES/volto.po

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,28 @@ msgstr ""
8181
#: components/SearchBlocks/SearchBlocks
8282
msgid "Type"
8383
msgstr ""
84+
85+
#. Default: "Draft"
86+
#: components/SearchBlocks/SearchBlocks
87+
msgid "draft"
88+
msgstr ""
89+
90+
#. Default: "Intranet"
91+
#: components/SearchBlocks/SearchBlocks
92+
msgid "intranet"
93+
msgstr ""
94+
95+
#. Default: "Pending"
96+
#: components/SearchBlocks/SearchBlocks
97+
msgid "pending"
98+
msgstr ""
99+
100+
#. Default: "Private"
101+
#: components/SearchBlocks/SearchBlocks
102+
msgid "private"
103+
msgstr ""
104+
105+
#. Default: "Published"
106+
#: components/SearchBlocks/SearchBlocks
107+
msgid "published"
108+
msgstr ""

frontend/packages/volto-searchblocks/locales/en/LC_MESSAGES/volto.po

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,28 @@ msgstr ""
8181
#: components/SearchBlocks/SearchBlocks
8282
msgid "Type"
8383
msgstr ""
84+
85+
#. Default: "Draft"
86+
#: components/SearchBlocks/SearchBlocks
87+
msgid "draft"
88+
msgstr ""
89+
90+
#. Default: "Intranet"
91+
#: components/SearchBlocks/SearchBlocks
92+
msgid "intranet"
93+
msgstr ""
94+
95+
#. Default: "Pending"
96+
#: components/SearchBlocks/SearchBlocks
97+
msgid "pending"
98+
msgstr ""
99+
100+
#. Default: "Private"
101+
#: components/SearchBlocks/SearchBlocks
102+
msgid "private"
103+
msgstr ""
104+
105+
#. Default: "Published"
106+
#: components/SearchBlocks/SearchBlocks
107+
msgid "published"
108+
msgstr ""

frontend/packages/volto-searchblocks/locales/es/LC_MESSAGES/volto.po

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,28 @@ msgstr ""
8888
#: components/SearchBlocks/SearchBlocks
8989
msgid "Type"
9090
msgstr ""
91+
92+
#. Default: "Draft"
93+
#: components/SearchBlocks/SearchBlocks
94+
msgid "draft"
95+
msgstr ""
96+
97+
#. Default: "Intranet"
98+
#: components/SearchBlocks/SearchBlocks
99+
msgid "intranet"
100+
msgstr ""
101+
102+
#. Default: "Pending"
103+
#: components/SearchBlocks/SearchBlocks
104+
msgid "pending"
105+
msgstr ""
106+
107+
#. Default: "Private"
108+
#: components/SearchBlocks/SearchBlocks
109+
msgid "private"
110+
msgstr ""
111+
112+
#. Default: "Published"
113+
#: components/SearchBlocks/SearchBlocks
114+
msgid "published"
115+
msgstr ""

frontend/packages/volto-searchblocks/locales/it/LC_MESSAGES/volto.po

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,28 @@ msgstr "Titolo"
8282
#: components/SearchBlocks/SearchBlocks
8383
msgid "Type"
8484
msgstr "Tipo"
85+
86+
#. Default: "Draft"
87+
#: components/SearchBlocks/SearchBlocks
88+
msgid "draft"
89+
msgstr "Bozza"
90+
91+
#. Default: "Intranet"
92+
#: components/SearchBlocks/SearchBlocks
93+
msgid "intranet"
94+
msgstr "Intranet"
95+
96+
#. Default: "Pending"
97+
#: components/SearchBlocks/SearchBlocks
98+
msgid "pending"
99+
msgstr "In attesa"
100+
101+
#. Default: "Private"
102+
#: components/SearchBlocks/SearchBlocks
103+
msgid "private"
104+
msgstr "Privato"
105+
106+
#. Default: "Published"
107+
#: components/SearchBlocks/SearchBlocks
108+
msgid "published"
109+
msgstr "Pubblicato"

frontend/packages/volto-searchblocks/locales/pt_BR/LC_MESSAGES/volto.po

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,28 @@ msgstr ""
8686
#: components/SearchBlocks/SearchBlocks
8787
msgid "Type"
8888
msgstr ""
89+
90+
#. Default: "Draft"
91+
#: components/SearchBlocks/SearchBlocks
92+
msgid "draft"
93+
msgstr ""
94+
95+
#. Default: "Intranet"
96+
#: components/SearchBlocks/SearchBlocks
97+
msgid "intranet"
98+
msgstr ""
99+
100+
#. Default: "Pending"
101+
#: components/SearchBlocks/SearchBlocks
102+
msgid "pending"
103+
msgstr ""
104+
105+
#. Default: "Private"
106+
#: components/SearchBlocks/SearchBlocks
107+
msgid "private"
108+
msgstr ""
109+
110+
#. Default: "Published"
111+
#: components/SearchBlocks/SearchBlocks
112+
msgid "published"
113+
msgstr ""

frontend/packages/volto-searchblocks/locales/volto.pot

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: Plone\n"
4-
"POT-Creation-Date: 2026-01-27T12:21:38.702Z\n"
4+
"POT-Creation-Date: 2026-04-21T10:14:53.092Z\n"
55
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
66
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
77
"Content-Type: text/plain; charset=utf-8\n"
@@ -83,3 +83,28 @@ msgstr ""
8383
#: components/SearchBlocks/SearchBlocks
8484
msgid "Type"
8585
msgstr ""
86+
87+
#. Default: "Draft"
88+
#: components/SearchBlocks/SearchBlocks
89+
msgid "draft"
90+
msgstr ""
91+
92+
#. Default: "Intranet"
93+
#: components/SearchBlocks/SearchBlocks
94+
msgid "intranet"
95+
msgstr ""
96+
97+
#. Default: "Pending"
98+
#: components/SearchBlocks/SearchBlocks
99+
msgid "pending"
100+
msgstr ""
101+
102+
#. Default: "Private"
103+
#: components/SearchBlocks/SearchBlocks
104+
msgid "private"
105+
msgstr ""
106+
107+
#. Default: "Published"
108+
#: components/SearchBlocks/SearchBlocks
109+
msgid "published"
110+
msgstr ""

frontend/packages/volto-searchblocks/src/actions/searchBlocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SEARCH_BLOCKS } from '../constants/ActionTypes';
33
export function searchBlocks(options = {}) {
44
const params = {
55
sort_on: 'sortable_title',
6-
metadata_fields: ['modified', 'created'],
6+
metadata_fields: ['modified', 'created', 'Type'],
77
};
88

99
if (options.block_types) {

frontend/packages/volto-searchblocks/src/components/SearchBlocks/SearchBlocks.jsx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,26 @@ const messages = defineMessages({
7474
id: 'Back to Control Panel',
7575
defaultMessage: 'Back to Control Panel',
7676
},
77+
private: {
78+
id: 'private',
79+
defaultMessage: 'Private',
80+
},
81+
pending: {
82+
id: 'pending',
83+
defaultMessage: 'Pending',
84+
},
85+
published: {
86+
id: 'published',
87+
defaultMessage: 'Published',
88+
},
89+
intranet: {
90+
id: 'intranet',
91+
defaultMessage: 'Intranet',
92+
},
93+
draft: {
94+
id: 'draft',
95+
defaultMessage: 'Draft',
96+
},
7797
});
7898

7999
const SearchBlocks = (props) => {
@@ -219,8 +239,14 @@ const SearchBlocks = (props) => {
219239
<Table.Cell>
220240
<a href={item['@id']}>{item.title}</a>
221241
</Table.Cell>
222-
<Table.Cell>{item['@type']}</Table.Cell>
223-
<Table.Cell>{item.review_state}</Table.Cell>
242+
<Table.Cell>{item['Type'] || item['@type']}</Table.Cell>
243+
<Table.Cell>
244+
{item.review_title ||
245+
(messages[item.review_state]
246+
? intl.formatMessage(messages[item.review_state])
247+
: item.review_state) ||
248+
'-'}
249+
</Table.Cell>
224250
<Table.Cell>
225251
{item.created
226252
? new Date(item.created).toLocaleDateString()

0 commit comments

Comments
 (0)