Skip to content

Commit

Permalink
fix: fixed reccurence text (#480)
Browse files Browse the repository at this point in the history
* fix: fixed reccurence text

* chore: moved overrideTranslations.jsx file
  • Loading branch information
giuliaghisini authored Jan 11, 2024
1 parent b39ab1f commit 14bdd47
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 1 deletion.
30 changes: 30 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,36 @@ msgstr ""
msgid "risultati_indagini_customer_satisfaction"
msgstr ""

#: overrideTranslations
# defaultMessage: il giorno
msgid "rrule_in"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_nd"
msgstr ""

#: overrideTranslations
# defaultMessage: il
msgid "rrule_on the"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_rd"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_st"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_th"
msgstr ""

#: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
#: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
# defaultMessage: No results from RSS feed.
Expand Down
30 changes: 30 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2706,6 +2706,36 @@ msgstr "Rights"
msgid "risultati_indagini_customer_satisfaction"
msgstr "Customer satisfaction survey results"

#: overrideTranslations
# defaultMessage: il giorno
msgid "rrule_in"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_nd"
msgstr ""

#: overrideTranslations
# defaultMessage: il
msgid "rrule_on the"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_rd"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_st"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_th"
msgstr ""

#: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
#: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
# defaultMessage: No results from RSS feed.
Expand Down
30 changes: 30 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2715,6 +2715,36 @@ msgstr "Derechos"
msgid "risultati_indagini_customer_satisfaction"
msgstr "Resultados de la encuesta de satisfacción del cliente"

#: overrideTranslations
# defaultMessage: il giorno
msgid "rrule_in"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_nd"
msgstr ""

#: overrideTranslations
# defaultMessage: il
msgid "rrule_on the"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_rd"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_st"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_th"
msgstr ""

#: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
#: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
# defaultMessage: No results from RSS feed.
Expand Down
30 changes: 30 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,36 @@ msgstr "Droits"
msgid "risultati_indagini_customer_satisfaction"
msgstr "Résultats des enquêtes de satisfaction clients"

#: overrideTranslations
# defaultMessage: il giorno
msgid "rrule_in"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_nd"
msgstr ""

#: overrideTranslations
# defaultMessage: il
msgid "rrule_on the"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_rd"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_st"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_th"
msgstr ""

#: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
#: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
# defaultMessage: No results from RSS feed.
Expand Down
30 changes: 30 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2706,6 +2706,36 @@ msgstr "Diritti"
msgid "risultati_indagini_customer_satisfaction"
msgstr "Risultati indagini di customer satisfaction"

#: overrideTranslations
# defaultMessage: il giorno
msgid "rrule_in"
msgstr "il giorno"

#: overrideTranslations
# defaultMessage: _
msgid "rrule_nd"
msgstr " "

#: overrideTranslations
# defaultMessage: il
msgid "rrule_on the"
msgstr "il"

#: overrideTranslations
# defaultMessage: _
msgid "rrule_rd"
msgstr " "

#: overrideTranslations
# defaultMessage: _
msgid "rrule_st"
msgstr " "

#: overrideTranslations
# defaultMessage: _
msgid "rrule_th"
msgstr " "

#: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
#: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
# defaultMessage: No results from RSS feed.
Expand Down
32 changes: 31 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2023-09-19T07:30:36.575Z\n"
"POT-Creation-Date: 2024-01-11T13:44:54.156Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -2708,6 +2708,36 @@ msgstr ""
msgid "risultati_indagini_customer_satisfaction"
msgstr ""

#: overrideTranslations
# defaultMessage: il giorno
msgid "rrule_in"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_nd"
msgstr ""

#: overrideTranslations
# defaultMessage: il
msgid "rrule_on the"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_rd"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_st"
msgstr ""

#: overrideTranslations
# defaultMessage: _
msgid "rrule_th"
msgstr ""

#: components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate
#: components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate
# defaultMessage: No results from RSS feed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const PageHeaderEventDates = ({ content, moment, rrule }) => {
forceset: true,
});
const RRULE_LANGUAGE = rrulei18n(intl, Moment);
console.log(rruleSet.rrules()[0]);
eventRecurrenceText = rruleSet.rrules()[0]?.toText(
(t) => {
return RRULE_LANGUAGE.strings[t];
Expand Down
28 changes: 28 additions & 0 deletions src/overrideTranslations.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineMessages } from 'react-intl';

const messages = defineMessages({
rrule_st: {
id: 'rrule_st',
defaultMessage: '_', //in italiano non si traduce
},
rrule_nd: {
id: 'rrule_nd',
defaultMessage: '_', //in italiano non si traduce
},
rrule_rd: {
id: 'rrule_rd',
defaultMessage: '_', //in italiano non si traduce
},
rrule_th: {
id: 'rrule_th',
defaultMessage: '_', //in italiano non si traduce
},
rrule_in: {
id: 'rrule_in',
defaultMessage: 'il giorno',
},
rrule_on_the: {
id: 'rrule_on the',
defaultMessage: 'il',
},
});

0 comments on commit 14bdd47

Please sign in to comment.