Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 15 - Translate widget #16

Merged
merged 1 commit into from
Jun 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 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 and update translations.
[rodfersou, hvelarde]

- Simplify static files stack.
[rodfersou]

Expand Down
17 changes: 15 additions & 2 deletions src/collective/texttospeech/browser/templates/texttospeech.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
<div id="viewlet-texttospeech"
<div i18n:domain="collective.texttospeech"
id="viewlet-texttospeech"
data-label-stopped="Listen"
data-label-playing="Pause"
data-label-paused="Resume"
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"
title="Speech synthesis control"
i18n:attributes="value; title" />
</div>
18 changes: 17 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 20:11+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,26 @@ msgstr ""
msgid "If selected, Text-to-Speech feature will be enabled sitewide."
msgstr ""

#: collective/texttospeech/browser/templates/texttospeech.pt:1
msgid "Listen"
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 "Resume"
msgstr ""

#: collective/texttospeech/browser/templates/texttospeech.pt:11
msgid "Speech synthesis control"
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,50 +1,67 @@
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 20:11+0000\n"
"PO-Revision-Date: 2016-06-10 17:16-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."
msgstr "Adiciona la funcionalidad de Text-to-Speech a Plone."
msgstr "Adiciona la funcionalidad de síntesis de habla a Plone."

#: collective/texttospeech/interfaces.py:19
msgid "Enable Text-to-Speech?"
msgstr "¿Habilitar Text-to-Speech?"
msgstr "¿Habilitar síntesis de habla?"

#: collective/texttospeech/interfaces.py:25
msgid "Enabled Content Types"
msgstr "Tipos de contenido habilitados"

#: collective/texttospeech/controlpanel.py:11
msgid "Here you can modify the settings for collective.texttospeech."
msgstr "Aquí puede modificar las configuraciones de collective.texttospeech."
msgstr "Aquí puede modificar las configuraciones de síntesis de habla."

#: collective/texttospeech/interfaces.py:20
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."
msgstr "Si está seleccionado, la funcionalidad de síntesis de habla estará habilitada en el sitio."

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

#: 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."
msgstr "Sólo los objetos de estos tipos de contenido mostrarán el botón de síntesis de habla."

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

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

#: collective/texttospeech/browser/templates/texttospeech.pt:11
msgid "Speech synthesis control"
msgstr "Control de la síntesis de habla"

#: collective/texttospeech/controlpanel.py:10
#: collective/texttospeech/profiles.zcml:14
#: collective/texttospeech/profiles/default/controlpanel.xml
msgid "Text-to-Speech"
msgstr "Text-to-Speech"
msgstr "Síntesis de habla"

#: collective/texttospeech/profiles.zcml:23
msgid "Uninstalls collective.texttospeech."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,50 +1,67 @@
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 20:11+0000\n"
"PO-Revision-Date: 2016-06-10 17:15-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."
msgstr "Adiciona a funcionalidade de Text-to-Speech ao Plone."
msgstr "Adiciona a funcionalidade de síntese de voz ao Plone."

#: collective/texttospeech/interfaces.py:19
msgid "Enable Text-to-Speech?"
msgstr "Habilitar Text-to-Speech?"
msgstr "Habilitar síntese de voz?"

#: collective/texttospeech/interfaces.py:25
msgid "Enabled Content Types"
msgstr "Tipos de conteúdo habilitados"

#: collective/texttospeech/controlpanel.py:11
msgid "Here you can modify the settings for collective.texttospeech."
msgstr "Aqui pode modificar as configurações do collective.texttospeech."
msgstr "Aqui pode modificar as configurações de síntese de voz."

#: collective/texttospeech/interfaces.py:20
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."
msgstr "Se estiver selecionado, a funcionalidade de síntese de voz estará habilitada no site."

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

#: 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."
msgstr "Só objetos de esses tipos de conteúdo mostrarão o botão de síntese de voz."

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

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

#: collective/texttospeech/browser/templates/texttospeech.pt:11
msgid "Speech synthesis control"
msgstr "Controle da síntese de voz"

#: collective/texttospeech/controlpanel.py:10
#: collective/texttospeech/profiles.zcml:14
#: collective/texttospeech/profiles/default/controlpanel.xml
msgid "Text-to-Speech"
msgstr "Text-to-Speech"
msgstr "Síntese de voz"

#: collective/texttospeech/profiles.zcml:23
msgid "Uninstalls collective.texttospeech."
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.