Skip to content

Commit

Permalink
Fix i18n and update Brazilian Portuguese and Spanish translations
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Apr 13, 2017
1 parent f4d889a commit 916cdc8
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 27 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Expand Up @@ -6,6 +6,9 @@ There's a frood who really knows where his towel is.
1.0a3 (unreleased)
------------------

- Fix i18n and update Brazilian Portuguese and Spanish translations (fixes `#44`_).
[hvelarde]

- Set correct language information (fixes `#43`_).
[hvelarde]

Expand Down Expand Up @@ -60,3 +63,4 @@ There's a frood who really knows where his towel is.

.. _`#26`: https://github.com/collective/collective.behavior.amp/issues/26
.. _`#43`: https://github.com/collective/collective.behavior.amp/issues/43
.. _`#44`: https://github.com/collective/collective.behavior.amp/issues/44
3 changes: 3 additions & 0 deletions src/collective/behavior/amp/browser/view.pt
@@ -1,5 +1,8 @@
<!doctype html>
<html amp lang="en"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xmlns:tal="http://xml.zope.org/namespaces/tal"
i18n:domain="collective.behavior.amp"
tal:define="analytics view/amp_analytics;
sticky_ad view/sticky_ad"
tal:attributes="lang context/@@plone_portal_state/language">
Expand Down
42 changes: 35 additions & 7 deletions src/collective/behavior/amp/locales/collective.behavior.amp.pot
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2016-10-06 20:09+0000\n"
"POT-Creation-Date: 2017-04-13 20:23+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -18,10 +18,14 @@ msgstr ""
msgid "A behavior for Dexterity-based content types that adds an AMP version of your content."
msgstr ""

#: collective/behavior/amp/interfaces.py:34
#: collective/behavior/amp/interfaces.py:49
msgid "AMP Analytics"
msgstr ""

#: collective/behavior/amp/interfaces.py:36
msgid "AMP Sticky Ad"
msgstr ""

#: collective/behavior/amp/behaviors.zcml:15
#: collective/behavior/amp/browser/controlpanel.py:12
#: collective/behavior/amp/profiles/default/controlpanel.xml
Expand All @@ -36,6 +40,10 @@ msgstr ""
msgid "Adds an AMP HTML version of your content."
msgstr ""

#: collective/behavior/amp/interfaces.py:37
msgid "Adds support for ad units that always take a fixed place in the viewport. Fill with the \"amp-ad\" element that will be used as a direct child of \"amp-sticky-ad\". See <a href=\"https://ampbyexample.com/components/amp-sticky-ad/\">amp-sticky-ad</a> for examples on how to implement this feature."
msgstr ""

#: collective/behavior/amp/validators.py:39
msgid "Image should be no wider than 600px, and no taller than 60px."
msgstr ""
Expand All @@ -44,26 +52,46 @@ msgstr ""
msgid "Image should have a wide aspect ratio."
msgstr ""

#: collective/behavior/amp/interfaces.py:23
#: collective/behavior/amp/interfaces.py:24
msgid "Publisher Logo"
msgstr ""

#: collective/behavior/amp/browser/controlpanel.py:13
msgid "Settings for AMP integration."
msgstr ""

#: collective/behavior/amp/interfaces.py:24
msgid "The logo of the publisher. Should have a wide aspect ratio, and should be no wider than 600px, and no taller than 60px."
#: collective/behavior/amp/interfaces.py:50
msgid "The \"amp-analytics\" elements that will be used to measure activity on AMP documents. See <a href=\"https://developers.google.com/analytics/devguides/collection/amp-analytics/\">Adding Analytics to your AMP pages</a> for examples on how to implement this feature."
msgstr ""

#: collective/behavior/amp/interfaces.py:35
msgid "The value (in JSON-LD format) of the \"amp-analytics\" element that will be used to measure activity on AMP documents."
#: collective/behavior/amp/interfaces.py:25
msgid "The logo of the publisher. Should have a wide aspect ratio, and should be no wider than 600px, and no taller than 60px."
msgstr ""

#: collective/behavior/amp/profiles.zcml:23
msgid "Uninstalls collective.behavior.amp."
msgstr ""

#. Default: "last modified"
#: collective/behavior/amp/browser/view.pt:172
msgid "box_last_modified"
msgstr ""

#. Default: "published"
#: collective/behavior/amp/browser/view.pt:163
msgid "box_published"
msgstr ""

#: collective/behavior/amp/profiles.zcml:23
msgid "collective.behavior.amp: uninstall"
msgstr ""

#. Default: "by ${author}"
#: collective/behavior/amp/browser/view.pt:154
msgid "label_by_author"
msgstr ""

#. Default: "Related content"
#: collective/behavior/amp/browser/view.pt:204
msgid "label_related_items"
msgstr ""
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2016-10-06 20:09+0000\n"
"PO-Revision-Date: 2016-10-06 17:14-0300\n"
"POT-Creation-Date: 2017-04-13 20:23+0000\n"
"PO-Revision-Date: 2017-04-13 17:38-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -14,16 +14,20 @@ msgstr ""
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"
"Language: es\n"
"X-Generator: Poedit 1.8.4\n"
"X-Generator: Poedit 1.8.7.1\n"

