Skip to content

Commit

Permalink
maintenance: Updated i18n support
Browse files Browse the repository at this point in the history
  • Loading branch information
macagua committed May 17, 2023
1 parent 30f76bf commit d84f4c1
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 2 deletions.
5 changes: 5 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ msgstr ""
"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"
"X-Generator: Poedit 2.2.1\n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/ja/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/pt/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
5 changes: 5 additions & 0 deletions locales/ro/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
7 changes: 6 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: 2021-10-26T08:16:38.271Z\n"
"POT-Creation-Date: 2023-05-17T18:30:58.151Z\n"
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
Expand All @@ -13,6 +13,11 @@ msgstr ""
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"

#: components/OSMMap/OSMMap
# defaultMessage: &amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors
msgid "&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
msgstr ""

#: components/Widgets/GeoLocationWidget/GeoLocationWidget
# defaultMessage: Geolocation
msgid "geolocation"
Expand Down
10 changes: 9 additions & 1 deletion src/components/OSMMap/OSMMap.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
import L from 'leaflet';
import { Map, TileLayer, Marker, Tooltip, Popup } from 'react-leaflet';
Expand All @@ -14,6 +15,13 @@ import 'volto-venue/components/OSMMap/OSMMap.css';
// eslint-disable-next-line import/no-unresolved
import 'volto-venue/components/OSMMap/leaflet.css';

const messages = defineMessages({
attribution: {
id: '&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
defaultMessage: '&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
},
});

let DefaultIcon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow,
Expand Down Expand Up @@ -75,7 +83,7 @@ const OSMMap = ({
{...mapOptions}
>
<TileLayer
attribution='&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
attribution={intl.formatMessage(messages.attribution)}
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
{cluster ? (
Expand Down

0 comments on commit d84f4c1

Please sign in to comment.