Skip to content

Commit

Permalink
Merge d4bd0b6 into aaea538
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Jun 10, 2016
2 parents aaea538 + d4bd0b6 commit effce8a
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 14 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="Start speaking the text"
data-label-playing="Pause speak"
data-label-paused="Resume speak"
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="Start speaking the text"
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 19:52+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 @@ -38,6 +38,18 @@ msgstr ""
msgid "Only objects of these content types will display a Text-to-Speech button."
msgstr ""

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

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

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Start speaking the text"
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,20 +1,21 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2016-03-28 19:39+0000\n"
"PO-Revision-Date: 2016-03-28 16:40-0300\n"
"POT-Creation-Date: 2016-06-10 19:52+0000\n"
"PO-Revision-Date: 2016-06-10 16:55-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"
"Language: es\n"
"X-Generator: Poedit 1.7.5\n"
"X-Poedit-SourceCharset: UTF-8\n"

#: collective/texttospeech/profiles.zcml:14
msgid "Add Text-to-Speech feature to Plone."
Expand All @@ -40,6 +41,18 @@ msgstr "Si está seleccionado, la funcionalidad de Text-to-Speech estará habili
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 speak"
msgstr "Pausar el discurso"

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Resume speak"
msgstr "Continuar el discurso"

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Start speaking the text"
msgstr "Comenzar el discurso del texto"

#: 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,20 +1,21 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2016-03-28 19:39+0000\n"
"PO-Revision-Date: 2016-03-28 16:44-0300\n"
"POT-Creation-Date: 2016-06-10 19:52+0000\n"
"PO-Revision-Date: 2016-06-10 16:58-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language-Code: en\n"
"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"
"X-Poedit-SourceCharset: UTF-8\n"

#: collective/texttospeech/profiles.zcml:14
msgid "Add Text-to-Speech feature to Plone."
Expand All @@ -40,6 +41,18 @@ msgstr "Se estiver selecionado, a funcionalidade de Text-to-Speech estará habil
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 speak"
msgstr "Pausar a fala"

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Resume speak"
msgstr "Continuar a fala"

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Start speaking the text"
msgstr "Começar a fala do texto"

#: 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 effce8a

Please sign in to comment.