#: collective/behavior/amp/profiles.zcml:14
msgid "A behavior for Dexterity-based content types that adds an AMP version of your content."
msgstr "Un behavior para tipos de contenido basados en Dexterity que adiciona una versión AMP de su contenido."

#: collective/behavior/amp/interfaces.py:34
#: collective/behavior/amp/interfaces.py:49
msgid "AMP Analytics"
msgstr "AMP Analytics"

#: collective/behavior/amp/interfaces.py:36
msgid "AMP Sticky Ad"
msgstr "AMP Sticky Ad"

#: collective/behavior/amp/behaviors.zcml:15
#: collective/behavior/amp/browser/controlpanel.py:12
#: collective/behavior/amp/profiles/default/controlpanel.xml
Expand All @@ -38,6 +42,10 @@ msgstr "Soporte para Accelerated Mobile Pages"
msgid "Adds an AMP HTML version of your content."
msgstr "Adiciona una version AMP HTML de su contenido."

#: collective/behavior/amp/interfaces.py:37
msgid "Adds support for ad units that always take a fixed place in the viewport. Fill with the \"amp-ad\" element that will be used as a direct child of \"amp-sticky-ad\". See <a href=\"https://ampbyexample.com/components/amp-sticky-ad/\">amp-sticky-ad</a> for examples on how to implement this feature."
msgstr "Adiciona soporte para publicidad fija en la parte inferior del viewport. Debe llenarse con el elemento \"amp-ad\" que será utilizado dentro del elemento \"amp-sticky-ad\". Consulte <a href=\"https://ampbyexample.com/components/amp-sticky-ad/\">amp-sticky-ad</a> para mayor información y ejemplos de como implementar esta funcionalidad."

#: collective/behavior/amp/validators.py:39
msgid "Image should be no wider than 600px, and no taller than 60px."
msgstr "La imagen no debe ser más ancha que 600px, ni más alta que 60px."
Expand All @@ -46,26 +54,46 @@ msgstr "La imagen no debe ser más ancha que 600px, ni más alta que 60px."
msgid "Image should have a wide aspect ratio."
msgstr "La imagen debe ser en formato paisaje."

#: collective/behavior/amp/interfaces.py:23
#: collective/behavior/amp/interfaces.py:24
msgid "Publisher Logo"
msgstr "Logo del editor"

#: collective/behavior/amp/browser/controlpanel.py:13
msgid "Settings for AMP integration."
msgstr "Configuración de la integración con AMP."

#: collective/behavior/amp/interfaces.py:24
#: collective/behavior/amp/interfaces.py:50
msgid "The \"amp-analytics\" elements that will be used to measure activity on AMP documents. See <a href=\"https://developers.google.com/analytics/devguides/collection/amp-analytics/\">Adding Analytics to your AMP pages</a> for examples on how to implement this feature."
msgstr "Los elementos \"amp-analytics\" que serán utilizados para medir la actividad en los documentos AMP. Consulte <a href=\"https://developers.google.com/analytics/devguides/collection/amp-analytics/\">Agregar Analytics a las páginas AMP </a> para mayor información y ejemplos de como implementar esta funcionalidad."

#: collective/behavior/amp/interfaces.py:25
msgid "The logo of the publisher. Should have a wide aspect ratio, and should be no wider than 600px, and no taller than 60px."
msgstr "El logo del editor. Debe ser en formato paisaje, y no debe ser más ancha que 600px, ni más alta que 60px."

#: collective/behavior/amp/interfaces.py:35
msgid "The value (in JSON-LD format) of the \"amp-analytics\" element that will be used to measure activity on AMP documents."
msgstr "El valor (en formato JSON-LD) del elemento \"amp-analytics\" que será usado para medir la actividad en los documentos AMP."

#: collective/behavior/amp/profiles.zcml:23
msgid "Uninstalls collective.behavior.amp."
msgstr "Desinstala collective.behavior.amp."

#. Default: "last modified"
#: collective/behavior/amp/browser/view.pt:172
msgid "box_last_modified"
msgstr "última modificación"

#. Default: "published"
#: collective/behavior/amp/browser/view.pt:163
msgid "box_published"
msgstr "publicado"

#: collective/behavior/amp/profiles.zcml:23
msgid "collective.behavior.amp: uninstall"
msgstr "collective.behavior.amp: uninstall"

#. Default: "by ${author}"
#: collective/behavior/amp/browser/view.pt:154
msgid "label_by_author"
msgstr "\"por ${author}\""

