Skip to content

Commit

Permalink
Better locales
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Dec 14, 2023
1 parent 9741aaf commit d735882
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 29 deletions.
95 changes: 95 additions & 0 deletions locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Víctor Fernández de Alba <victor a plone.org>, 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 <[email protected]>\n"
"Language: \n"
"Language-Team: Català <[email protected]>\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ó"
12 changes: 8 additions & 4 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -58,7 +58,7 @@ msgstr "Elementos"
#: components/DotsAndArrows
# defaultMessage: Next slide
msgid "Next slide"
msgstr ""
msgstr "Siguiente slide"

#: components/DefaultBody
#: components/View
Expand All @@ -69,18 +69,22 @@ 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
# defaultMessage: Slider
msgid "Slider"
msgstr "Slider"

#: components/DefaultBody
#: components/schema
# defaultMessage: Source
msgid "Source"
msgstr "Fuente"
# defaultMessage: Target
msgid "Target"
msgstr ""

#: components/schema
# defaultMessage: Title
Expand Down
12 changes: 8 additions & 4 deletions locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 8 additions & 4 deletions 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-12-14T11:09:47.050Z\n"
"POT-Creation-Date: 2023-12-14T11:35:27.943Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/components/DefaultBody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const messages = defineMessages({
id: 'moreInfo',
defaultMessage: 'More info',
},
source: {
id: 'Source',
defaultMessage: 'Source',
selectTarget: {
id: 'Select target',
defaultMessage: 'Select target',
},
});

Expand Down Expand Up @@ -83,7 +83,7 @@ const SliderBody = ({
</Button>
</Button.Group>
<Input
placeholder={`${intl.formatMessage(messages.source)}...`}
placeholder={intl.formatMessage(messages.selectTarget)}
onClick={handleClick}
onFocus={(e) => e.target.blur()}
/>
Expand Down
8 changes: 4 additions & 4 deletions src/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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: [
Expand Down

0 comments on commit d735882

Please sign in to comment.