Skip to content

Commit

Permalink
Version 2022.05
Browse files Browse the repository at this point in the history
Change manifest.ini to be compatible with NVDA 2022.1;
Avoid use on secure screens.
  • Loading branch information
ruifontes committed May 31, 2022
1 parent b80eb9c commit 9060c5f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 22 deletions.
15 changes: 14 additions & 1 deletion addon/GlobalPlugins/frequentText/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
def __init__(self):
super(globalPluginHandler.GlobalPlugin, self).__init__()
self.dialog = None
# for the auto update process
# To allow waiting end of network tasks
core.postNvdaStartup.register(self.networkTasks)

def networkTasks(self):
# Calling the update process...
_MainWindows = Initialize()
_MainWindows.start()

def terminate(self):
core.postNvdaStartup.unregister(self.networkTasks)

def readConfig(self):
global Catg
if not os.path.isfile(_ffIniFile):
Expand Down Expand Up @@ -108,6 +115,12 @@ def terminate (self):
self.dialog.Destroy()


# To avoid use on secure screens
if globalVars.appArgs.secure:
# Override the global plugin to disable it.
GlobalPlugin = globalPluginHandler.GlobalPlugin


class FrequentTextCatgsDialog(wx.Dialog):

def __init__(self, parent, title, listCatgs):
Expand Down
6 changes: 3 additions & 3 deletions addon/doc/es/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@


## Información
* Autores: Rui Fontes y Ângelo Abrantes, basado en el trabajo de Marcos António de Oliveira
* Actualizado el 09/08/2021
* Autores: Rui Fontes, Ângelo Abrantes y Abel Passos Júnior, basado en el trabajo de Marcos António de Oliveira
* Actualizado el 31/05/2022
* Descargar [versión estable] [1]
* Compatibilidad: NVDA versión 2021.1 y posteriores

Expand Down Expand Up @@ -37,4 +37,4 @@ 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
[1]: https://github.com/ruifontes/frequentText/releases/download/2022.05/frequentText-2022.05.nvda-addon
6 changes: 3 additions & 3 deletions addon/doc/pt_BR/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@


## Informações
* Autores: Rui Fontes e Ângelo Abrantes, baseado no trabalho de Marcos António de Oliveira
* Actualizado em 09/08/2021
* Autores: Rui Fontes, Ângelo Abrantes e Abel Passos Júnior, baseado no trabalho de Marcos António de Oliveira
* Actualizado em 31/05/2022
* Descarregar a [versão estável][1]
* Compatibilidade: NVDA versão 2021.1 e seguintes

Expand Down Expand Up @@ -38,4 +38,4 @@ 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
[1]: https://github.com/ruifontes/frequentText/releases/download/2022.05/frequentText-2022.05.nvda-addon
8 changes: 4 additions & 4 deletions addon/doc/pt_PT/readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Texto frequente #
# Texto frequente


## Informações
* Autores: Rui Fontes e Ângelo Abrantes, baseado no trabalho de Marcos António de Oliveira
* Actualizado em 09/08/2021
* Autores: Rui Fontes, Ângelo Abrantes e Abel Passos Júnior, baseados no trabalho de Marcos António de Oliveira
* Actualizado em 31/05/2022
* Descarregar a [versão estável][1]
* Compatibilidade: NVDA versão 2021.1 e seguintes

Expand Down Expand Up @@ -38,4 +38,4 @@ 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
[1]: https://github.com/ruifontes/frequentText/releases/download/2022.05/frequentText-2022.05.nvda-addon
8 changes: 4 additions & 4 deletions addon/locale/pt_PT/LC_MESSAGES/nvda.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ msgstr ""
"Project-Id-Version: FrequentText\n"
"Report-Msgid-Bugs-To: '[email protected]'\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 <[email protected]>\n"
"PO-Revision-Date: 2021-11-07 20:06+0000\n"
"Last-Translator: Rui Fontes <[email protected]>\n"
"Language-Team: Equipa portuguesa do NVDA\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -88,7 +88,7 @@ msgstr "&Fechar"
#. Translators: Message dialog box to add a name to a new category
#: addon\globalPlugins\frequentText\__init__.py:188
msgid "Enter a name for the category"
msgstr "Introduza um nome para a categoria."
msgstr "Introduza um nome para a categoria"

#. Translators: Announcement that the category name already exists in the list.
#: addon\globalPlugins\frequentText\__init__.py:197
Expand Down Expand Up @@ -149,7 +149,7 @@ msgstr "&Voltar a categorias"
#. Translators: Message dialog box to add a name to a new block.
#: addon\globalPlugins\frequentText\__init__.py:406
msgid "Enter a name for the block"
msgstr "Introduza um nome para o bloco."
msgstr "Introduza um nome para o bloco"

#. Translators: Announcement that the block name already exists in the list.
#: addon\globalPlugins\frequentText\__init__.py:415
Expand Down
6 changes: 3 additions & 3 deletions buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ 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.08",
"addon_version": "2022.05",
# Author(s)
"addon_author": u"Rui Fontes <[email protected]> and Ângelo Abrantes <[email protected]>",
"addon_author": _("Rui Fontes <[email protected]>, Ângelo Abrantes <[email protected]> and Abel Passos Júnior"),
# URL for the add-on documentation support
"addon_url": "https://github.com/ruifontes/frequentText",
# Documentation file name
"addon_docFileName": "readme.html",
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)
"addon_minimumNVDAVersion" : "2021.1",
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
"addon_lastTestedNVDAVersion" : "2021.1",
"addon_lastTestedNVDAVersion" : "2022.1",
# Add-on update channel (default is None, denoting stable releases,
# and for development releases, use "dev".)
# Do not change unless you know what you are doing!
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@


## Informations
* Authors: Rui Fontes and Ângelo Abrantes, based on work of Marcos António de Oliveira
* Updated in 09/08/2021
* Authors: Rui Fontes, Ângelo Abrantes and Abel Passos Júnior, based on work of Marcos António de Oliveira
* Updated in 31/05/2022
* Download [stable version][1]
* Compatibility: NVDA version 2019.3 and posteriors
* Compatibility: NVDA version 2019.3 and beyond


## Presentation
Expand Down Expand Up @@ -39,4 +39,4 @@ Everytime NVDA starts, it will check the repository to see if there are any new

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
[1]: https://github.com/ruifontes/frequentText/releases/download/2022.05/frequentText-2022.05.nvda-addon

0 comments on commit 9060c5f

Please sign in to comment.