Skip to content

Commit a3cbc67

Browse files
committed
update information on add-on installation.
update french and spanish strings. update version to 19.2b6
1 parent 81a6720 commit a3cbc67

File tree

6 files changed

+107
-44
lines changed

6 files changed

+107
-44
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
addon/doc/*.css
22
addon/doc/en/
3+
addon/synthDrivers/ibmtts
34
*_docHandler.py
45
*.html
56
*.ini

IBMTTS.pot

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: 'IBMTTS' '19.2b4'\n"
9+
"Project-Id-Version: 'IBMTTS' '19.2b6'\n"
1010
"Report-Msgid-Bugs-To: 'nvda-translations@freelists.org'\n"
11-
"POT-Creation-Date: 2019-04-06 16:17-0600\n"
11+
"POT-Creation-Date: 2019-04-22 03:38-0600\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -206,18 +206,28 @@ msgstr ""
206206
msgid "Error copying IBMTTS files"
207207
msgstr ""
208208

209-
#. # Translators: message box when user is installing the addon in NVDA.
210-
#: addon\installTasks.py:7
209+
#. Translators: the message shown if the driver can't find libraries during installation.
210+
#: addon\installTasks.py:9
211211
msgid ""
212212
"The synthesizer won't be available until you set IBMTTS files. NVDA won't "
213213
"show this synthesizer in teh synthesizers list because you need to set the "
214214
"IBMTTS files location first.\n"
215-
"To do it open the NVDA settings dialog, select IBMTTS category and use the "
216-
"\"Browse for IBMTTS library\" button to select the IBMTTS files folder."
215+
"\tTo do it open the NVDA settings dialog, select IBMTTS category and use the "
216+
"\"Browse for IBMTTS library\" button to select the IBMTTS files folder.\n"
217+
msgstr ""
218+
219+
#. Translators: message box when user is installing the addon in NVDA.
220+
#: addon\installTasks.py:13
221+
msgid ""
222+
"if you are using another copy of IBMTTS or similar with a different name, "
223+
"you should not load this driver in the same NVDA session. If you do it, NVDA "
224+
"will fail.\n"
225+
"To resolve it switch to another synthesizer (E.G espeak) then restart NVDA. "
226+
"Afther that, you can use this new driver."
217227
msgstr ""
218228

219229
#. Translators: title of message box when user is installing NVDA
220-
#: addon\installTasks.py:14
230+
#: addon\installTasks.py:19
221231
msgid "IBMTTS driver for NVDA"
222232
msgstr ""
223233

addon/installTasks.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
from os import path
2-
import wx, gui, addonHandler
1+
# -*- coding: UTF-8 -*-
2+
#Copyright (C) 2009 - 2019 David CM, released under the GPL.
3+
# Author: David CM <dhf360@gmail.com> and others.
4+
5+
from synthDrivers import _settingsDB
6+
import config, gui, os, wx, addonHandler
37
addonHandler.initTranslation()
48

9+
msg=""
10+
if not os.path.exists(os.path.join(os.path.dirname(__file__), 'synthDrivers', config.conf['ibmeci']['TTSPath'], config.conf['ibmeci']['dllName'])):
11+
# Translators: the message shown if the driver can't find libraries during installation.
12+
msg = _("""The synthesizer won't be available until you set IBMTTS files. NVDA won't show this synthesizer in teh synthesizers list because you need to set the IBMTTS files location first.
13+
To do it open the NVDA settings dialog, select IBMTTS category and use the "Browse for IBMTTS library" button to select the IBMTTS files folder.\n""")
514

6-
## Translators: message box when user is installing the addon in NVDA.
7-
msg = _("""The synthesizer won't be available until you set IBMTTS files. NVDA won't show this synthesizer in teh synthesizers list because you need to set the IBMTTS files location first.
8-
To do it open the NVDA settings dialog, select IBMTTS category and use the "Browse for IBMTTS library" button to select the IBMTTS files folder.""")
15+
# Translators: message box when user is installing the addon in NVDA.
16+
msg += _("""if you are using another copy of IBMTTS or similar with a different name, you should not load this driver in the same NVDA session. If you do it, NVDA will fail.
17+
To resolve it switch to another synthesizer (E.G espeak) then restart NVDA. Afther that, you can use this new driver.""")
918

1019
def onInstall():
11-
if not path.exists(path.join(path.dirname(__file__), 'synthDrivers', 'ibmtts')):
12-
gui.messageBox(msg,
13-
# Translators: title of message box when user is installing NVDA
14-
_("IBMTTS driver for NVDA"), wx.OK)
20+
gui.messageBox(msg,
21+
# Translators: title of message box when user is installing NVDA
22+
_("IBMTTS driver for NVDA"), wx.OK)

addon/locale/es/LC_MESSAGES/nvda.po

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: IBMTTS for NVDA\n"
99
"Report-Msgid-Bugs-To: 'nvda-translations@freelists.org'\n"
10-
"POT-Creation-Date: 2019-04-06 16:09-0600\n"
11-
"PO-Revision-Date: 2019-04-06 16:11-0600\n"
12-
"Last-Translator: David CM <dhf360@gmail.com>\n"
10+
"POT-Creation-Date: 2019-04-22 03:38-0600\n"
11+
"PO-Revision-Date: 2019-04-22 12:45+0200\n"
12+
"Last-Translator: Rémy Ruiz <remyruiz@gmail.com>\n"
1313
"Language-Team: José Manuel Delicado <jmdaweb@hotmail.com>\n"
1414
"Language: es\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19-
"X-Generator: Poedit 2.2.1\n"
19+
"X-Generator: Poedit 1.8.12\n"
2020
"X-Poedit-SourceCharset: iso-8859-1\n"
2121

2222
#: addon\synthDrivers\_ibmeci.py:51
@@ -223,29 +223,42 @@ msgstr ""
223223
msgid "Error copying IBMTTS files"
224224
msgstr "Error al copiar los archivos de IBMTTS"
225225

226-
#. # Translators: message box when user is installing the addon in NVDA.
227-
#: addon\installTasks.py:7
226+
#. Translators: the message shown if the driver can't find libraries during installation.
227+
#: addon\installTasks.py:9
228228
msgid ""
229229
"The synthesizer won't be available until you set IBMTTS files. NVDA won't "
230230
"show this synthesizer in teh synthesizers list because you need to set the "
231231
"IBMTTS files location first.\n"
232-
"To do it open the NVDA settings dialog, select IBMTTS category and use the "
233-
"\"Browse for IBMTTS library\" button to select the IBMTTS files folder."
232+
"\tTo do it open the NVDA settings dialog, select IBMTTS category and use the "
233+
"\"Browse for IBMTTS library\" button to select the IBMTTS files folder.\n"
234234
msgstr ""
235235
"El sintetizador no estará disponible hasta que establezcas los archivos de "
236236
"IBMTTS. NVDA no mostrará este sintetizador en la lista de sintetizadores "
237237
"porque necesitas establecer la ubicación de archivos del sintetizador "
238238
"primero.\n"
239-
"Para hacer esto abre el diálogo de configuraciones de NVDA, selecciona la "
239+
"\tPara hacer esto abre el diálogo de configuraciones de NVDA, selecciona la "
240240
"categoría IBMTTS y use el botón para seleccionar la carpeta de archivos "
241-
"IBMTTS."
241+
"IBMTTS.\n"
242+
243+
#. Translators: message box when user is installing the addon in NVDA.
244+
#: addon\installTasks.py:13
245+
msgid ""
246+
"if you are using another copy of IBMTTS or similar with a different name, "
247+
"you should not load this driver in the same NVDA session. If you do it, NVDA "
248+
"will fail.\n"
249+
"To resolve it switch to another synthesizer (E.G espeak) then restart NVDA. "
250+
"Afther that, you can use this new driver."
251+
msgstr ""
252+
"Si estás usando otra copia de IBMTTS o similar con un nombre distinto, no "
253+
"deberías cargar este controlador durante la misma sesión de NVDA. Si lo "
254+
"haces, NVDA fallará.\n"
255+
"Para resolver esto cambia a otro sintetizador (EJ. Espeak) entonces reinicia "
256+
"NVDA. Después de eso, podrás usar este nuevo controlador."
242257

243258
#. Translators: title of message box when user is installing NVDA
244-
#: addon\installTasks.py:14
245-
#, fuzzy
246-
#| msgid "IBMTTS driver"
259+
#: addon\installTasks.py:19
247260
msgid "IBMTTS driver for NVDA"
248-
msgstr "Controlador de IBMTTS"
261+
msgstr "Controlador de IBMTTS para NVDA"
249262

250263
#. Add-on summary, usually the user visible name of the addon.
251264
#. Translators: Summary for this add-on to be shown on installation and add-on information.

addon/locale/fr/LC_MESSAGES/nvda.po

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
#
66
msgid ""
77
msgstr ""
8-
"Project-Id-Version: 'IBMTTS' '19.2b4'\n"
8+
"Project-Id-Version: IBMTTS for NVDA\n"
99
"Report-Msgid-Bugs-To: 'nvda-translations@freelists.org'\n"
10-
"POT-Creation-Date: 2019-04-06 16:17-0600\n"
11-
"PO-Revision-Date: 2019-04-06 16:19-0600\n"
10+
"POT-Creation-Date: 2019-04-22 12:29+0200\n"
11+
"PO-Revision-Date: 2019-04-22 12:48+0200\n"
1212
"Last-Translator: Rémy Ruiz <remyruiz@gmail.com>\n"
1313
"Language-Team: \n"
1414
"Language: fr\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
18-
"X-Generator: Poedit 2.2.1\n"
18+
"X-Generator: Poedit 1.8.12\n"
1919
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
2020

2121
#: addon\synthDrivers\_ibmeci.py:51
@@ -223,25 +223,40 @@ msgstr ""
223223
msgid "Error copying IBMTTS files"
224224
msgstr "Erreur lors de la copie des fichiers IBMTTS"
225225

226-
#. # Translators: message box when user is installing the addon in NVDA.
227-
#: addon\installTasks.py:7
226+
#. Translators: the message shown if the driver can't find libraries during installation.
227+
#: addon\installTasks.py:9
228228
msgid ""
229229
"The synthesizer won't be available until you set IBMTTS files. NVDA won't "
230230
"show this synthesizer in teh synthesizers list because you need to set the "
231231
"IBMTTS files location first.\n"
232-
"To do it open the NVDA settings dialog, select IBMTTS category and use the "
233-
"\"Browse for IBMTTS library\" button to select the IBMTTS files folder."
232+
"\tTo do it open the NVDA settings dialog, select IBMTTS category and use the "
233+
"\"Browse for IBMTTS library\" button to select the IBMTTS files folder.\n"
234234
msgstr ""
235235
"Le synthétiseur ne sera disponible que lorsque vous aurez défini les "
236236
"fichiers IBMTTS. NVDA n’affiche pas ce synthétiseur dans la liste des "
237237
"synthétiseurs, car vous devez d’abord définir l’emplacement des fichiers "
238238
"IBMTTS.\n"
239-
"Pour ce faire, ouvrez le dialogue des paramètres NVDA, sélectionnez la "
239+
"\tPour ce faire, ouvrez le dialogue des paramètres NVDA, sélectionnez la "
240240
"catégorie IBMTTS et utilisez le bouton \"Rechercher une bibliothèque IBMTTS"
241-
"\" pour sélectionner le dossier de fichiers IBMTTS."
241+
"\" pour sélectionner le dossier de fichiers IBMTTS.\n"
242+
243+
#. Translators: message box when user is installing the addon in NVDA.
244+
#: addon\installTasks.py:13
245+
msgid ""
246+
"if you are using another copy of IBMTTS or similar with a different name, "
247+
"you should not load this driver in the same NVDA session. If you do it, NVDA "
248+
"will fail.\n"
249+
"To resolve it switch to another synthesizer (E.G espeak) then restart NVDA. "
250+
"Afther that, you can use this new driver."
251+
msgstr ""
252+
"Si vous utilisez une autre copie d'IBMTTS ou similaire avec un nom "
253+
"différent, vous ne devez pas charger ce pilote au cours de la même session "
254+
"NVDA. Si vous le faites, NVDA échouera.\n"
255+
"Pour résoudre ce changement de synthétiseur (par exemple, eSpeak), "
256+
"redémarrez NVDA. Après cela, vous pouvez utiliser ce nouveau pilote."
242257

243258
#. Translators: title of message box when user is installing NVDA
244-
#: addon\installTasks.py:14
259+
#: addon\installTasks.py:19
245260
msgid "IBMTTS driver for NVDA"
246261
msgstr "Pilote IBMTTS pour NVDA"
247262

@@ -256,3 +271,19 @@ msgstr "Pilote IBMTTS"
256271
#: buildVars.py:20
257272
msgid "This is the IBMTTS synthesizer driver for NVDA."
258273
msgstr "Ceci est le pilote du synthétiseur IBMTTS pour NVDA."
274+
275+
#~ msgid ""
276+
#~ "The synthesizer won't be available until you set IBMTTS files. NVDA "
277+
#~ "won't show this synthesizer in teh synthesizers list because you need to "
278+
#~ "set the IBMTTS files location first.\n"
279+
#~ "To do it open the NVDA settings dialog, select IBMTTS category and use "
280+
#~ "the \"Browse for IBMTTS library\" button to select the IBMTTS files "
281+
#~ "folder."
282+
#~ msgstr ""
283+
#~ "Le synthétiseur ne sera disponible que lorsque vous aurez défini les "
284+
#~ "fichiers IBMTTS. NVDA n’affiche pas ce synthétiseur dans la liste des "
285+
#~ "synthétiseurs, car vous devez d’abord définir l’emplacement des fichiers "
286+
#~ "IBMTTS.\n"
287+
#~ "Pour ce faire, ouvrez le dialogue des paramètres NVDA, sélectionnez la "
288+
#~ "catégorie IBMTTS et utilisez le bouton \"Rechercher une bibliothèque "
289+
#~ "IBMTTS\" pour sélectionner le dossier de fichiers IBMTTS."

buildVars.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
2020
"addon_description" : _("""This is the IBMTTS synthesizer driver for NVDA."""),
2121
# version
22-
"addon_version" : "19.2b5",
22+
"addon_version" : "19.2b6",
2323
# Author(s)
2424
"addon_author" : u"David CM <dhf360@gmail.com> and others",
2525
# URL for the add-on documentation support
@@ -41,11 +41,11 @@
4141
# You can use glob expressions here, they will be expanded.
4242
pythonSources = [path.join("addon", "synthDrivers", "*.py"),
4343
path.join("addon", "globalPlugins", "ibmtts.py"),
44-
path.join('addon', 'installTasks.py'),
45-
path.join("addon", "synthDrivers", "ibmtts", "*.*")]
44+
path.join('addon', 'installTasks.py')]
4645

4746
# Files that contain strings for translation. Usually your python sources
4847
i18nSources = pythonSources + ["buildVars.py"]
48+
pythonSources.append(path.join("addon", "synthDrivers", "ibmtts", "*.*"))
4949

5050
# Files that will be ignored when building the nvda-addon file
5151
# Paths are relative to the addon directory, not to the root directory of your addon sources.

0 commit comments

Comments
 (0)