Skip to content

Commit

Permalink
Merge 32efb52 into aaea538
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Jun 10, 2016
2 parents aaea538 + 32efb52 commit c0c06b4
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
1.0b1 (unreleased)
------------------

- Implement i18n on the widget (closes `#15`_).
[rodfersou]

- Simplify static files stack.
[rodfersou]

Expand All @@ -22,3 +25,5 @@ Changelog
------------------

- Initial release.

.. _`#15`: https://github.com/collective/collective.texttospeech/issues/15
16 changes: 14 additions & 2 deletions src/collective/texttospeech/browser/templates/texttospeech.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
<div id="viewlet-texttospeech"
<div i18n:domain="collective.texttospeech"
id="viewlet-texttospeech"
data-label-stopped="Listen page"
data-label-playing="Pause"
data-label-paused="Play"
tal:condition="view/enabled"
tal:attributes="data-voice view/voice">
tal:attributes="data-voice view/voice"
i18n:attributes="data-label-stopped;
data-label-playing;
data-label-paused">
<input id="texttospeech-button"
class="stopped"
type="button"
value="Listen page"
i18n:attributes="value" />
</div>
14 changes: 13 additions & 1 deletion src/collective/texttospeech/locales/collective.texttospeech.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2016-03-28 19:39+0000\n"
"POT-Creation-Date: 2016-06-10 18:49+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 Down Expand Up @@ -34,10 +34,22 @@ msgstr ""
msgid "If selected, Text-to-Speech feature will be enabled sitewide."
msgstr ""

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Listen page"
msgstr ""

#: collective/texttospeech/interfaces.py:26
msgid "Only objects of these content types will display a Text-to-Speech button."
msgstr ""

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Pause"
msgstr ""

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Play"
msgstr ""

#: collective/texttospeech/controlpanel.py:10
#: collective/texttospeech/profiles.zcml:14
#: collective/texttospeech/profiles/default/controlpanel.xml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2016-03-28 19:39+0000\n"
"POT-Creation-Date: 2016-06-10 18:49+0000\n"
"PO-Revision-Date: 2016-03-28 16:40-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -36,10 +36,22 @@ msgstr "Aquí puede modificar las configuraciones de collective.texttospeech."
msgid "If selected, Text-to-Speech feature will be enabled sitewide."
msgstr "Si está seleccionado, la funcionalidad de Text-to-Speech estará habilitada en el sitio."

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Listen page"
msgstr ""

#: collective/texttospeech/interfaces.py:26
msgid "Only objects of these content types will display a Text-to-Speech button."
msgstr "Sólo los objetos de estos tipos de contenido mostrarán el botón de Text-to-Speech."

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Pause"
msgstr ""

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Play"
msgstr ""

#: collective/texttospeech/controlpanel.py:10
#: collective/texttospeech/profiles.zcml:14
#: collective/texttospeech/profiles/default/controlpanel.xml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2016-03-28 19:39+0000\n"
"POT-Creation-Date: 2016-06-10 18:49+0000\n"
"PO-Revision-Date: 2016-03-28 16:44-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -11,8 +13,6 @@ msgstr ""
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 1.7.5\n"

Expand All @@ -36,10 +36,22 @@ msgstr "Aqui pode modificar as configurações do collective.texttospeech."
msgid "If selected, Text-to-Speech feature will be enabled sitewide."
msgstr "Se estiver selecionado, a funcionalidade de Text-to-Speech estará habilitada no site."

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Listen page"
msgstr "Escutar página"

#: collective/texttospeech/interfaces.py:26
msgid "Only objects of these content types will display a Text-to-Speech button."
msgstr "Só objetos de esses tipos de conteúdo mostrarão o botão de Text-to-Speech."

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Pause"
msgstr "Pausar"

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Play"
msgstr "Tocar"

#: collective/texttospeech/controlpanel.py:10
#: collective/texttospeech/profiles.zcml:14
#: collective/texttospeech/profiles/default/controlpanel.xml
Expand Down
2 changes: 1 addition & 1 deletion src/collective/texttospeech/static/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0c06b4

Please sign in to comment.