From b80eb9c03802e7eabdc9f8ba2470e8aad82c5a1b Mon Sep 17 00:00:00 2001 From: ruifontes Date: Tue, 10 Aug 2021 17:44:12 +0100 Subject: [PATCH] Version 21.08 Changed the update routine --- addon/GlobalPlugins/frequentText/__init__.py | 315 +------------------ addon/GlobalPlugins/frequentText/update.py | 154 +++++++++ addon/doc/es/readme.md | 19 +- addon/doc/pt_BR/readme.md | 19 +- addon/doc/pt_PT/readme.md | 19 +- addon/installTasks.py | 2 +- addon/locale/en/LC_MESSAGES/nvda.po | 155 ++++----- addon/locale/es/LC_MESSAGES/nvda.po | 211 +++++++------ addon/locale/pt_BR/LC_MESSAGES/nvda.po | 209 ++++++------ addon/locale/pt_PT/LC_MESSAGES/nvda.po | 210 ++++++------- addon/locale/sr/LC_MESSAGES/nvda.po | 207 ++++++------ buildVars.py | 4 +- readme.md | 17 +- 13 files changed, 681 insertions(+), 860 deletions(-) create mode 100644 addon/GlobalPlugins/frequentText/update.py diff --git a/addon/GlobalPlugins/frequentText/__init__.py b/addon/GlobalPlugins/frequentText/__init__.py index d82324d..357a5ca 100644 --- a/addon/GlobalPlugins/frequentText/__init__.py +++ b/addon/GlobalPlugins/frequentText/__init__.py @@ -15,24 +15,10 @@ import globalPluginHandler from scriptHandler import script import addonHandler +# For update process +from . update import * +# For translation process addonHandler.initTranslation() -import ui - -# for the auto update process -import globalVars -import winsound -from threading import Thread -from time import sleep -import speech -import urllib.request -import json -import config -from gui.settingsDialogs import NVDASettingsDialog, SettingsPanel -from gui import guiHelper, nvdaControls -import core -import socket -import shutil -import sys # Global vars _ffIniFile = os.path.join(os.path.dirname(__file__), "frequentText.ini") @@ -40,40 +26,14 @@ dictBlocks = {} defCatg = "" -# for the auto update process -def initConfiguration(): - confspec = { - "isUpgrade": "boolean(default=True)", - } - config.conf.spec["FrequentText"] = confspec - -def getConfig(key): - value = config.conf["FrequentText"][key] - return value - -def setConfig(key, value): - try: - config.conf.profiles[0]["FrequentText"][key] = value - except: - config.conf["FrequentText"][key] = value - -initConfiguration() -tempPropiedad = getConfig("isUpgrade") -IS_WinON = False -ID_TRUE = wx.NewIdRef() -ID_FALSE = wx.NewIdRef() - class GlobalPlugin(globalPluginHandler.GlobalPlugin): def __init__(self): super(globalPluginHandler.GlobalPlugin, self).__init__() self.dialog = None # for the auto update process - NVDASettingsDialog.categoryClasses.append(FrequentTextPanel) - self._MainWindows = HiloComplemento(1) - self._MainWindows.start() - self.messageObj = None - self.x = 0 + _MainWindows = Initialize() + _MainWindows.start() def readConfig(self): global Catg @@ -693,268 +653,3 @@ def updateBlocks(self, dictBlocks, index): self.listBox.Focus(index) self.listBox.Select(index) - -# for the auto update process -class FrequentTextPanel(SettingsPanel): - title = _("Frequent text") - - def makeSettings(self, sizer): - helper=guiHelper.BoxSizerHelper(self, sizer=sizer) - # Translators: Checkbox name in the configuration dialog - self.FreqTxtChk = helper.addItem(wx.CheckBox(self, label=_("Check for updates at startup"))) - self.FreqTxtChk.Bind(wx.EVT_CHECKBOX, self.onChk) - - self.FreqTxtChk.Value = tempPropiedad - - def onSave(self): - setConfig("isUpgrade", self.FreqTxtChk.Value) - - def onChk(self, event): - global tempPropiedad - tempPropiedad = self.FreqTxtChk.Value - - -class HiloComplemento(Thread): - def __init__(self, opcion): - super(HiloComplemento, self).__init__() - self.opcion = opcion - self.daemon = True - - def run(self): - def upgradeVerify(): - if IS_WinON == False: - if tempPropiedad == True: - p = urllib.request.Request("https://api.github.com/repos/ruifontes/frequentText/releases") - r = urllib.request.urlopen(p).read() - githubApi = json.loads(r.decode('utf-8')) - for addon in addonHandler.getAvailableAddons(): - if addon.manifest['name'] == "frequentText": - installedVersion = addon.manifest['version'] - if githubApi[0]["tag_name"] != installedVersion: - self._MainWindows = UpdateDialog(gui.mainFrame) - gui.mainFrame.prePopup() - self._MainWindows.Show() - - def startUpgrade(): - if IS_WinON == False: - self._MainWindows = ActualizacionDialogo(gui.mainFrame) - gui.mainFrame.prePopup() - self._MainWindows.Show() - - if self.opcion == 1: - wx.CallAfter(upgradeVerify) - elif self.opcion == 2: - wx.CallAfter(startUpgrade) - -class HiloActualizacion(Thread): - def __init__(self, frame): - super(HiloActualizacion, self).__init__() - - self.frame = frame - - p = urllib.request.Request("https://api.github.com/repos/ruifontes/frequentText/releases") - r = urllib.request.urlopen(p).read() - githubApi = json.loads(r.decode('utf-8')) - self.nombreUrl = githubApi[0]['assets'][0]['browser_download_url'] - - self.directorio = os.path.join(globalVars.appArgs.configPath, "tempFreqText") - - self.daemon = True - self.start() - - def generaFichero(self): - if os.path.exists(self.directorio) == False: - os.mkdir(self.directorio) - nuevoIndex = len(os.listdir(self.directorio)) - return os.path.join(self.directorio, "temp%s.nvda-addon" % nuevoIndex) - - def humanbytes(self, B): # Convierte bytes - B = float(B) - KB = float(1024) - MB = float(KB ** 2) # 1,048,576 - GB = float(KB ** 3) # 1,073,741,824 - TB = float(KB ** 4) # 1,099,511,627,776 - - if B < KB: - return '{0} {1}'.format(B,'Bytes' if 0 == B > 1 else 'Byte') - elif KB <= B < MB: - return '{0:.2f} KB'.format(B/KB) - elif MB <= B < GB: - return '{0:.2f} MB'.format(B/MB) - elif GB <= B < TB: - return '{0:.2f} GB'.format(B/GB) - elif TB <= B: - return '{0:.2f} TB'.format(B/TB) - - def __call__(self, block_num, block_size, total_size): - readsofar = block_num * block_size - if total_size > 0: - percent = readsofar * 1e2 / total_size - wx.CallAfter(self.frame.onDescarga, percent) - sleep(1 / 995) - wx.CallAfter(self.frame.TextoRefresco, _("Please wait\n" + "Downloading %s" % self.humanbytes(readsofar))) - if readsofar >= total_size: - pass - else: - wx.CallAfter(self.frame.TextoRefresco, _("Please wait...\n" + "Downloading %s" % self.humanbytes(readsofar))) - - def run(self): - try: - fichero = self.generaFichero() - socket.setdefaulttimeout(15) - opener = urllib.request.build_opener() - opener.addheaders = [('User-agent', 'Mozilla/5.0')] - urllib.request.install_opener(opener) - urllib.request.urlretrieve(self.nombreUrl, fichero, reporthook=self.__call__) - bundle = addonHandler.AddonBundle(fichero) - if not addonHandler.addonVersionCheck.hasAddonGotRequiredSupport(bundle): - pass - else: - bundleName = bundle.manifest['name'] - isDisabled = False - for addon in addonHandler.getAvailableAddons(): - if bundleName == addon.manifest['name']: - if addon.isDisabled: - isDisabled = True - if not addon.isPendingRemove: - addon.requestRemove() - break - addonHandler.installAddonBundle(bundle) - # Translators: Mensaje que anuncia la finalización del proceso. - wx.CallAfter(self.frame.done, _("Update finished.\nYou must restart NVDA for these changes to take effect.\nPress the Confirm button to restart or the Close to terminate without restarting")) - except: - # Translators: Mensaje que anuncia la existencia de un error - wx.CallAfter(self.frame.error, _("Error.\n" + "Check the Internet connection and try again.\n" + "You may close this window")) - try: - shutil.rmtree(self.directorio, ignore_errors=True) - except: - pass - -class UpdateDialog(wx.Dialog): - def __init__(self, parent): - super(UpdateDialog, self).__init__(parent, -1, title=_("Frequent text"), size=(350, 150)) - - global IS_WinON - IS_WinON = True - Panel = wx.Panel(self) - - #Translators: Mensaje que informa de una nueva versión - label1 = wx.StaticText(Panel, wx.ID_ANY, label=_("Available a new version of this add-on. Do you want to download and install it now?")) - self.downloadButton = wx.Button(Panel, wx.ID_ANY, _("&Download and install")) - self.downloadButton.Bind(wx.EVT_BUTTON, self.download) - self.closeButton = wx.Button(Panel, wx.ID_CANCEL, _("&Close")) - self.closeButton.Bind(wx.EVT_BUTTON, self.close, id=wx.ID_CANCEL) - - sizerV = wx.BoxSizer(wx.VERTICAL) - sizerH = wx.BoxSizer(wx.HORIZONTAL) - - sizerV.Add(label1, 0, wx.EXPAND | wx.ALL) - - sizerH.Add(self.downloadButton, 2, wx.CENTER) - sizerH.Add(self.closeButton, 2, wx.CENTER) - - sizerV.Add(sizerH, 0, wx.CENTER) - Panel.SetSizer(sizerV) - - self.CenterOnScreen() - - def download(self, event): - global IS_WinON - IS_WinON = False - self._MainWindows = HiloComplemento(2) - self._MainWindows.start() - self.Destroy() - gui.mainFrame.postPopup() - - def close(self, event): - global IS_WinON - IS_WinON = False - self.Destroy() - gui.mainFrame.postPopup() - -class ActualizacionDialogo(wx.Dialog): - def __init__(self, parent): - - #Translators: título de la ventana - super(ActualizacionDialogo, self).__init__(parent, -1, title=_("Updating Frequent text"), size=(550, 400)) - -# self.SetSize((400, 130)) - self.CenterOnScreen() - - global IS_WinON - IS_WinON = True - - self.Panel = wx.Panel(self) - - self.ProgressDescarga=wx.Gauge(self.Panel, wx.ID_ANY, range=100, style = wx.GA_HORIZONTAL) - self.textorefresco = wx.TextCtrl(self.Panel, wx.ID_ANY, style =wx.TE_MULTILINE|wx.TE_READONLY) - self.textorefresco.Bind(wx.EVT_CONTEXT_MENU, self.skip) - - #Translators: nombre del botón aceptar - self.AceptarTRUE = wx.Button(self.Panel, ID_TRUE, _("&Confirm")) - self.Bind(wx.EVT_BUTTON, self.onAceptarTRUE, id=self.AceptarTRUE.GetId()) - self.AceptarTRUE.Disable() - - self.AceptarFALSE = wx.Button(self.Panel, ID_FALSE, "&Cerrar") - self.Bind(wx.EVT_BUTTON, self.onAceptarFALSE, id=self.AceptarFALSE.GetId()) - self.AceptarFALSE.Disable() - - self.Bind(wx.EVT_CLOSE, self.onNull) - - sizer = wx.BoxSizer(wx.VERTICAL) - sizer_botones = wx.BoxSizer(wx.HORIZONTAL) - - sizer.Add(self.ProgressDescarga, 0, wx.EXPAND) - sizer.Add(self.textorefresco, 1, wx.EXPAND) - - sizer_botones.Add(self.AceptarTRUE, 2, wx.CENTER) - sizer_botones.Add(self.AceptarFALSE, 2, wx.CENTER) - - sizer.Add(sizer_botones, 0, wx.EXPAND) - - self.Panel.SetSizer(sizer) - - HiloActualizacion(self) - - self.textorefresco.SetFocus() - - def skip(self, event): - return - - def onNull(self, event): - pass - - def onDescarga(self, event): - self.ProgressDescarga.SetValue(event) - - def TextoRefresco(self, event): - self.textorefresco.Clear() - self.textorefresco.AppendText(event) - - def done(self, event): - winsound.MessageBeep(0) - self.AceptarTRUE.Enable() - self.AceptarFALSE.Enable() - self.textorefresco.Clear() - self.textorefresco.AppendText(event) - self.textorefresco.SetInsertionPoint(0) - - def error(self, event): - winsound.MessageBeep(16) - self.AceptarFALSE.Enable() - self.textorefresco.Clear() - self.textorefresco.AppendText(event) - self.textorefresco.SetInsertionPoint(0) - - def onAceptarTRUE(self, event): - global IS_WinON - IS_WinON = False - self.Destroy() - gui.mainFrame.postPopup() - core.restart() - - def onAceptarFALSE(self, event): - global IS_WinON - IS_WinON = False - self.Destroy() - gui.mainFrame.postPopup() diff --git a/addon/GlobalPlugins/frequentText/update.py b/addon/GlobalPlugins/frequentText/update.py new file mode 100644 index 0000000..7b8e0bd --- /dev/null +++ b/addon/GlobalPlugins/frequentText/update.py @@ -0,0 +1,154 @@ +# -*- coding: UTF-8 -*- +# Copyright (C) 2021 Rui Fontes and Ângelo Abrantes +# Update add-ons module based on the work of several add-on authors +# This file is covered by the GNU General Public License. +# +# You just need to place this module in the appModule or globalPlugin folder and include in the __init__.py file in the import section: +""" +# For update process +from . update import * +""" +# and in the def __init__(self): +""" + _MainWindows = Initialize() + _MainWindows.start() +""" + +# import the necessary modules. +import ui +import wx +import os +import globalVars +import addonHandler +import addonHandler.addonVersionCheck +import winsound +from threading import Thread +import urllib.request +import json +import config +import gui +from gui.settingsDialogs import NVDASettingsDialog, SettingsPanel +from gui import guiHelper +import core +import shutil + +# For translation +addonHandler.initTranslation() + +def getOurAddon(): + for addon in addonHandler.getAvailableAddons(): + if str(os.path.dirname(__file__).split("\\")[-1:]).replace("[", "").replace("\'", "").replace("]", "") == addon.manifest['name']: + return addon + +ourAddon = getOurAddon() +bundle = getOurAddon() + +def initConfiguration(): + confspec = { + "isUpgrade": "boolean(default=True)", + } + config.conf.spec[ourAddon.manifest["name"]] = confspec + +def getConfig(key): + value = config.conf[str(ourAddon.manifest["name"])][key] + return value + +def setConfig(key, value): + try: + config.conf.profiles[0][ourAddon.manifest["name"]][key] = value + except: + config.conf[ourAddon.manifest["name"]][key] = value + +initConfiguration() +shouldUpdate = getConfig("isUpgrade") +urlRepos = "https://api.github.com/repos/ruifontes/"+ourAddon.manifest["name"]+"/releases" +urlName = "" +urlN = "" +directory = "" + + +class Initialize(Thread): + # Creating the constructor of the newly created GlobalPlugin class. + def __init__(self): + # Call of the constructor of the parent class. + super(Initialize, self).__init__() + # Add a section in NVDA configurations panel + NVDASettingsDialog.categoryClasses.append(AddOnPanel) + self.daemon = True + wx.CallAfter(AddonFlow.upgradeVerify) + + +class AddonFlow(Thread): + def __init__(self): + super(AddonFlow, self).__init__() + self.daemon = True + + def upgradeVerify(): + if globalVars.appArgs.secure or config.isAppX or globalVars.appArgs.launcher: + AddonFlow.doNothing() + if shouldUpdate == True: + p = urllib.request.Request(urlRepos) + r = urllib.request.urlopen(p).read() + githubApi = json.loads(r.decode('utf-8')) + if githubApi[0]["tag_name"] != ourAddon.manifest["version"]: + # Translators: Message dialog box to ask user if wants to update. + if gui.messageBox(_("It is available a new version of this add-on.\n Do you want to update?"), ourAddon.manifest["summary"], style=wx.ICON_QUESTION|wx.YES_NO) == wx.YES: + AddonFlow.download() + else: + AddonFlow.doNothing() + + def download(): + global urlName, urlN, directory, bundle + p = urllib.request.Request(urlRepos) + r = urllib.request.urlopen(p).read() + githubApi = json.loads(r.decode('utf-8')) + urlName = githubApi[0]['assets'][0]['browser_download_url'] + urlN = str(urlName.split("/")[-1:]).replace("[", "").replace("\'", "").replace("]", "") + directory = os.path.join(globalVars.appArgs.configPath, "updates") + if os.path.exists(directory) == False: + os.mkdir(directory) + file = os.path.join(directory, urlN) + opener = urllib.request.build_opener() + opener.addheaders = [('User-agent', 'Mozilla/5.0')] + urllib.request.install_opener(opener) + urllib.request.urlretrieve(urlName, file) + bundle = addonHandler.AddonBundle(file) + if bundle.manifest["name"] == ourAddon.manifest['name']: + AddonFlow.checkCompatibility() + AddonFlow.doNothing() + + def checkCompatibility(): + if addonHandler.addonVersionCheck.isAddonCompatible(ourAddon): + AddonFlow.install() # because is compatible + else: # because is incompatible + # Translators: Message dialog box to inform user that the add-on is not compatible + gui.messageBox(_("This new version of this add-on is not compatible with your version of NVDA.\n The update process will be terminated."), ourAddon.manifest["summary"], style=wx.ICON_WARNING) + AddonFlow.doNothing() + + def install(): + ourAddon.requestRemove() # To remove the old version + addonHandler.installAddonBundle(bundle) # to install the new version + shutil.rmtree(directory, ignore_errors=True) # to delete the downloads folder + core.restart() # to restart NVDA + + def doNothing(): + pass + + +class AddOnPanel(SettingsPanel): + title = ourAddon.manifest["summary"] + + def makeSettings(self, sizer): + helper=guiHelper.BoxSizerHelper(self, sizer=sizer) + # Translators: Checkbox name in the configuration dialog + self.shouldUpdateChk = helper.addItem(wx.CheckBox(self, label=_("Check for updates at startup"))) + self.shouldUpdateChk .Bind(wx.EVT_CHECKBOX, self.onChk) + self.shouldUpdateChk .Value = shouldUpdate + + def onSave(self): + setConfig("isUpgrade", self.shouldUpdateChk.Value) + + def onChk(self, event): + shouldUpdate = self.shouldUpdateChk.Value + + diff --git a/addon/doc/es/readme.md b/addon/doc/es/readme.md index a783090..50e52fb 100644 --- a/addon/doc/es/readme.md +++ b/addon/doc/es/readme.md @@ -1,20 +1,18 @@ # Texto frecuente # + ## Información * Autores: Rui Fontes y Ângelo Abrantes, basado en el trabajo de Marcos António de Oliveira -* Actualizado el 28/07/2021 +* Actualizado el 09/08/2021 * Descargar [versión estable] [1] -* Compatibilidad: NVDA versión 2019.3 y posteriores +* Compatibilidad: NVDA versión 2021.1 y posteriores + ## Presentación Este complemento proporciona una forma de insertar rápidamente texto que se escribe con frecuencia. Para Una mejor organización de los bloques de texto, estos se agrupan en categorías. Es posible estableser una categoría por defecto para acceder a sus bloques rápidamente. -## Auto actualización -A partir de la versión 21.07, se incluye una función de verificación de actualización automática. -Cada vez que se inicia NVDA, comprobará el repositorio para ver si hay alguna nueva versión. - ## Uso Para comenzar a usar este complemento, deberá establecer las categorías y completar los bloques de texto que desea usar en las mismas. @@ -32,4 +30,11 @@ Para pegar el bloque de texto en un campo de edición, simplemente seleccione el En las opciones del complemento también puede cambiar el nombre, cambiar el contenido, pasar a otra categoría, eliminar el bloque de texto o volver al diálogo de categorías. -[1]: https://github.com/ruifontes/frequentText/releases/download/21.06/frequentText-21.06.nvda-addon \ No newline at end of file + +## Actualización automática + +Este complemento incluye una función de actualización automática. +La comprobación de una nueva versión se ejecutará cada vez que se cargue NVDA. +Si no quieres esto, ve a NVDA, Preferencias, Opciones y en la categoría de complementos desmarca la casilla. + +[1]: https://github.com/ruifontes/frequentText/releases/download/21.08/frequentText-21.08.nvda-addon diff --git a/addon/doc/pt_BR/readme.md b/addon/doc/pt_BR/readme.md index 8d9d32b..3b6ac5a 100644 --- a/addon/doc/pt_BR/readme.md +++ b/addon/doc/pt_BR/readme.md @@ -1,20 +1,18 @@ # Texto frequente # + ## Informações * Autores: Rui Fontes e Ângelo Abrantes, baseado no trabalho de Marcos António de Oliveira -* Actualizado em 28/07/2021 +* Actualizado em 09/08/2021 * Descarregar a [versão estável][1] -* Compatibilidade: NVDA versão 2019.3 e seguintes +* Compatibilidade: NVDA versão 2021.1 e seguintes + ## Apresentação Este extra fornece uma maneira de inserir rapidamente blocos de texto digitados com frequência nos documentos que escreve. Para organizar melhor os blocos de texto, eles podem ser agrupados em categorias. Pode definir uma categoria como padrão para acessar mais rapidamente os blocos dessa categoria. -## Actualização automática -A partir da versão 21.07 inclui uma função de verificação automática de actualização. -Cada vez que o NVDA é iniciado, é verificado o repositório para ver se há alguma nova versão. - ## Uso Para começar a usar este extra, precisa definir as categorias e inserir os blocos de texto que deseja usar. @@ -33,4 +31,11 @@ Para colar o bloco de texto num campo de edição, seleccione o bloco e pression Na caixa de diálogo da lista de blocos também pode renomear, alterar o conteúdo, mudar de categoria, eliminar um bloco de texto, ou voltar para a caixa de diálogo das categorias. -[1]: https://github.com/ruifontes/frequentText/releases/download/21.07/frequentText-21.07.nvda-addon + +## Atualização automática + +Este extra inclui um recurso de atualização automática. +A verificação de existência de nova versão será executada cada vez que o NVDA é carregado. +Se não desejar que isso aconteça, vá ao menu do NVDA, Preferências, Configurações e na categoria do extra desmarque a caixa de verificação. + +[1]: https://github.com/ruifontes/frequentText/releases/download/21.08/frequentText-21.08.nvda-addon diff --git a/addon/doc/pt_PT/readme.md b/addon/doc/pt_PT/readme.md index ff1a903..8f20e55 100644 --- a/addon/doc/pt_PT/readme.md +++ b/addon/doc/pt_PT/readme.md @@ -1,20 +1,18 @@ # Texto frequente # + ## Informações * Autores: Rui Fontes e Ângelo Abrantes, baseado no trabalho de Marcos António de Oliveira -* Actualizado em 28/07/2021 +* Actualizado em 09/08/2021 * Descarregar a [versão estável][1] -* Compatibilidade: NVDA versão 2019.3 e seguintes +* Compatibilidade: NVDA versão 2021.1 e seguintes + ## Apresentação Este extra fornece uma maneira de inserir rapidamente blocos de texto digitados com frequência nos documentos que escreve. Para organizar melhor os blocos de texto, eles podem ser agrupados em categorias. Pode definir uma categoria como padrão para acessar mais rapidamente os blocos dessa categoria. -## Actualização automática -A partir da versão 21.07 inclui uma função de verificação automática de actualização. -Cada vez que o NVDA é iniciado, será verificado o repositório para ver se há alguma nova versão. - ## Uso Para começar a usar este extra, precisa definir as categorias e inserir os blocos de texto que deseja usar. @@ -33,4 +31,11 @@ Para colar o bloco de texto num campo de edição, seleccione o bloco e pression Na caixa de diálogo da lista de blocos também pode renomear, alterar o conteúdo, mudar de categoria ou eliminar um bloco de texto, ou voltar para a caixa de diálogo das categorias. -[1]: https://github.com/ruifontes/frequentText/releases/download/21.07/frequentText-21.07.nvda-addon + +## Atualização automática + +Este extra inclui um recurso de atualização automática. +A verificação de existência de nova versão será executada cada vez que o NVDA é carregado. +Se não desejar que isso aconteça, vá ao menu do NVDA, Preferências, Configurações e na categoria do extra desmarque a caixa de verificação. + +[1]: https://github.com/ruifontes/frequentText/releases/download/21.08/frequentText-21.08.nvda-addon diff --git a/addon/installTasks.py b/addon/installTasks.py index ead75ec..64db90f 100644 --- a/addon/installTasks.py +++ b/addon/installTasks.py @@ -1,6 +1,6 @@ #-*- coding: utf-8 -*- # Part of frequentText add-on for NVDA. -# written by Rui Fontes +# written by Rui Fontes and Ângelo Abrantes import os import globalVars diff --git a/addon/locale/en/LC_MESSAGES/nvda.po b/addon/locale/en/LC_MESSAGES/nvda.po index a7a4f97..e7206f3 100644 --- a/addon/locale/en/LC_MESSAGES/nvda.po +++ b/addon/locale/en/LC_MESSAGES/nvda.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: FrequentText\n" "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" -"POT-Creation-Date: 2021-07-28 19:49+0100\n" -"PO-Revision-Date: 2021-07-28 19:51+0100\n" +"POT-Creation-Date: 2021-08-09 02:06+0100\n" +"PO-Revision-Date: 2021-08-10 15:55+0100\n" "Last-Translator: Rui Fontes \n" "Language-Team: \n" "Language: en\n" @@ -17,166 +17,160 @@ msgstr "" "X-Poedit-SearchPath-0: .\n" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:93 +#: addon\globalPlugins\frequentText\__init__.py:53 msgid "" "Opens a dialog box to registe, manage and paste frequent blocks of text." msgstr "" #. For translators: Name of the section in "Input gestures" dialog. -#: addon\globalPlugins\frequentText\__init__.py:95 -#: addon\globalPlugins\frequentText\__init__.py:133 +#: addon\globalPlugins\frequentText\__init__.py:55 +#: addon\globalPlugins\frequentText\__init__.py:93 msgid "Text editing" msgstr "" #. Translators: Title of categories list dialog box. #. Translators: Title of Blocks list dialog boxes. -#: addon\globalPlugins\frequentText\__init__.py:106 -#: addon\globalPlugins\frequentText\__init__.py:120 -#: addon\globalPlugins\frequentText\__init__.py:699 -#: addon\globalPlugins\frequentText\__init__.py:835 +#: addon\globalPlugins\frequentText\__init__.py:66 +#: addon\globalPlugins\frequentText\__init__.py:80 msgid "Frequent text" msgstr "" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:131 +#: addon\globalPlugins\frequentText\__init__.py:91 msgid "Opens a dialog box with the text blocks of first or default category" msgstr "" #. Create a label and a list view for categories list. #. Label is above the list view. #. Translators: Label the list view that contains the categories -#: addon\globalPlugins\frequentText\__init__.py:165 -#, fuzzy +#: addon\globalPlugins\frequentText\__init__.py:125 #| msgid "Favorite folders list" msgid "Categories list" -msgstr "Lista de carpetas favoritas" +msgstr "" #. Translators: Button Label to show the entries in the selected category -#: addon\globalPlugins\frequentText\__init__.py:178 +#: addon\globalPlugins\frequentText\__init__.py:138 msgid "&Show entries" msgstr "" #. Translators: Button Label to add a new category #. Translators: Button Label to add a new block. -#: addon\globalPlugins\frequentText\__init__.py:183 -#: addon\globalPlugins\frequentText\__init__.py:383 +#: addon\globalPlugins\frequentText\__init__.py:143 +#: addon\globalPlugins\frequentText\__init__.py:343 msgid "&Add" msgstr "" #. Translators: Button Label that renames the name of the selected block. -#: addon\globalPlugins\frequentText\__init__.py:188 -#: addon\globalPlugins\frequentText\__init__.py:393 +#: addon\globalPlugins\frequentText\__init__.py:148 +#: addon\globalPlugins\frequentText\__init__.py:353 msgid "Re&name" msgstr "" #. Translators: Button Label to set the selected category as default -#: addon\globalPlugins\frequentText\__init__.py:193 +#: addon\globalPlugins\frequentText\__init__.py:153 msgid "Set &category as default" msgstr "" #. Translators: Button Label that removes the selected block. -#: addon\globalPlugins\frequentText\__init__.py:198 -#: addon\globalPlugins\frequentText\__init__.py:408 +#: addon\globalPlugins\frequentText\__init__.py:158 +#: addon\globalPlugins\frequentText\__init__.py:368 msgid "&Remove" msgstr "" #. Translators: Button Label that closes the add-on. -#: addon\globalPlugins\frequentText\__init__.py:202 -#: addon\globalPlugins\frequentText\__init__.py:417 -#: addon\globalPlugins\frequentText\__init__.py:845 +#: addon\globalPlugins\frequentText\__init__.py:162 +#: addon\globalPlugins\frequentText\__init__.py:377 msgid "&Close" msgstr "" #. Translators: Message dialog box to add a name to a new category -#: addon\globalPlugins\frequentText\__init__.py:228 -#, fuzzy +#: addon\globalPlugins\frequentText\__init__.py:188 #| msgid "Enter a new nickname for %s" msgid "Enter a name for the category" -msgstr "Introducir un nuevo nombre de referencia para %s." +msgstr "" #. Translators: Announcement that the category name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:237 -#: addon\globalPlugins\frequentText\__init__.py:285 -#, fuzzy +#: addon\globalPlugins\frequentText\__init__.py:197 +#: addon\globalPlugins\frequentText\__init__.py:245 #| msgid "There is already a folder with this reference!" msgid "There is already a category with this name!" -msgstr "Já existe uma pasta com este nome!" +msgstr "" #. Translators: Message dialog to rename the category #. Translators: Message dialog to rename the block of text. -#: addon\globalPlugins\frequentText\__init__.py:267 -#: addon\globalPlugins\frequentText\__init__.py:542 +#: addon\globalPlugins\frequentText\__init__.py:227 +#: addon\globalPlugins\frequentText\__init__.py:502 #, python-format msgid "Enter a new name for %s" msgstr "" #. Translators: Message dialog box to remove the selected category #. Translators: Message dialog box to remove the selected block. -#: addon\globalPlugins\frequentText\__init__.py:305 -#: addon\globalPlugins\frequentText\__init__.py:648 +#: addon\globalPlugins\frequentText\__init__.py:265 +#: addon\globalPlugins\frequentText\__init__.py:608 #, python-format msgid "Are you sure you want to remove %s?" msgstr "" #. Translators: Title of the column of the list view. -#: addon\globalPlugins\frequentText\__init__.py:343 -#: addon\globalPlugins\frequentText\__init__.py:684 +#: addon\globalPlugins\frequentText\__init__.py:303 +#: addon\globalPlugins\frequentText\__init__.py:644 msgid "Name" msgstr "" #. Create a label and a list view for Frequent Text list. #. Label is above the list view. #. Translators: Label the list view that contains the Blocks. -#: addon\globalPlugins\frequentText\__init__.py:370 +#: addon\globalPlugins\frequentText\__init__.py:330 #, python-format msgid "List of text blocks of %s category" msgstr "" #. Translators: Button Label that paste the block to the edit box. -#: addon\globalPlugins\frequentText\__init__.py:388 +#: addon\globalPlugins\frequentText\__init__.py:348 msgid "&Paste" msgstr "" #. Translators: Button Label that change the blocks of text. -#: addon\globalPlugins\frequentText\__init__.py:398 +#: addon\globalPlugins\frequentText\__init__.py:358 msgid "&Change blocks" msgstr "" #. Translators: Label for btton to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:403 +#: addon\globalPlugins\frequentText\__init__.py:363 msgid "&Move" msgstr "" #. Translators: Label for button to go back to categories list. -#: addon\globalPlugins\frequentText\__init__.py:413 +#: addon\globalPlugins\frequentText\__init__.py:373 msgid "&Back to categories" msgstr "" #. Translators: Message dialog box to add a name to a new block. -#: addon\globalPlugins\frequentText\__init__.py:446 +#: addon\globalPlugins\frequentText\__init__.py:406 msgid "Enter a name for the block" msgstr "" #. Translators: Announcement that the block name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:455 -#: addon\globalPlugins\frequentText\__init__.py:560 +#: addon\globalPlugins\frequentText\__init__.py:415 +#: addon\globalPlugins\frequentText\__init__.py:520 msgid "There is already a block with this name!" msgstr "" #. Translators: Message dialog box to add a new block of text. -#: addon\globalPlugins\frequentText\__init__.py:465 +#: addon\globalPlugins\frequentText\__init__.py:425 msgid "Enter the block of text" msgstr "" #. Translators: Message dialog box to change a block of text. -#: addon\globalPlugins\frequentText\__init__.py:577 +#: addon\globalPlugins\frequentText\__init__.py:537 msgid "" "Change the block of text as you want and press Tab to Ok button and Enter to " "confirm" msgstr "" #. Translators: Message dialog box to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:613 +#: addon\globalPlugins\frequentText\__init__.py:573 #, python-format msgid "" "If you really want to move %s from %s category, enter the name of the new, " @@ -184,65 +178,30 @@ msgid "" msgstr "" #. Translators: Announcement that the category does not exists. -#: addon\globalPlugins\frequentText\__init__.py:629 +#: addon\globalPlugins\frequentText\__init__.py:589 msgid "There is no such category!" msgstr "" -#. Translators: Checkbox name in the configuration dialog -#: addon\globalPlugins\frequentText\__init__.py:704 -msgid "Check for updates at startup" -msgstr "" - -#: addon\globalPlugins\frequentText\__init__.py:795 -#, python-format -msgid "" -"Please wait\n" -"Downloading %s" -msgstr "" - -#: addon\globalPlugins\frequentText\__init__.py:799 -#, python-format -msgid "" -"Please wait...\n" -"Downloading %s" -msgstr "" - -#. Translators: Mensaje que anuncia la finalización del proceso. -#: addon\globalPlugins\frequentText\__init__.py:824 +#. Translators: Message dialog box to ask user if wants to update. +#: addon\globalPlugins\frequentText\update.py:95 msgid "" -"Update finished.\n" -"You must restart NVDA for these changes to take effect.\n" -"Press the Confirm button to restart or the Close to terminate without " -"restarting" +"It is available a new version of this add-on.\n" +" Do you want to update?" msgstr "" -#. Translators: Mensaje que anuncia la existencia de un error -#: addon\globalPlugins\frequentText\__init__.py:827 +#. because is compatible +#. because is incompatible +#. Translators: Message dialog box to inform user that the add-on is not compatible +#: addon\globalPlugins\frequentText\update.py:125 msgid "" -"Error.\n" -"Check the Internet connection and try again.\n" -"You may close this window" +"This new version of this add-on is not compatible with your version of " +"NVDA.\n" +" The update process will be terminated." msgstr "" -#. Translators: Mensaje que informa de una nueva versión -#: addon\globalPlugins\frequentText\__init__.py:842 -msgid "" -"Available a new version of this add-on. Do you want to download and install " -"it now?" -msgstr "" - -#: addon\globalPlugins\frequentText\__init__.py:843 -msgid "&Download and install" -msgstr "" - -#. Translators: título de la ventana -#: addon\globalPlugins\frequentText\__init__.py:879 -msgid "Updating Frequent text" -msgstr "" - -#. Translators: nombre del botón aceptar -#: addon\globalPlugins\frequentText\__init__.py:894 -msgid "&Confirm" +#. Translators: Checkbox name in the configuration dialog +#: addon\globalPlugins\frequentText\update.py:144 +msgid "Check for updates at startup" msgstr "" #. Add-on summary, usually the user visible name of the addon. diff --git a/addon/locale/es/LC_MESSAGES/nvda.po b/addon/locale/es/LC_MESSAGES/nvda.po index fa4f0d6..1cfa495 100644 --- a/addon/locale/es/LC_MESSAGES/nvda.po +++ b/addon/locale/es/LC_MESSAGES/nvda.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: 'frequentText' '1.0'\n" "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" -"POT-Creation-Date: 2021-07-28 19:49+0100\n" -"PO-Revision-Date: 2021-07-28 19:55+0100\n" +"POT-Creation-Date: 2021-08-09 02:06+0100\n" +"PO-Revision-Date: 2021-08-09 02:13+0100\n" "Last-Translator: Rui Fontes \n" "Language-Team: \n" "Language: es_419\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:93 +#: addon\globalPlugins\frequentText\__init__.py:53 msgid "" "Opens a dialog box to registe, manage and paste frequent blocks of text." msgstr "" @@ -27,22 +27,20 @@ msgstr "" "frecuentes." #. For translators: Name of the section in "Input gestures" dialog. -#: addon\globalPlugins\frequentText\__init__.py:95 -#: addon\globalPlugins\frequentText\__init__.py:133 +#: addon\globalPlugins\frequentText\__init__.py:55 +#: addon\globalPlugins\frequentText\__init__.py:93 msgid "Text editing" msgstr "Edición de textos" #. Translators: Title of categories list dialog box. #. Translators: Title of Blocks list dialog boxes. -#: addon\globalPlugins\frequentText\__init__.py:106 -#: addon\globalPlugins\frequentText\__init__.py:120 -#: addon\globalPlugins\frequentText\__init__.py:699 -#: addon\globalPlugins\frequentText\__init__.py:835 +#: addon\globalPlugins\frequentText\__init__.py:66 +#: addon\globalPlugins\frequentText\__init__.py:80 msgid "Frequent text" msgstr "Texto Frecuente." #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:131 +#: addon\globalPlugins\frequentText\__init__.py:91 msgid "Opens a dialog box with the text blocks of first or default category" msgstr "" "Abre un cuadro de diálogo con los bloques de texto de la primera categoría o " @@ -51,125 +49,124 @@ msgstr "" #. Create a label and a list view for categories list. #. Label is above the list view. #. Translators: Label the list view that contains the categories -#: addon\globalPlugins\frequentText\__init__.py:165 +#: addon\globalPlugins\frequentText\__init__.py:125 msgid "Categories list" msgstr "Lista de categorías." #. Translators: Button Label to show the entries in the selected category -#: addon\globalPlugins\frequentText\__init__.py:178 +#: addon\globalPlugins\frequentText\__init__.py:138 msgid "&Show entries" msgstr "&Mostrar entradas" #. Translators: Button Label to add a new category #. Translators: Button Label to add a new block. -#: addon\globalPlugins\frequentText\__init__.py:183 -#: addon\globalPlugins\frequentText\__init__.py:383 +#: addon\globalPlugins\frequentText\__init__.py:143 +#: addon\globalPlugins\frequentText\__init__.py:343 msgid "&Add" msgstr "&Añadir" #. Translators: Button Label that renames the name of the selected block. -#: addon\globalPlugins\frequentText\__init__.py:188 -#: addon\globalPlugins\frequentText\__init__.py:393 +#: addon\globalPlugins\frequentText\__init__.py:148 +#: addon\globalPlugins\frequentText\__init__.py:353 msgid "Re&name" msgstr "Re&nombrar" #. Translators: Button Label to set the selected category as default -#: addon\globalPlugins\frequentText\__init__.py:193 +#: addon\globalPlugins\frequentText\__init__.py:153 msgid "Set &category as default" msgstr "Establecer &categoría por defecto" #. Translators: Button Label that removes the selected block. -#: addon\globalPlugins\frequentText\__init__.py:198 -#: addon\globalPlugins\frequentText\__init__.py:408 +#: addon\globalPlugins\frequentText\__init__.py:158 +#: addon\globalPlugins\frequentText\__init__.py:368 msgid "&Remove" msgstr "&Remover" #. Translators: Button Label that closes the add-on. -#: addon\globalPlugins\frequentText\__init__.py:202 -#: addon\globalPlugins\frequentText\__init__.py:417 -#: addon\globalPlugins\frequentText\__init__.py:845 +#: addon\globalPlugins\frequentText\__init__.py:162 +#: addon\globalPlugins\frequentText\__init__.py:377 msgid "&Close" msgstr "&Cerrar" #. Translators: Message dialog box to add a name to a new category -#: addon\globalPlugins\frequentText\__init__.py:228 +#: addon\globalPlugins\frequentText\__init__.py:188 msgid "Enter a name for the category" msgstr "Introoduce un nombre para la categoría" #. Translators: Announcement that the category name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:237 -#: addon\globalPlugins\frequentText\__init__.py:285 +#: addon\globalPlugins\frequentText\__init__.py:197 +#: addon\globalPlugins\frequentText\__init__.py:245 msgid "There is already a category with this name!" msgstr "Ya existe una categoría con este nombre!" #. Translators: Message dialog to rename the category #. Translators: Message dialog to rename the block of text. -#: addon\globalPlugins\frequentText\__init__.py:267 -#: addon\globalPlugins\frequentText\__init__.py:542 +#: addon\globalPlugins\frequentText\__init__.py:227 +#: addon\globalPlugins\frequentText\__init__.py:502 #, python-format msgid "Enter a new name for %s" msgstr "Introduce un nuevo nombre para %s" #. Translators: Message dialog box to remove the selected category #. Translators: Message dialog box to remove the selected block. -#: addon\globalPlugins\frequentText\__init__.py:305 -#: addon\globalPlugins\frequentText\__init__.py:648 +#: addon\globalPlugins\frequentText\__init__.py:265 +#: addon\globalPlugins\frequentText\__init__.py:608 #, python-format msgid "Are you sure you want to remove %s?" msgstr "Estás seguro que quieres eliminar %s?" #. Translators: Title of the column of the list view. -#: addon\globalPlugins\frequentText\__init__.py:343 -#: addon\globalPlugins\frequentText\__init__.py:684 +#: addon\globalPlugins\frequentText\__init__.py:303 +#: addon\globalPlugins\frequentText\__init__.py:644 msgid "Name" msgstr "Nombre" #. Create a label and a list view for Frequent Text list. #. Label is above the list view. #. Translators: Label the list view that contains the Blocks. -#: addon\globalPlugins\frequentText\__init__.py:370 +#: addon\globalPlugins\frequentText\__init__.py:330 #, python-format msgid "List of text blocks of %s category" msgstr "Lista de bloques de texto para la categoría% s." #. Translators: Button Label that paste the block to the edit box. -#: addon\globalPlugins\frequentText\__init__.py:388 +#: addon\globalPlugins\frequentText\__init__.py:348 msgid "&Paste" msgstr "&Pegar" #. Translators: Button Label that change the blocks of text. -#: addon\globalPlugins\frequentText\__init__.py:398 +#: addon\globalPlugins\frequentText\__init__.py:358 msgid "&Change blocks" msgstr "hacer &cambios en los bloques" #. Translators: Label for btton to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:403 +#: addon\globalPlugins\frequentText\__init__.py:363 msgid "&Move" msgstr "&Mover" #. Translators: Label for button to go back to categories list. -#: addon\globalPlugins\frequentText\__init__.py:413 +#: addon\globalPlugins\frequentText\__init__.py:373 msgid "&Back to categories" msgstr "&Volver a las categorías" #. Translators: Message dialog box to add a name to a new block. -#: addon\globalPlugins\frequentText\__init__.py:446 +#: addon\globalPlugins\frequentText\__init__.py:406 msgid "Enter a name for the block" msgstr "Introduce un nombre para el bloque" #. Translators: Announcement that the block name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:455 -#: addon\globalPlugins\frequentText\__init__.py:560 +#: addon\globalPlugins\frequentText\__init__.py:415 +#: addon\globalPlugins\frequentText\__init__.py:520 msgid "There is already a block with this name!" msgstr "Ya existe un bloque con ese nombre!" #. Translators: Message dialog box to add a new block of text. -#: addon\globalPlugins\frequentText\__init__.py:465 +#: addon\globalPlugins\frequentText\__init__.py:425 msgid "Enter the block of text" msgstr "Introduce el texto" #. Translators: Message dialog box to change a block of text. -#: addon\globalPlugins\frequentText\__init__.py:577 +#: addon\globalPlugins\frequentText\__init__.py:537 msgid "" "Change the block of text as you want and press Tab to Ok button and Enter to " "confirm" @@ -178,7 +175,7 @@ msgstr "" "confirmar " #. Translators: Message dialog box to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:613 +#: addon\globalPlugins\frequentText\__init__.py:573 #, python-format msgid "" "If you really want to move %s from %s category, enter the name of the new, " @@ -188,79 +185,36 @@ msgstr "" "categoría ya existente" #. Translators: Announcement that the category does not exists. -#: addon\globalPlugins\frequentText\__init__.py:629 +#: addon\globalPlugins\frequentText\__init__.py:589 msgid "There is no such category!" msgstr "No existe esa categoría!" -#. Translators: Checkbox name in the configuration dialog -#: addon\globalPlugins\frequentText\__init__.py:704 -msgid "Check for updates at startup" -msgstr "Comprobar las actualizaciones al inicio" - -#: addon\globalPlugins\frequentText\__init__.py:795 -#, python-format -msgid "" -"Please wait\n" -"Downloading %s" -msgstr "" -"Por favor, espere\n" -"Descargando %s" - -#: addon\globalPlugins\frequentText\__init__.py:799 -#, python-format -msgid "" -"Please wait...\n" -"Downloading %s" -msgstr "" -"Por favor, espere...\n" -"Descargando %s" - -#. Translators: Mensaje que anuncia la finalización del proceso. -#: addon\globalPlugins\frequentText\__init__.py:824 -msgid "" -"Update finished.\n" -"You must restart NVDA for these changes to take effect.\n" -"Press the Confirm button to restart or the Close to terminate without " -"restarting" -msgstr "" -"Actualización finalizada.\n" -"Debes reiniciar NVDA para que estos cambios surtan efecto.\n" -"Pulse el botón Confirmar para reiniciar o el botón Cerrar para terminar sin " -"reiniciar" - -#. Translators: Mensaje que anuncia la existencia de un error -#: addon\globalPlugins\frequentText\__init__.py:827 +#. Translators: Message dialog box to ask user if wants to update. +#: addon\globalPlugins\frequentText\update.py:95 msgid "" -"Error.\n" -"Check the Internet connection and try again.\n" -"You may close this window" +"It is available a new version of this add-on.\n" +" Do you want to update?" msgstr "" -"Error.\n" -"Compruebe la conexión a Internet y vuelva a intentarlo.\n" -"Puede cerrar esta ventana" +"Está disponible una nueva versión de este complemento.\n" +" ¿Desea actualizarlo?" -#. Translators: Mensaje que informa de una nueva versión -#: addon\globalPlugins\frequentText\__init__.py:842 +#. because is compatible +#. because is incompatible +#. Translators: Message dialog box to inform user that the add-on is not compatible +#: addon\globalPlugins\frequentText\update.py:125 msgid "" -"Available a new version of this add-on. Do you want to download and install " -"it now?" +"This new version of this add-on is not compatible with your version of " +"NVDA.\n" +" The update process will be terminated." msgstr "" -"Está disponible una nueva versión de este complemento. Quieres descargarlo e " -"instalarlo ahora?" - -#: addon\globalPlugins\frequentText\__init__.py:843 -msgid "&Download and install" -msgstr "&Descargar e instalar" - -#. Translators: título de la ventana -#: addon\globalPlugins\frequentText\__init__.py:879 -msgid "Updating Frequent text" -msgstr "Actualización de Texto frecuente" +"La nueva versión de este complemento no es compatible con tu versión de " +"NVDA.\n" +" El proceso de actualización se terminará." -#. Translators: nombre del botón aceptar -#: addon\globalPlugins\frequentText\__init__.py:894 -msgid "&Confirm" -msgstr "&Confirmar" +#. Translators: Checkbox name in the configuration dialog +#: addon\globalPlugins\frequentText\update.py:144 +msgid "Check for updates at startup" +msgstr "Comprobar las actualizaciones al inicio" #. Add-on summary, usually the user visible name of the addon. #. Translators: Summary for this add-on @@ -279,5 +233,50 @@ msgstr "" "Almacena y hace posible la entrada de texto usado con frecuencia. Comando: " "Windows+F12." +#, python-format +#~ msgid "" +#~ "Please wait\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Por favor, espere\n" +#~ "Descargando %s" + +#, python-format +#~ msgid "" +#~ "Please wait...\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Por favor, espere...\n" +#~ "Descargando %s" + +#~ msgid "" +#~ "Update finished.\n" +#~ "You must restart NVDA for these changes to take effect.\n" +#~ "Press the Confirm button to restart or the Close to terminate without " +#~ "restarting" +#~ msgstr "" +#~ "Actualización finalizada.\n" +#~ "Debes reiniciar NVDA para que estos cambios surtan efecto.\n" +#~ "Pulse el botón Confirmar para reiniciar o el botón Cerrar para terminar " +#~ "sin reiniciar" + +#~ msgid "" +#~ "Error.\n" +#~ "Check the Internet connection and try again.\n" +#~ "You may close this window" +#~ msgstr "" +#~ "Error.\n" +#~ "Compruebe la conexión a Internet y vuelva a intentarlo.\n" +#~ "Puede cerrar esta ventana" + +#~ msgid "&Download and install" +#~ msgstr "&Descargar e instalar" + +#~ msgid "Updating Frequent text" +#~ msgstr "Actualización de Texto frecuente" + +#~ msgid "&Confirm" +#~ msgstr "&Confirmar" + #~ msgid "Blocks list" #~ msgstr "Lista de Bloques de texto." diff --git a/addon/locale/pt_BR/LC_MESSAGES/nvda.po b/addon/locale/pt_BR/LC_MESSAGES/nvda.po index a389ad3..870018e 100644 --- a/addon/locale/pt_BR/LC_MESSAGES/nvda.po +++ b/addon/locale/pt_BR/LC_MESSAGES/nvda.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: FrequentText\n" "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" -"POT-Creation-Date: 2021-07-28 19:49+0100\n" -"PO-Revision-Date: 2021-07-28 20:00+0100\n" +"POT-Creation-Date: 2021-08-09 02:06+0100\n" +"PO-Revision-Date: 2021-08-09 02:14+0100\n" "Last-Translator: Rui Fontes \n" "Language-Team: Equipa portuguesa do NVDA\n" "Language: pt\n" @@ -17,29 +17,27 @@ msgstr "" "X-Poedit-SearchPath-0: .\n" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:93 +#: addon\globalPlugins\frequentText\__init__.py:53 msgid "" "Opens a dialog box to registe, manage and paste frequent blocks of text." msgstr "" "Abre uma janela para registar, gerir e selecionar os blocos a colar no texto." #. For translators: Name of the section in "Input gestures" dialog. -#: addon\globalPlugins\frequentText\__init__.py:95 -#: addon\globalPlugins\frequentText\__init__.py:133 +#: addon\globalPlugins\frequentText\__init__.py:55 +#: addon\globalPlugins\frequentText\__init__.py:93 msgid "Text editing" msgstr "Edição de texto" #. Translators: Title of categories list dialog box. #. Translators: Title of Blocks list dialog boxes. -#: addon\globalPlugins\frequentText\__init__.py:106 -#: addon\globalPlugins\frequentText\__init__.py:120 -#: addon\globalPlugins\frequentText\__init__.py:699 -#: addon\globalPlugins\frequentText\__init__.py:835 +#: addon\globalPlugins\frequentText\__init__.py:66 +#: addon\globalPlugins\frequentText\__init__.py:80 msgid "Frequent text" msgstr "Texto frequente" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:131 +#: addon\globalPlugins\frequentText\__init__.py:91 msgid "Opens a dialog box with the text blocks of first or default category" msgstr "" "Abre uma janela com os blocos de texto da primeira categoria ou da categoria " @@ -48,125 +46,124 @@ msgstr "" #. Create a label and a list view for categories list. #. Label is above the list view. #. Translators: Label the list view that contains the categories -#: addon\globalPlugins\frequentText\__init__.py:165 +#: addon\globalPlugins\frequentText\__init__.py:125 msgid "Categories list" msgstr "Lista de categorias" #. Translators: Button Label to show the entries in the selected category -#: addon\globalPlugins\frequentText\__init__.py:178 +#: addon\globalPlugins\frequentText\__init__.py:138 msgid "&Show entries" msgstr "&Mostrar Entradas" #. Translators: Button Label to add a new category #. Translators: Button Label to add a new block. -#: addon\globalPlugins\frequentText\__init__.py:183 -#: addon\globalPlugins\frequentText\__init__.py:383 +#: addon\globalPlugins\frequentText\__init__.py:143 +#: addon\globalPlugins\frequentText\__init__.py:343 msgid "&Add" msgstr "&Adicionar" #. Translators: Button Label that renames the name of the selected block. -#: addon\globalPlugins\frequentText\__init__.py:188 -#: addon\globalPlugins\frequentText\__init__.py:393 +#: addon\globalPlugins\frequentText\__init__.py:148 +#: addon\globalPlugins\frequentText\__init__.py:353 msgid "Re&name" msgstr "&Renomear" #. Translators: Button Label to set the selected category as default -#: addon\globalPlugins\frequentText\__init__.py:193 +#: addon\globalPlugins\frequentText\__init__.py:153 msgid "Set &category as default" msgstr "Definir &categoria como padrão" #. Translators: Button Label that removes the selected block. -#: addon\globalPlugins\frequentText\__init__.py:198 -#: addon\globalPlugins\frequentText\__init__.py:408 +#: addon\globalPlugins\frequentText\__init__.py:158 +#: addon\globalPlugins\frequentText\__init__.py:368 msgid "&Remove" msgstr "&Eliminar" #. Translators: Button Label that closes the add-on. -#: addon\globalPlugins\frequentText\__init__.py:202 -#: addon\globalPlugins\frequentText\__init__.py:417 -#: addon\globalPlugins\frequentText\__init__.py:845 +#: addon\globalPlugins\frequentText\__init__.py:162 +#: addon\globalPlugins\frequentText\__init__.py:377 msgid "&Close" msgstr "&Fechar" #. Translators: Message dialog box to add a name to a new category -#: addon\globalPlugins\frequentText\__init__.py:228 +#: addon\globalPlugins\frequentText\__init__.py:188 msgid "Enter a name for the category" msgstr "Introduza um nome para a categoria." #. Translators: Announcement that the category name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:237 -#: addon\globalPlugins\frequentText\__init__.py:285 +#: addon\globalPlugins\frequentText\__init__.py:197 +#: addon\globalPlugins\frequentText\__init__.py:245 msgid "There is already a category with this name!" msgstr "Já existe uma categoria com este nome!" #. Translators: Message dialog to rename the category #. Translators: Message dialog to rename the block of text. -#: addon\globalPlugins\frequentText\__init__.py:267 -#: addon\globalPlugins\frequentText\__init__.py:542 +#: addon\globalPlugins\frequentText\__init__.py:227 +#: addon\globalPlugins\frequentText\__init__.py:502 #, python-format msgid "Enter a new name for %s" msgstr "Introduza um novo nome para %s" #. Translators: Message dialog box to remove the selected category #. Translators: Message dialog box to remove the selected block. -#: addon\globalPlugins\frequentText\__init__.py:305 -#: addon\globalPlugins\frequentText\__init__.py:648 +#: addon\globalPlugins\frequentText\__init__.py:265 +#: addon\globalPlugins\frequentText\__init__.py:608 #, python-format msgid "Are you sure you want to remove %s?" msgstr "Tem a certeza que quer eliminar %s da lista de blocos?" #. Translators: Title of the column of the list view. -#: addon\globalPlugins\frequentText\__init__.py:343 -#: addon\globalPlugins\frequentText\__init__.py:684 +#: addon\globalPlugins\frequentText\__init__.py:303 +#: addon\globalPlugins\frequentText\__init__.py:644 msgid "Name" msgstr "Nome" #. Create a label and a list view for Frequent Text list. #. Label is above the list view. #. Translators: Label the list view that contains the Blocks. -#: addon\globalPlugins\frequentText\__init__.py:370 +#: addon\globalPlugins\frequentText\__init__.py:330 #, python-format msgid "List of text blocks of %s category" msgstr "Lista de blocos de texto da categoria %s" #. Translators: Button Label that paste the block to the edit box. -#: addon\globalPlugins\frequentText\__init__.py:388 +#: addon\globalPlugins\frequentText\__init__.py:348 msgid "&Paste" msgstr "&Colar" #. Translators: Button Label that change the blocks of text. -#: addon\globalPlugins\frequentText\__init__.py:398 +#: addon\globalPlugins\frequentText\__init__.py:358 msgid "&Change blocks" msgstr "Modificar &blocos" #. Translators: Label for btton to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:403 +#: addon\globalPlugins\frequentText\__init__.py:363 msgid "&Move" msgstr "&Mover" #. Translators: Label for button to go back to categories list. -#: addon\globalPlugins\frequentText\__init__.py:413 +#: addon\globalPlugins\frequentText\__init__.py:373 msgid "&Back to categories" msgstr "&Voltar a categorias" #. Translators: Message dialog box to add a name to a new block. -#: addon\globalPlugins\frequentText\__init__.py:446 +#: addon\globalPlugins\frequentText\__init__.py:406 msgid "Enter a name for the block" msgstr "Introduza um nome para o bloco." #. Translators: Announcement that the block name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:455 -#: addon\globalPlugins\frequentText\__init__.py:560 +#: addon\globalPlugins\frequentText\__init__.py:415 +#: addon\globalPlugins\frequentText\__init__.py:520 msgid "There is already a block with this name!" msgstr "Já existe um bloco com este nome!" #. Translators: Message dialog box to add a new block of text. -#: addon\globalPlugins\frequentText\__init__.py:465 +#: addon\globalPlugins\frequentText\__init__.py:425 msgid "Enter the block of text" msgstr "Introduza o bloco de texto" #. Translators: Message dialog box to change a block of text. -#: addon\globalPlugins\frequentText\__init__.py:577 +#: addon\globalPlugins\frequentText\__init__.py:537 msgid "" "Change the block of text as you want and press Tab to Ok button and Enter to " "confirm" @@ -175,7 +172,7 @@ msgstr "" "para confirmar" #. Translators: Message dialog box to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:613 +#: addon\globalPlugins\frequentText\__init__.py:573 #, python-format msgid "" "If you really want to move %s from %s category, enter the name of the new, " @@ -185,78 +182,35 @@ msgstr "" "já existente" #. Translators: Announcement that the category does not exists. -#: addon\globalPlugins\frequentText\__init__.py:629 +#: addon\globalPlugins\frequentText\__init__.py:589 msgid "There is no such category!" msgstr "Não existe essa categoria!" -#. Translators: Checkbox name in the configuration dialog -#: addon\globalPlugins\frequentText\__init__.py:704 -msgid "Check for updates at startup" -msgstr "Verificar actualizações ao iniciar" - -#: addon\globalPlugins\frequentText\__init__.py:795 -#, python-format -msgid "" -"Please wait\n" -"Downloading %s" -msgstr "" -"Por favor, aguarde\n" -"Baixando %s" - -#: addon\globalPlugins\frequentText\__init__.py:799 -#, python-format +#. Translators: Message dialog box to ask user if wants to update. +#: addon\globalPlugins\frequentText\update.py:95 msgid "" -"Please wait...\n" -"Downloading %s" +"It is available a new version of this add-on.\n" +" Do you want to update?" msgstr "" -"Por favor, aguarde\n" -"Baixando %s" +"Está disponível uma nova versão deste suplemento.\n" +" Você deseja atualizar?" -#. Translators: Mensaje que anuncia la finalización del proceso. -#: addon\globalPlugins\frequentText\__init__.py:824 +#. because is compatible +#. because is incompatible +#. Translators: Message dialog box to inform user that the add-on is not compatible +#: addon\globalPlugins\frequentText\update.py:125 msgid "" -"Update finished.\n" -"You must restart NVDA for these changes to take effect.\n" -"Press the Confirm button to restart or the Close to terminate without " -"restarting" +"This new version of this add-on is not compatible with your version of " +"NVDA.\n" +" The update process will be terminated." msgstr "" -"Atualização concluída.\n" -"Você deve reiniciar o NVDA para que estas mudanças entrem em vigor.\n" -"Pressione o botão Confirmar para reiniciar ou o botão Fechar para terminar " -"sem reiniciar" - -#. Translators: Mensaje que anuncia la existencia de un error -#: addon\globalPlugins\frequentText\__init__.py:827 -msgid "" -"Error.\n" -"Check the Internet connection and try again.\n" -"You may close this window" -msgstr "" -"Erro.\n" -"Verifique a conexão com a Internet e tente novamente.\n" -"Você pode fechar esta janela" - -#. Translators: Mensaje que informa de una nueva versión -#: addon\globalPlugins\frequentText\__init__.py:842 -msgid "" -"Available a new version of this add-on. Do you want to download and install " -"it now?" -msgstr "" -"Disponível uma nova versão deste add-on. Deseja baixá-la e instalá-la agora?" - -#: addon\globalPlugins\frequentText\__init__.py:843 -msgid "&Download and install" -msgstr "&Baixar e instalar" +"Esta nova versão deste suplemento não é compatível com sua versão do NVDA.\n" +" O processo de atualização será encerrado." -#. Translators: título de la ventana -#: addon\globalPlugins\frequentText\__init__.py:879 -msgid "Updating Frequent text" -msgstr "Actualizando o Texto frequente" - -#. Translators: nombre del botón aceptar -#: addon\globalPlugins\frequentText\__init__.py:894 -msgid "&Confirm" -msgstr "&Confirmar" +#. Translators: Checkbox name in the configuration dialog +#: addon\globalPlugins\frequentText\update.py:144 +msgid "Check for updates at startup" +msgstr "Verificar actualizações ao iniciar" #. Add-on summary, usually the user visible name of the addon. #. Translators: Summary for this add-on @@ -275,6 +229,51 @@ msgstr "" "Armazena e torna possível a introdução de blocos de texto frequentemente " "usados. Comando: Windows+f12." +#, python-format +#~ msgid "" +#~ "Please wait\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Por favor, aguarde\n" +#~ "Baixando %s" + +#, python-format +#~ msgid "" +#~ "Please wait...\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Por favor, aguarde\n" +#~ "Baixando %s" + +#~ msgid "" +#~ "Update finished.\n" +#~ "You must restart NVDA for these changes to take effect.\n" +#~ "Press the Confirm button to restart or the Close to terminate without " +#~ "restarting" +#~ msgstr "" +#~ "Atualização concluída.\n" +#~ "Você deve reiniciar o NVDA para que estas mudanças entrem em vigor.\n" +#~ "Pressione o botão Confirmar para reiniciar ou o botão Fechar para " +#~ "terminar sem reiniciar" + +#~ msgid "" +#~ "Error.\n" +#~ "Check the Internet connection and try again.\n" +#~ "You may close this window" +#~ msgstr "" +#~ "Erro.\n" +#~ "Verifique a conexão com a Internet e tente novamente.\n" +#~ "Você pode fechar esta janela" + +#~ msgid "&Download and install" +#~ msgstr "&Baixar e instalar" + +#~ msgid "Updating Frequent text" +#~ msgstr "Actualizando o Texto frequente" + +#~ msgid "&Confirm" +#~ msgstr "&Confirmar" + #~ msgid "Blocks list" #~ msgstr "Lista dos blocos de texto" diff --git a/addon/locale/pt_PT/LC_MESSAGES/nvda.po b/addon/locale/pt_PT/LC_MESSAGES/nvda.po index cdcb4dd..0e2600c 100644 --- a/addon/locale/pt_PT/LC_MESSAGES/nvda.po +++ b/addon/locale/pt_PT/LC_MESSAGES/nvda.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: FrequentText\n" "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" -"POT-Creation-Date: 2021-07-28 19:49+0100\n" -"PO-Revision-Date: 2021-07-28 20:05+0100\n" +"POT-Creation-Date: 2021-08-09 02:06+0100\n" +"PO-Revision-Date: 2021-08-09 02:16+0100\n" "Last-Translator: Rui Fontes \n" "Language-Team: Equipa portuguesa do NVDA\n" "Language: pt\n" @@ -17,29 +17,27 @@ msgstr "" "X-Poedit-SearchPath-0: .\n" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:93 +#: addon\globalPlugins\frequentText\__init__.py:53 msgid "" "Opens a dialog box to registe, manage and paste frequent blocks of text." msgstr "" "Abre uma janela para registar, gerir e selecionar os blocos a colar no texto." #. For translators: Name of the section in "Input gestures" dialog. -#: addon\globalPlugins\frequentText\__init__.py:95 -#: addon\globalPlugins\frequentText\__init__.py:133 +#: addon\globalPlugins\frequentText\__init__.py:55 +#: addon\globalPlugins\frequentText\__init__.py:93 msgid "Text editing" msgstr "Edição de texto" #. Translators: Title of categories list dialog box. #. Translators: Title of Blocks list dialog boxes. -#: addon\globalPlugins\frequentText\__init__.py:106 -#: addon\globalPlugins\frequentText\__init__.py:120 -#: addon\globalPlugins\frequentText\__init__.py:699 -#: addon\globalPlugins\frequentText\__init__.py:835 +#: addon\globalPlugins\frequentText\__init__.py:66 +#: addon\globalPlugins\frequentText\__init__.py:80 msgid "Frequent text" msgstr "Texto frequente" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:131 +#: addon\globalPlugins\frequentText\__init__.py:91 msgid "Opens a dialog box with the text blocks of first or default category" msgstr "" "Abre uma janela com os blocos de texto da primeira categoria ou da categoria " @@ -48,125 +46,124 @@ msgstr "" #. Create a label and a list view for categories list. #. Label is above the list view. #. Translators: Label the list view that contains the categories -#: addon\globalPlugins\frequentText\__init__.py:165 +#: addon\globalPlugins\frequentText\__init__.py:125 msgid "Categories list" msgstr "Lista de categorias" #. Translators: Button Label to show the entries in the selected category -#: addon\globalPlugins\frequentText\__init__.py:178 +#: addon\globalPlugins\frequentText\__init__.py:138 msgid "&Show entries" msgstr "&Mostrar entradas" #. Translators: Button Label to add a new category #. Translators: Button Label to add a new block. -#: addon\globalPlugins\frequentText\__init__.py:183 -#: addon\globalPlugins\frequentText\__init__.py:383 +#: addon\globalPlugins\frequentText\__init__.py:143 +#: addon\globalPlugins\frequentText\__init__.py:343 msgid "&Add" msgstr "&Adicionar" #. Translators: Button Label that renames the name of the selected block. -#: addon\globalPlugins\frequentText\__init__.py:188 -#: addon\globalPlugins\frequentText\__init__.py:393 +#: addon\globalPlugins\frequentText\__init__.py:148 +#: addon\globalPlugins\frequentText\__init__.py:353 msgid "Re&name" msgstr "&Renomear" #. Translators: Button Label to set the selected category as default -#: addon\globalPlugins\frequentText\__init__.py:193 +#: addon\globalPlugins\frequentText\__init__.py:153 msgid "Set &category as default" msgstr "Definir &categoria como padrão" #. Translators: Button Label that removes the selected block. -#: addon\globalPlugins\frequentText\__init__.py:198 -#: addon\globalPlugins\frequentText\__init__.py:408 +#: addon\globalPlugins\frequentText\__init__.py:158 +#: addon\globalPlugins\frequentText\__init__.py:368 msgid "&Remove" msgstr "&Eliminar" #. Translators: Button Label that closes the add-on. -#: addon\globalPlugins\frequentText\__init__.py:202 -#: addon\globalPlugins\frequentText\__init__.py:417 -#: addon\globalPlugins\frequentText\__init__.py:845 +#: addon\globalPlugins\frequentText\__init__.py:162 +#: addon\globalPlugins\frequentText\__init__.py:377 msgid "&Close" msgstr "&Fechar" #. Translators: Message dialog box to add a name to a new category -#: addon\globalPlugins\frequentText\__init__.py:228 +#: addon\globalPlugins\frequentText\__init__.py:188 msgid "Enter a name for the category" msgstr "Introduza um nome para a categoria." #. Translators: Announcement that the category name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:237 -#: addon\globalPlugins\frequentText\__init__.py:285 +#: addon\globalPlugins\frequentText\__init__.py:197 +#: addon\globalPlugins\frequentText\__init__.py:245 msgid "There is already a category with this name!" msgstr "Já existe uma categoria com este nome!" #. Translators: Message dialog to rename the category #. Translators: Message dialog to rename the block of text. -#: addon\globalPlugins\frequentText\__init__.py:267 -#: addon\globalPlugins\frequentText\__init__.py:542 +#: addon\globalPlugins\frequentText\__init__.py:227 +#: addon\globalPlugins\frequentText\__init__.py:502 #, python-format msgid "Enter a new name for %s" msgstr "Introduza um novo nome para %s" #. Translators: Message dialog box to remove the selected category #. Translators: Message dialog box to remove the selected block. -#: addon\globalPlugins\frequentText\__init__.py:305 -#: addon\globalPlugins\frequentText\__init__.py:648 +#: addon\globalPlugins\frequentText\__init__.py:265 +#: addon\globalPlugins\frequentText\__init__.py:608 #, python-format msgid "Are you sure you want to remove %s?" msgstr "Tem a certeza que quer eliminar %s da lista de blocos?" #. Translators: Title of the column of the list view. -#: addon\globalPlugins\frequentText\__init__.py:343 -#: addon\globalPlugins\frequentText\__init__.py:684 +#: addon\globalPlugins\frequentText\__init__.py:303 +#: addon\globalPlugins\frequentText\__init__.py:644 msgid "Name" msgstr "Nome" #. Create a label and a list view for Frequent Text list. #. Label is above the list view. #. Translators: Label the list view that contains the Blocks. -#: addon\globalPlugins\frequentText\__init__.py:370 +#: addon\globalPlugins\frequentText\__init__.py:330 #, python-format msgid "List of text blocks of %s category" msgstr "Lista de blocos de texto da categoria %s" #. Translators: Button Label that paste the block to the edit box. -#: addon\globalPlugins\frequentText\__init__.py:388 +#: addon\globalPlugins\frequentText\__init__.py:348 msgid "&Paste" msgstr "&Colar" #. Translators: Button Label that change the blocks of text. -#: addon\globalPlugins\frequentText\__init__.py:398 +#: addon\globalPlugins\frequentText\__init__.py:358 msgid "&Change blocks" msgstr "Modificar &blocos" #. Translators: Label for btton to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:403 +#: addon\globalPlugins\frequentText\__init__.py:363 msgid "&Move" msgstr "&Mover" #. Translators: Label for button to go back to categories list. -#: addon\globalPlugins\frequentText\__init__.py:413 +#: addon\globalPlugins\frequentText\__init__.py:373 msgid "&Back to categories" msgstr "&Voltar a categorias" #. Translators: Message dialog box to add a name to a new block. -#: addon\globalPlugins\frequentText\__init__.py:446 +#: addon\globalPlugins\frequentText\__init__.py:406 msgid "Enter a name for the block" msgstr "Introduza um nome para o bloco." #. Translators: Announcement that the block name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:455 -#: addon\globalPlugins\frequentText\__init__.py:560 +#: addon\globalPlugins\frequentText\__init__.py:415 +#: addon\globalPlugins\frequentText\__init__.py:520 msgid "There is already a block with this name!" msgstr "Já existe um bloco com este nome!" #. Translators: Message dialog box to add a new block of text. -#: addon\globalPlugins\frequentText\__init__.py:465 +#: addon\globalPlugins\frequentText\__init__.py:425 msgid "Enter the block of text" msgstr "Introduza o bloco de texto" #. Translators: Message dialog box to change a block of text. -#: addon\globalPlugins\frequentText\__init__.py:577 +#: addon\globalPlugins\frequentText\__init__.py:537 msgid "" "Change the block of text as you want and press Tab to Ok button and Enter to " "confirm" @@ -175,7 +172,7 @@ msgstr "" "para confirmar" #. Translators: Message dialog box to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:613 +#: addon\globalPlugins\frequentText\__init__.py:573 #, python-format msgid "" "If you really want to move %s from %s category, enter the name of the new, " @@ -185,79 +182,35 @@ msgstr "" "já existente" #. Translators: Announcement that the category does not exists. -#: addon\globalPlugins\frequentText\__init__.py:629 +#: addon\globalPlugins\frequentText\__init__.py:589 msgid "There is no such category!" msgstr "Não existe essa categoria!" -#. Translators: Checkbox name in the configuration dialog -#: addon\globalPlugins\frequentText\__init__.py:704 -msgid "Check for updates at startup" -msgstr "Verificar actualizações ao iniciar" - -#: addon\globalPlugins\frequentText\__init__.py:795 -#, python-format -msgid "" -"Please wait\n" -"Downloading %s" -msgstr "" -"Por favor, aguarde\n" -"A descarregar %s" - -#: addon\globalPlugins\frequentText\__init__.py:799 -#, python-format +#. Translators: Message dialog box to ask user if wants to update. +#: addon\globalPlugins\frequentText\update.py:95 msgid "" -"Please wait...\n" -"Downloading %s" +"It is available a new version of this add-on.\n" +" Do you want to update?" msgstr "" -"Por favor, aguarde\n" -"A descarregar %s" +"Está disponível uma nova versão deste extra.\n" +"Quer actualizar?" -#. Translators: Mensaje que anuncia la finalización del proceso. -#: addon\globalPlugins\frequentText\__init__.py:824 +#. because is compatible +#. because is incompatible +#. Translators: Message dialog box to inform user that the add-on is not compatible +#: addon\globalPlugins\frequentText\update.py:125 msgid "" -"Update finished.\n" -"You must restart NVDA for these changes to take effect.\n" -"Press the Confirm button to restart or the Close to terminate without " -"restarting" +"This new version of this add-on is not compatible with your version of " +"NVDA.\n" +" The update process will be terminated." msgstr "" -"Actualização concluída.\n" -"Deve reiniciar o NVDA para que estas mudanças entrem em vigor.\n" -"Pressione o botão Confirmar para reiniciar ou o botão Fechar para terminar " -"sem reiniciar" - -#. Translators: Mensaje que anuncia la existencia de un error -#: addon\globalPlugins\frequentText\__init__.py:827 -msgid "" -"Error.\n" -"Check the Internet connection and try again.\n" -"You may close this window" -msgstr "" -"Erro:\n" -"Verifique a ligação à a Internet e tente novamente.\n" -"Pode fechar esta janela" - -#. Translators: Mensaje que informa de una nueva versión -#: addon\globalPlugins\frequentText\__init__.py:842 -msgid "" -"Available a new version of this add-on. Do you want to download and install " -"it now?" -msgstr "" -"Disponível uma nova versão deste extra. Deseja descarregá-la e instalá-la " -"agora?" - -#: addon\globalPlugins\frequentText\__init__.py:843 -msgid "&Download and install" -msgstr "&Descarregar e instalar" +"Esta nova versão deste extra não é compatível com a sua versão do NVDA.\n" +" O processo de actualização será terminado." -#. Translators: título de la ventana -#: addon\globalPlugins\frequentText\__init__.py:879 -msgid "Updating Frequent text" -msgstr "A actualizar o Texto frequente" - -#. Translators: nombre del botón aceptar -#: addon\globalPlugins\frequentText\__init__.py:894 -msgid "&Confirm" -msgstr "&Confirmar" +#. Translators: Checkbox name in the configuration dialog +#: addon\globalPlugins\frequentText\update.py:144 +msgid "Check for updates at startup" +msgstr "Verificar actualizações ao iniciar" #. Add-on summary, usually the user visible name of the addon. #. Translators: Summary for this add-on @@ -276,6 +229,51 @@ msgstr "" "Armazena e torna possível a introdução de blocos de texto frequentemente " "usados. Comando: Windows+f12." +#, python-format +#~ msgid "" +#~ "Please wait\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Por favor, aguarde\n" +#~ "A descarregar %s" + +#, python-format +#~ msgid "" +#~ "Please wait...\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Por favor, aguarde\n" +#~ "A descarregar %s" + +#~ msgid "" +#~ "Update finished.\n" +#~ "You must restart NVDA for these changes to take effect.\n" +#~ "Press the Confirm button to restart or the Close to terminate without " +#~ "restarting" +#~ msgstr "" +#~ "Actualização concluída.\n" +#~ "Deve reiniciar o NVDA para que estas mudanças entrem em vigor.\n" +#~ "Pressione o botão Confirmar para reiniciar ou o botão Fechar para " +#~ "terminar sem reiniciar" + +#~ msgid "" +#~ "Error.\n" +#~ "Check the Internet connection and try again.\n" +#~ "You may close this window" +#~ msgstr "" +#~ "Erro:\n" +#~ "Verifique a ligação à a Internet e tente novamente.\n" +#~ "Pode fechar esta janela" + +#~ msgid "&Download and install" +#~ msgstr "&Descarregar e instalar" + +#~ msgid "Updating Frequent text" +#~ msgstr "A actualizar o Texto frequente" + +#~ msgid "&Confirm" +#~ msgstr "&Confirmar" + #~ msgid "Blocks list" #~ msgstr "Lista dos blocos de texto" diff --git a/addon/locale/sr/LC_MESSAGES/nvda.po b/addon/locale/sr/LC_MESSAGES/nvda.po index 85403a0..afc7487 100644 --- a/addon/locale/sr/LC_MESSAGES/nvda.po +++ b/addon/locale/sr/LC_MESSAGES/nvda.po @@ -2,169 +2,166 @@ msgid "" msgstr "" "Project-Id-Version: FrequentText\n" "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" -"POT-Creation-Date: 2021-07-28 19:49+0100\n" -"PO-Revision-Date: 2021-07-29 00:50+0100\n" -"Last-Translator: Nikola Jović \n" +"POT-Creation-Date: 2021-08-09 02:06+0100\n" +"PO-Revision-Date: 2021-08-10 17:04+0100\n" +"Last-Translator: Rui Fontes \n" "Language-Team: \n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.6.10\n" +"X-Generator: Poedit 3.0\n" "X-Poedit-Basepath: ../../../GlobalPlugins\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-SearchPath-0: .\n" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:93 +#: addon\globalPlugins\frequentText\__init__.py:53 msgid "" "Opens a dialog box to registe, manage and paste frequent blocks of text." msgstr "" "Otvara dijalog za upisivanje, upravljanje i lepljenje čestih blokova teksta" #. For translators: Name of the section in "Input gestures" dialog. -#: addon\globalPlugins\frequentText\__init__.py:95 -#: addon\globalPlugins\frequentText\__init__.py:133 +#: addon\globalPlugins\frequentText\__init__.py:55 +#: addon\globalPlugins\frequentText\__init__.py:93 msgid "Text editing" msgstr "Uređivanje teksta" #. Translators: Title of categories list dialog box. #. Translators: Title of Blocks list dialog boxes. -#: addon\globalPlugins\frequentText\__init__.py:106 -#: addon\globalPlugins\frequentText\__init__.py:120 -#: addon\globalPlugins\frequentText\__init__.py:699 -#: addon\globalPlugins\frequentText\__init__.py:835 +#: addon\globalPlugins\frequentText\__init__.py:66 +#: addon\globalPlugins\frequentText\__init__.py:80 msgid "Frequent text" msgstr "Čest tekst" #. For translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:131 +#: addon\globalPlugins\frequentText\__init__.py:91 msgid "Opens a dialog box with the text blocks of first or default category" msgstr "Otvara dijalog sa blokovima teksta prve ili podrazumevane kategorije" #. Create a label and a list view for categories list. #. Label is above the list view. #. Translators: Label the list view that contains the categories -#: addon\globalPlugins\frequentText\__init__.py:165 +#: addon\globalPlugins\frequentText\__init__.py:125 msgid "Categories list" msgstr "Lista kategorija" #. Translators: Button Label to show the entries in the selected category -#: addon\globalPlugins\frequentText\__init__.py:178 +#: addon\globalPlugins\frequentText\__init__.py:138 msgid "&Show entries" msgstr "&Prikaži stavke" #. Translators: Button Label to add a new category #. Translators: Button Label to add a new block. -#: addon\globalPlugins\frequentText\__init__.py:183 -#: addon\globalPlugins\frequentText\__init__.py:383 +#: addon\globalPlugins\frequentText\__init__.py:143 +#: addon\globalPlugins\frequentText\__init__.py:343 msgid "&Add" msgstr "&Dodaj" #. Translators: Button Label that renames the name of the selected block. -#: addon\globalPlugins\frequentText\__init__.py:188 -#: addon\globalPlugins\frequentText\__init__.py:393 +#: addon\globalPlugins\frequentText\__init__.py:148 +#: addon\globalPlugins\frequentText\__init__.py:353 msgid "Re&name" msgstr "&Preimenuj" #. Translators: Button Label to set the selected category as default -#: addon\globalPlugins\frequentText\__init__.py:193 +#: addon\globalPlugins\frequentText\__init__.py:153 msgid "Set &category as default" msgstr "Podesi &kategoriju kao podrazumevanu" #. Translators: Button Label that removes the selected block. -#: addon\globalPlugins\frequentText\__init__.py:198 -#: addon\globalPlugins\frequentText\__init__.py:408 +#: addon\globalPlugins\frequentText\__init__.py:158 +#: addon\globalPlugins\frequentText\__init__.py:368 msgid "&Remove" msgstr "&Ukloni" #. Translators: Button Label that closes the add-on. -#: addon\globalPlugins\frequentText\__init__.py:202 -#: addon\globalPlugins\frequentText\__init__.py:417 -#: addon\globalPlugins\frequentText\__init__.py:845 +#: addon\globalPlugins\frequentText\__init__.py:162 +#: addon\globalPlugins\frequentText\__init__.py:377 msgid "&Close" msgstr "&Zatvori" #. Translators: Message dialog box to add a name to a new category -#: addon\globalPlugins\frequentText\__init__.py:228 +#: addon\globalPlugins\frequentText\__init__.py:188 msgid "Enter a name for the category" msgstr "Upiši ime za kategoriju" #. Translators: Announcement that the category name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:237 -#: addon\globalPlugins\frequentText\__init__.py:285 +#: addon\globalPlugins\frequentText\__init__.py:197 +#: addon\globalPlugins\frequentText\__init__.py:245 msgid "There is already a category with this name!" msgstr "Već postoji kategorija sa ovim imenom!" #. Translators: Message dialog to rename the category #. Translators: Message dialog to rename the block of text. -#: addon\globalPlugins\frequentText\__init__.py:267 -#: addon\globalPlugins\frequentText\__init__.py:542 +#: addon\globalPlugins\frequentText\__init__.py:227 +#: addon\globalPlugins\frequentText\__init__.py:502 #, python-format msgid "Enter a new name for %s" msgstr "Upiši novo ime za %s" #. Translators: Message dialog box to remove the selected category #. Translators: Message dialog box to remove the selected block. -#: addon\globalPlugins\frequentText\__init__.py:305 -#: addon\globalPlugins\frequentText\__init__.py:648 +#: addon\globalPlugins\frequentText\__init__.py:265 +#: addon\globalPlugins\frequentText\__init__.py:608 #, python-format msgid "Are you sure you want to remove %s?" msgstr "Da li si siguran da želiš da obrišeš %s?" #. Translators: Title of the column of the list view. -#: addon\globalPlugins\frequentText\__init__.py:343 -#: addon\globalPlugins\frequentText\__init__.py:684 +#: addon\globalPlugins\frequentText\__init__.py:303 +#: addon\globalPlugins\frequentText\__init__.py:644 msgid "Name" msgstr "Ime" #. Create a label and a list view for Frequent Text list. #. Label is above the list view. #. Translators: Label the list view that contains the Blocks. -#: addon\globalPlugins\frequentText\__init__.py:370 +#: addon\globalPlugins\frequentText\__init__.py:330 #, python-format msgid "List of text blocks of %s category" msgstr "Lista blokova teksta kategorije %s" #. Translators: Button Label that paste the block to the edit box. -#: addon\globalPlugins\frequentText\__init__.py:388 +#: addon\globalPlugins\frequentText\__init__.py:348 msgid "&Paste" msgstr "&Nalepi" #. Translators: Button Label that change the blocks of text. -#: addon\globalPlugins\frequentText\__init__.py:398 +#: addon\globalPlugins\frequentText\__init__.py:358 msgid "&Change blocks" msgstr "&Promeni blokove" #. Translators: Label for btton to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:403 +#: addon\globalPlugins\frequentText\__init__.py:363 msgid "&Move" msgstr "&Premesti" #. Translators: Label for button to go back to categories list. -#: addon\globalPlugins\frequentText\__init__.py:413 +#: addon\globalPlugins\frequentText\__init__.py:373 msgid "&Back to categories" msgstr "&Nazad na kategorije" #. Translators: Message dialog box to add a name to a new block. -#: addon\globalPlugins\frequentText\__init__.py:446 +#: addon\globalPlugins\frequentText\__init__.py:406 msgid "Enter a name for the block" msgstr "Upiši ime za blok" #. Translators: Announcement that the block name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:455 -#: addon\globalPlugins\frequentText\__init__.py:560 +#: addon\globalPlugins\frequentText\__init__.py:415 +#: addon\globalPlugins\frequentText\__init__.py:520 msgid "There is already a block with this name!" msgstr "Već postoji blok sa ovim imenom!" #. Translators: Message dialog box to add a new block of text. -#: addon\globalPlugins\frequentText\__init__.py:465 +#: addon\globalPlugins\frequentText\__init__.py:425 msgid "Enter the block of text" msgstr "Upiši blok teksta" #. Translators: Message dialog box to change a block of text. -#: addon\globalPlugins\frequentText\__init__.py:577 +#: addon\globalPlugins\frequentText\__init__.py:537 msgid "" "Change the block of text as you want and press Tab to Ok button and Enter to " "confirm" @@ -173,7 +170,7 @@ msgstr "" "da biste potvrdili" #. Translators: Message dialog box to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:613 +#: addon\globalPlugins\frequentText\__init__.py:573 #, python-format msgid "" "If you really want to move %s from %s category, enter the name of the new, " @@ -183,78 +180,31 @@ msgstr "" "postojeće kategorije" #. Translators: Announcement that the category does not exists. -#: addon\globalPlugins\frequentText\__init__.py:629 +#: addon\globalPlugins\frequentText\__init__.py:589 msgid "There is no such category!" msgstr "Nema ove kategorije!" -#. Translators: Checkbox name in the configuration dialog -#: addon\globalPlugins\frequentText\__init__.py:704 -msgid "Check for updates at startup" -msgstr "Provera ažuriranja pri pokretanju" - -#: addon\globalPlugins\frequentText\__init__.py:795 -#, python-format -msgid "" -"Please wait\n" -"Downloading %s" -msgstr "" -"Molimo sačekajte \n" -"Preuzima se %s" - -#: addon\globalPlugins\frequentText\__init__.py:799 -#, python-format -msgid "" -"Please wait...\n" -"Downloading %s" -msgstr "" -"Molimo sačekajte...\n" -"Preuzima se %s" - -#. Translators: Mensaje que anuncia la finalización del proceso. -#: addon\globalPlugins\frequentText\__init__.py:824 +#. Translators: Message dialog box to ask user if wants to update. +#: addon\globalPlugins\frequentText\update.py:95 msgid "" -"Update finished.\n" -"You must restart NVDA for these changes to take effect.\n" -"Press the Confirm button to restart or the Close to terminate without " -"restarting" +"It is available a new version of this add-on.\n" +" Do you want to update?" msgstr "" -"Ažuriranje završeno.\n" -"Morate ponovo pokrenuti NVDA kako bi ove promene stupile na snagu.\n" -"Pritisnite dugme potvrdi da ponovo pokrenete ili zatvori da završite bez " -"ponovnog pokretanja" -#. Translators: Mensaje que anuncia la existencia de un error -#: addon\globalPlugins\frequentText\__init__.py:827 +#. because is compatible +#. because is incompatible +#. Translators: Message dialog box to inform user that the add-on is not compatible +#: addon\globalPlugins\frequentText\update.py:125 msgid "" -"Error.\n" -"Check the Internet connection and try again.\n" -"You may close this window" +"This new version of this add-on is not compatible with your version of " +"NVDA.\n" +" The update process will be terminated." msgstr "" -"Greška.\n" -"Proverite vezu sa Internetom a zatim pokušajte ponovo.\n" -"Možete da zatvorite ovaj prozor" -#. Translators: Mensaje que informa de una nueva versión -#: addon\globalPlugins\frequentText\__init__.py:842 -msgid "" -"Available a new version of this add-on. Do you want to download and install " -"it now?" +#. Translators: Checkbox name in the configuration dialog +#: addon\globalPlugins\frequentText\update.py:144 +msgid "Check for updates at startup" msgstr "" -"Dostupna je nova verzija ovog dodatka. Da li želite odmah da je instalirate?" - -#: addon\globalPlugins\frequentText\__init__.py:843 -msgid "&Download and install" -msgstr "&Preuzmi i instaliraj" - -#. Translators: título de la ventana -#: addon\globalPlugins\frequentText\__init__.py:879 -msgid "Updating Frequent text" -msgstr "Ažuriranje dodatka čest tekst" - -#. Translators: nombre del botón aceptar -#: addon\globalPlugins\frequentText\__init__.py:894 -msgid "&Confirm" -msgstr "&Potvrdi" #. Add-on summary, usually the user visible name of the addon. #. Translators: Summary for this add-on @@ -273,6 +223,51 @@ msgstr "" "Čuva i omogućava vam da ponovo upisujete česte blokove teksta. Komanda: " "Windows plus f12" +#, python-format +#~ msgid "" +#~ "Please wait\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Molimo sačekajte \n" +#~ "Preuzima se %s" + +#, python-format +#~ msgid "" +#~ "Please wait...\n" +#~ "Downloading %s" +#~ msgstr "" +#~ "Molimo sačekajte...\n" +#~ "Preuzima se %s" + +#~ msgid "" +#~ "Update finished.\n" +#~ "You must restart NVDA for these changes to take effect.\n" +#~ "Press the Confirm button to restart or the Close to terminate without " +#~ "restarting" +#~ msgstr "" +#~ "Ažuriranje završeno.\n" +#~ "Morate ponovo pokrenuti NVDA kako bi ove promene stupile na snagu.\n" +#~ "Pritisnite dugme potvrdi da ponovo pokrenete ili zatvori da završite bez " +#~ "ponovnog pokretanja" + +#~ msgid "" +#~ "Error.\n" +#~ "Check the Internet connection and try again.\n" +#~ "You may close this window" +#~ msgstr "" +#~ "Greška.\n" +#~ "Proverite vezu sa Internetom a zatim pokušajte ponovo.\n" +#~ "Možete da zatvorite ovaj prozor" + +#~ msgid "&Download and install" +#~ msgstr "&Preuzmi i instaliraj" + +#~ msgid "Updating Frequent text" +#~ msgstr "Ažuriranje dodatka čest tekst" + +#~ msgid "&Confirm" +#~ msgstr "&Potvrdi" + #, fuzzy #~| msgid "Text blocks list" #~ msgid "Blocks list" diff --git a/buildVars.py b/buildVars.py index e380ff6..01fe3a4 100644 --- a/buildVars.py +++ b/buildVars.py @@ -25,7 +25,7 @@ def _(arg): # Translators: Long description to be shown for this add-on on add-on information from add-ons manager "addon_description": _("""Stores and make possible the entry of frequently used blocks of text. Command: Windows+F12."""), # version - "addon_version": "21.07.29", + "addon_version": "21.08", # Author(s) "addon_author": u"Rui Fontes and Ângelo Abrantes ", # URL for the add-on documentation support @@ -33,7 +33,7 @@ def _(arg): # Documentation file name "addon_docFileName": "readme.html", # Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional) - "addon_minimumNVDAVersion" : "2019.3", + "addon_minimumNVDAVersion" : "2021.1", # Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version) "addon_lastTestedNVDAVersion" : "2021.1", # Add-on update channel (default is None, denoting stable releases, diff --git a/readme.md b/readme.md index 23378a1..a910d81 100644 --- a/readme.md +++ b/readme.md @@ -1,19 +1,18 @@ # Frequent text # + ## Informations * Authors: Rui Fontes and Ângelo Abrantes, based on work of Marcos António de Oliveira -* Updated in 28/07/2021 +* Updated in 09/08/2021 * Download [stable version][1] * Compatibility: NVDA version 2019.3 and posteriors + ## Presentation This add-on provides a way to quickly insert blocks of text you type frequently in documents you write. To better organize the text blocks, they can be grouped into categories. It is possible to set a category as default to quickly access its blocks. -## Auto update -Starting in version 21.07 includes a auto update check function. -Everytime NVDA starts, it will check the repository to see if there are any new version. ## Usage To start using this add-on you will need to set the categories and fill the blocks of text you want to use. @@ -32,4 +31,12 @@ To paste the block of text in an edit field, just select the block and press Ent In the add-on dialog box you also can rename, change the contents, move to other category, delete the block of text or go back to categories dialog. -[1]: https://github.com/ruifontes/frequentText/releases/download/21.07/frequentText-21.07.nvda-addon + +## Auto update +Starting in version 21.07 includes a auto update check function. + +Everytime NVDA starts, it will check the repository to see if there are any new version. + +If you do not want this procedure, go to NVDA configurations and in the add-on category uncheck the checkbox. + +[1]: https://github.com/ruifontes/frequentText/releases/download/21.08/frequentText-21.08.nvda-addon