From 30df0cc88267b6a1cbab86875ff092d192f30b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Andrei?= Date: Fri, 4 Aug 2023 15:21:33 -0300 Subject: [PATCH] Update pt_BR translation --- .gitignore | 1 + Makefile | 2 +- dockerfiles/Dockerfile.dev | 3 ++ dockerfiles/i18n.sh | 2 ++ locales/LC_MESSAGES/pt_BR/volto.pot | 14 --------- locales/pt_BR/LC_MESSAGES/volto.po | 48 +++++++++++++++++++++++++++++ locales/volto.pot | 33 +++++++++++++++++++- news/5.feature | 1 + 8 files changed, 88 insertions(+), 16 deletions(-) create mode 100755 dockerfiles/i18n.sh delete mode 100644 locales/LC_MESSAGES/pt_BR/volto.pot create mode 100644 locales/pt_BR/LC_MESSAGES/volto.po create mode 100644 news/5.feature diff --git a/.gitignore b/.gitignore index 29e189f..ec96334 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules .storybook +build # yarn 3 .pnp.* diff --git a/Makefile b/Makefile index 8629aba..dab21fb 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ help: ## Show this help. # Dev Helpers .PHONY: i18n i18n: ## Sync i18n - ${DOCKER_COMPOSE} run addon-no-backend i18n + ${DOCKER_COMPOSE} run -e ADDON_PATH=$(ADDON_PATH) --entrypoint '/app/i18n.sh' addon-no-backend .PHONY: release release: ## Release package diff --git a/dockerfiles/Dockerfile.dev b/dockerfiles/Dockerfile.dev index 48f0427..2bb3c5a 100644 --- a/dockerfiles/Dockerfile.dev +++ b/dockerfiles/Dockerfile.dev @@ -5,6 +5,9 @@ FROM plone/frontend-dev:${VOLTO_VERSION} ARG ADDON_NAME ARG ADDON_PATH +# Copy i18n helper +COPY --chown=node:node dockerfiles/i18n.sh /app/ + # Copy linter / prettier configs COPY --chown=node:node .eslintignore .prettierignore /app/ diff --git a/dockerfiles/i18n.sh b/dockerfiles/i18n.sh new file mode 100755 index 0000000..94cb6c5 --- /dev/null +++ b/dockerfiles/i18n.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cd "/app/src/addons/${ADDON_PATH}/" && /app/node_modules/.bin/i18n --addon && rm -Rf build || exit diff --git a/locales/LC_MESSAGES/pt_BR/volto.pot b/locales/LC_MESSAGES/pt_BR/volto.pot deleted file mode 100644 index 1b22bc0..0000000 --- a/locales/LC_MESSAGES/pt_BR/volto.pot +++ /dev/null @@ -1,14 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Plone\n" -"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n" -"Last-Translator: Plone i18n \n" -"Language-Team: Plone i18n \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"Language-Code: en\n" -"Language-Name: English\n" -"Preferred-Encodings: utf-8\n" -"Domain: volto\n" diff --git a/locales/pt_BR/LC_MESSAGES/volto.po b/locales/pt_BR/LC_MESSAGES/volto.po new file mode 100644 index 0000000..ee84dad --- /dev/null +++ b/locales/pt_BR/LC_MESSAGES/volto.po @@ -0,0 +1,48 @@ +msgid "" +msgstr "" +"Project-Id-Version: Plone\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n" +"PO-Revision-Date: \n" +"Last-Translator: Plone i18n \n" +"Language: \n" +"Language-Team: Plone i18n \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: en\n" +"Language-Name: English\n" +"Preferred-Encodings: utf-8\n" +"Domain: volto\n" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Align +msgid "Align" +msgstr "Alinhamento" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Animate Icon +msgid "Animate Icon" +msgstr "Animar o ícone" + +#: components/Blocks/FollowUs/Data +#: components/Blocks/FollowUs/schema +# defaultMessage: Follow Us +msgid "Follow Us Block" +msgstr "Bloco Siga-nos" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Headline +msgid "Headline" +msgstr "Chamada" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Network +msgid "Network" +msgstr "Rede" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Networks +msgid "Networks" +msgstr "Redes" diff --git a/locales/volto.pot b/locales/volto.pot index 1b22bc0..2b0d9f9 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n" +"POT-Creation-Date: 2023-08-04T18:02:39.658Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -12,3 +12,34 @@ msgstr "" "Language-Name: English\n" "Preferred-Encodings: utf-8\n" "Domain: volto\n" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Align +msgid "Align" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Animate Icon +msgid "Animate Icon" +msgstr "" + +#: components/Blocks/FollowUs/Data +#: components/Blocks/FollowUs/schema +# defaultMessage: Follow Us +msgid "Follow Us Block" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Headline +msgid "Headline" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Network +msgid "Network" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Networks +msgid "Networks" +msgstr "" diff --git a/news/5.feature b/news/5.feature new file mode 100644 index 0000000..a391389 --- /dev/null +++ b/news/5.feature @@ -0,0 +1 @@ +Update pt_BR translation [@ericof]