#. Default: "Related content"
#: collective/behavior/amp/browser/view.pt:204
msgid "label_related_items"
msgstr "Contenido relacionado"
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2016-10-06 20:09+0000\n"
"PO-Revision-Date: 2016-10-06 17:19-0300\n"
"POT-Creation-Date: 2017-04-13 20:23+0000\n"
"PO-Revision-Date: 2017-04-13 17:52-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -14,16 +14,20 @@ msgstr ""
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"
"Language: pt_BR\n"
"X-Generator: Poedit 1.8.4\n"
"X-Generator: Poedit 1.8.7.1\n"

#: collective/behavior/amp/profiles.zcml:14
msgid "A behavior for Dexterity-based content types that adds an AMP version of your content."
msgstr "Um behavior para tipos de conteúdo baseados no Dexterity que adiciona uma versão AMP de seu conteúdo."

#: collective/behavior/amp/interfaces.py:34
#: collective/behavior/amp/interfaces.py:49
msgid "AMP Analytics"
msgstr "AMP Analytics"

#: collective/behavior/amp/interfaces.py:36
msgid "AMP Sticky Ad"
msgstr "AMP Sticky Ad"

#: collective/behavior/amp/behaviors.zcml:15
#: collective/behavior/amp/browser/controlpanel.py:12
#: collective/behavior/amp/profiles/default/controlpanel.xml
Expand All @@ -38,6 +42,10 @@ msgstr "Suporte para Accelerated Mobile Pages"
msgid "Adds an AMP HTML version of your content."
msgstr "Adiciona uma versão AMP HTML de seu conteúdo."

#: collective/behavior/amp/interfaces.py:37
msgid "Adds support for ad units that always take a fixed place in the viewport. Fill with the \"amp-ad\" element that will be used as a direct child of \"amp-sticky-ad\". See <a href=\"https://ampbyexample.com/components/amp-sticky-ad/\">amp-sticky-ad</a> for examples on how to implement this feature."
msgstr "Adiciona suporte para publicidade que fica fixa na parte inferior do viewport. Deve ser informado o elemento \"amp-ad\" que será usado dentro do elemento \"amp-sticky-ad\". Confira exemplos de como implementar esta funcionalidade em <a href=\"https://ampbyexample.com/components/amp-sticky-ad/\">amp-sticky-ad</a>."

#: collective/behavior/amp/validators.py:39
msgid "Image should be no wider than 600px, and no taller than 60px."
msgstr "A imagem não deve ser mais larga do que 600px, nem mais alta do que 60px."
Expand All @@ -46,26 +54,46 @@ msgstr "A imagem não deve ser mais larga do que 600px, nem mais alta do que 60p
msgid "Image should have a wide aspect ratio."
msgstr "A image deve estar em formato paisagem."

#: collective/behavior/amp/interfaces.py:23
#: collective/behavior/amp/interfaces.py:24
msgid "Publisher Logo"
msgstr "Logo do editor"

#: collective/behavior/amp/browser/controlpanel.py:13
msgid "Settings for AMP integration."
msgstr "Configuração da integração AMP."

#: collective/behavior/amp/interfaces.py:24
#: collective/behavior/amp/interfaces.py:50
msgid "The \"amp-analytics\" elements that will be used to measure activity on AMP documents. See <a href=\"https://developers.google.com/analytics/devguides/collection/amp-analytics/\">Adding Analytics to your AMP pages</a> for examples on how to implement this feature."
msgstr "Os elementos \"amp-analytics\" que serão utilizados para medir a atividade nos documentos AMP. Confira exemplos de como implementar esta funcionalidade em <a href=\"https://developers.google.com/analytics/devguides/collection/amp-analytics/\">Adição do Google Analytics às suas páginas AMP</a>"

#: collective/behavior/amp/interfaces.py:25
msgid "The logo of the publisher. Should have a wide aspect ratio, and should be no wider than 600px, and no taller than 60px."
msgstr "O logo do editor. Deve estar em formato paisagem, e não deve ser mais largo do que 600px, nem mais alto do que 60px."

#: collective/behavior/amp/interfaces.py:35
msgid "The value (in JSON-LD format) of the \"amp-analytics\" element that will be used to measure activity on AMP documents."
msgstr "O valor (em formato JSON-LD) do elemento \"amp-analytics\" que será usado para medir a atividade nos documentos AMP."

#: collective/behavior/amp/profiles.zcml:23
msgid "Uninstalls collective.behavior.amp."
msgstr "Desinstala o collective.behavior.amp."

#. Default: "last modified"
#: collective/behavior/amp/browser/view.pt:172
msgid "box_last_modified"
msgstr "última modificação"

#. Default: "published"
#: collective/behavior/amp/browser/view.pt:163
msgid "box_published"
msgstr "publicado"

#: collective/behavior/amp/profiles.zcml:23
msgid "collective.behavior.amp: uninstall"
msgstr "collective.behavior.amp: uninstall"

#. Default: "by ${author}"
#: collective/behavior/amp/browser/view.pt:154
msgid "label_by_author"
msgstr "por ${author}"

#. Default: "Related content"
#: collective/behavior/amp/browser/view.pt:204
msgid "label_related_items"
msgstr "Conteúdo relacionado"

0 comments on commit 916cdc8

Please sign in to comment.