From d73588246640aee410d5f37f2c32679670fca5c6 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 14 Dec 2023 12:36:58 +0100 Subject: [PATCH] Better locales --- locales/ca/LC_MESSAGES/volto.po | 95 +++++++++++++++++++++++++++++++++ locales/de/LC_MESSAGES/volto.po | 12 +++-- locales/en/LC_MESSAGES/volto.po | 10 ++-- locales/es/LC_MESSAGES/volto.po | 16 +++--- locales/nl/LC_MESSAGES/volto.po | 12 +++-- locales/volto.pot | 12 +++-- src/components/DefaultBody.jsx | 8 +-- src/components/schema.js | 8 +-- 8 files changed, 144 insertions(+), 29 deletions(-) create mode 100644 locales/ca/LC_MESSAGES/volto.po diff --git a/locales/ca/LC_MESSAGES/volto.po b/locales/ca/LC_MESSAGES/volto.po new file mode 100644 index 0000000..d390ded --- /dev/null +++ b/locales/ca/LC_MESSAGES/volto.po @@ -0,0 +1,95 @@ +# Víctor Fernández de Alba , 2023 +msgid "" +msgstr "" +"Project-Id-Version: Plone\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n" +"PO-Revision-Date: 2019-07-02 00:11+0200\n" +"Last-Translator: Víctor Fernández de Alba \n" +"Language: \n" +"Language-Team: Català \n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"MIME-Version: 1.0\n" +"Language-Code: ca\n" +"Language-Name: Catalan\n" +"Preferred-Encodings: utf-8\n" +"Domain: plone\n" +"X-Is-Fallback-For: ca-ad ca-es ca-fr ca-it\n" + +#: components/schema +# defaultMessage: Add item +msgid "Add item" +msgstr "Afegir element" + +#: components/schema +# defaultMessage: Description +msgid "Description" +msgstr "Descripció" + +#: components/DotsAndArrows +# defaultMessage: Go to slide +msgid "Go to slide" +msgstr "Vés a slide" + +#: components/schema +# defaultMessage: Headtitle +msgid "Headtitle" +msgstr "Títol de capçalera" + +#: components/schema +# defaultMessage: Image override +msgid "Image override" +msgstr "Imatge" + +#: components/schema +# defaultMessage: Item +msgid "Item" +msgstr "Element" + +#: components/schema +# defaultMessage: Items +msgid "Items" +msgstr "Elements" + +#: components/DotsAndArrows +# defaultMessage: Next slide +msgid "Next slide" +msgstr "Següent slide" + +#: components/DefaultBody +#: components/View +# defaultMessage: Please choose an existing content as source for this element +msgid "Please choose an existing content as source for this element" +msgstr "Si us plau, escolleixi un contingut existent per aquest element" + +#: components/DotsAndArrows +# defaultMessage: Previous slide +msgid "Previous slide" +msgstr "Anterior slide" + +#: components/DefaultBody +# defaultMessage: Select target +msgid "Select target" +msgstr "Selecciona un contingut" + +#: components/schema +# defaultMessage: Slider +msgid "Slider" +msgstr "Slider" + +#: components/schema +# defaultMessage: Target +msgid "Target" +msgstr "" + +#: components/schema +# defaultMessage: Title +msgid "Title" +msgstr "Títol" + +#: components/DefaultBody +# defaultMessage: More info +msgid "moreInfo" +msgstr "Més informació" diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 0c0a455..2f1d390 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -67,16 +67,20 @@ msgstr "Bitte wählen sie einen existierenden Inhalt als Quelle für dieses Elem msgid "Previous slide" msgstr "" +#: components/DefaultBody +# defaultMessage: Select target +msgid "Select target" +msgstr "Ziel" + #: components/schema # defaultMessage: Slider msgid "Slider" msgstr "Slider" -#: components/DefaultBody #: components/schema -# defaultMessage: Source -msgid "Source" -msgstr "Quelle" +# defaultMessage: Target +msgid "Target" +msgstr "Ziel" #: components/schema # defaultMessage: Title diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 13ae717..949a6f5 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -62,15 +62,19 @@ msgstr "" msgid "Previous slide" msgstr "" +#: components/DefaultBody +# defaultMessage: Select target +msgid "Select target" +msgstr "" + #: components/schema # defaultMessage: Slider msgid "Slider" msgstr "" -#: components/DefaultBody #: components/schema -# defaultMessage: Source -msgid "Source" +# defaultMessage: Target +msgid "Target" msgstr "" #: components/schema diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index a5b6527..7e6c41b 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -33,7 +33,7 @@ msgstr "Descripción" #: components/DotsAndArrows # defaultMessage: Go to slide msgid "Go to slide" -msgstr "" +msgstr "Ver slide" #: components/schema # defaultMessage: Headtitle @@ -58,7 +58,7 @@ msgstr "Elementos" #: components/DotsAndArrows # defaultMessage: Next slide msgid "Next slide" -msgstr "" +msgstr "Siguiente slide" #: components/DefaultBody #: components/View @@ -69,6 +69,11 @@ msgstr "Elija un contenido existente como fuente para este elemento" #: components/DotsAndArrows # defaultMessage: Previous slide msgid "Previous slide" +msgstr "Anterior slide" + +#: components/DefaultBody +# defaultMessage: Select target +msgid "Select target" msgstr "" #: components/schema @@ -76,11 +81,10 @@ msgstr "" msgid "Slider" msgstr "Slider" -#: components/DefaultBody #: components/schema -# defaultMessage: Source -msgid "Source" -msgstr "Fuente" +# defaultMessage: Target +msgid "Target" +msgstr "" #: components/schema # defaultMessage: Title diff --git a/locales/nl/LC_MESSAGES/volto.po b/locales/nl/LC_MESSAGES/volto.po index 2076004..3accb0d 100644 --- a/locales/nl/LC_MESSAGES/volto.po +++ b/locales/nl/LC_MESSAGES/volto.po @@ -66,16 +66,20 @@ msgstr "Kies een bestaand item als bron voor dit element" msgid "Previous slide" msgstr "" +#: components/DefaultBody +# defaultMessage: Select target +msgid "Select target" +msgstr "" + #: components/schema # defaultMessage: Slider msgid "Slider" msgstr "Slider" -#: components/DefaultBody #: components/schema -# defaultMessage: Source -msgid "Source" -msgstr "Bron" +# defaultMessage: Target +msgid "Target" +msgstr "" #: components/schema # defaultMessage: Title diff --git a/locales/volto.pot b/locales/volto.pot index ddd9c19..67ee092 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2023-12-14T11:09:47.050Z\n" +"POT-Creation-Date: 2023-12-14T11:35:27.943Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -64,15 +64,19 @@ msgstr "" msgid "Previous slide" msgstr "" +#: components/DefaultBody +# defaultMessage: Select target +msgid "Select target" +msgstr "" + #: components/schema # defaultMessage: Slider msgid "Slider" msgstr "" -#: components/DefaultBody #: components/schema -# defaultMessage: Source -msgid "Source" +# defaultMessage: Target +msgid "Target" msgstr "" #: components/schema diff --git a/src/components/DefaultBody.jsx b/src/components/DefaultBody.jsx index 76a3c92..96f47f7 100644 --- a/src/components/DefaultBody.jsx +++ b/src/components/DefaultBody.jsx @@ -18,9 +18,9 @@ const messages = defineMessages({ id: 'moreInfo', defaultMessage: 'More info', }, - source: { - id: 'Source', - defaultMessage: 'Source', + selectTarget: { + id: 'Select target', + defaultMessage: 'Select target', }, }); @@ -83,7 +83,7 @@ const SliderBody = ({ e.target.blur()} /> diff --git a/src/components/schema.js b/src/components/schema.js index 38b06fd..9ca52fb 100644 --- a/src/components/schema.js +++ b/src/components/schema.js @@ -4,9 +4,9 @@ import { mergeSchemas } from '../helpers'; import { v4 as uuid } from 'uuid'; const messages = defineMessages({ - Source: { - id: 'Source', - defaultMessage: 'Source', + Target: { + id: 'Target', + defaultMessage: 'Target', }, Slider: { id: 'Slider', @@ -63,7 +63,7 @@ export const itemSchema = (props) => properties: { href: { - title: props.intl.formatMessage(messages.Source), + title: props.intl.formatMessage(messages.Target), widget: 'object_browser', mode: 'link', selectedItemAttrs: [