diff --git a/2023.9.3.json b/2024.1.4.json similarity index 75% rename from 2023.9.3.json rename to 2024.1.4.json index 4c974e8..78f4444 100644 --- a/2023.9.3.json +++ b/2024.1.4.json @@ -3,21 +3,21 @@ "displayName": "Regists blocks of text frequently used", "URL": "", "description": "Stores and make possible the entry of frequently used blocks of text. Command: Windows+F12.", - "sha256": "912f676c2aa012af0db797dd8f4d43832b2eb581e45a8e649d8c181262492ac0", + "sha256": "ec6a5645d959562f0b29f3ddc27d8c02e2dd01571260ae2c25597a4768608aee", "homepage": "https://github.com/ruifontes/frequentText", - "addonVersionName": "2023.09.03", + "addonVersionName": "2024.01.04", "addonVersionNumber": { - "major": 2023, - "minor": 9, - "patch": 3 + "major": 2024, + "minor": 1, + "patch": 4 }, "minNVDAVersion": { - "major": 2021, - "minor": 1, + "major": 2019, + "minor": 3, "patch": 0 }, "lastTestedVersion": { - "major": 2023, + "major": 2024, "minor": 1, "patch": 0 }, diff --git a/addon/GlobalPlugins/frequentText/__init__.py b/addon/GlobalPlugins/frequentText/__init__.py index 712c69d..e0d8d7b 100644 --- a/addon/GlobalPlugins/frequentText/__init__.py +++ b/addon/GlobalPlugins/frequentText/__init__.py @@ -3,7 +3,7 @@ # Regists, manage and allow to paste frequently used blocks of text # Shortcut: WINDOWS+F12 # written by Rui Fontes , Ângelo Abrantes and Abel Passos do Nascimento Jr. -# Copyright (C) 2020-2023 Rui Fontes +# Copyright (C) 2020-2024 Rui Fontes # This file is covered by the GNU General Public License. # See the file COPYING for more details. @@ -27,7 +27,7 @@ addonHandler.initTranslation() # Global vars -_ffIniFile = os.path.join(os.path.dirname(__file__), "frequentText.ini") +_ffIniFile = os.path.abspath(os.path.join(globalVars.appArgs.configPath, "frequentText.ini")) config = ConfigObj(_ffIniFile, list_values = True, encoding = "utf-8") defCatg = 0 category = 0 diff --git a/addon/doc/de/readme.md b/addon/doc/de/readme.md index b45b51b..ac083c4 100644 --- a/addon/doc/de/readme.md +++ b/addon/doc/de/readme.md @@ -3,7 +3,7 @@ ## Information * Autoren: Rui Fontes, Ângelo Abrantes und Abel Passos Júnior, basierend auf der Arbeit von Marcos António de Oliveira -* Aktualisiert am 01.09.2023 +* Aktualisiert am 04.01.2024 * [stabile Version] herunterladen[1] * Kompatibilität: NVDA-Version 2021.1 und höher @@ -32,4 +32,4 @@ Um den Textblock in ein Bearbeitungsfeld einzufügen, wählen Sie einfach den Bl Im Add-on-Dialogfeld können Sie auch umbenennen, den Inhalt ändern, zu einer anderen Kategorie wechseln, den Textblock löschen oder zum Kategoriendialog zurückkehren. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.03/frequentText-2023.09.03.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2024.01.04/frequentText-2024.01.04.nvda-addon diff --git a/addon/doc/es/readme.md b/addon/doc/es/readme.md index 15b736b..498f4c5 100644 --- a/addon/doc/es/readme.md +++ b/addon/doc/es/readme.md @@ -3,7 +3,7 @@ ## Información * Autores: Rui Fontes, Ângelo Abrantes y Abel Passos Júnior, basado en el trabajo de Marcos António de Oliveira -* Actualizado el 01/09/2023 +* Actualizado el 04/01/2024 * Descargar [versión estable] [1] * Compatibilidad: NVDA versión 2021.1 y posteriores @@ -31,4 +31,4 @@ 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/2023.09.03/frequentText-2023.09.03.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2024.01.04/frequentText-2024.01.04.nvda-addon diff --git a/addon/doc/pt_BR/readme.md b/addon/doc/pt_BR/readme.md index bcce405..b4943bd 100644 --- a/addon/doc/pt_BR/readme.md +++ b/addon/doc/pt_BR/readme.md @@ -3,7 +3,7 @@ ## Informações * Autores: Rui Fontes, Ângelo Abrantes e Abel Passos Júnior, baseado no trabalho de Marcos António de Oliveira -* Actualizado em 01/09/2023 +* Actualizado em 04/01/2024 * Descarregar a [versão estável][1] * Compatibilidade: NVDA versão 2021.1 e seguintes @@ -32,4 +32,4 @@ 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/2023.09.03/frequentText-2023.09.03.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2024.01.04/frequentText-2024.01.04.nvda-addon diff --git a/addon/doc/pt_PT/readme.md b/addon/doc/pt_PT/readme.md index dce4a24..46328b8 100644 --- a/addon/doc/pt_PT/readme.md +++ b/addon/doc/pt_PT/readme.md @@ -3,7 +3,7 @@ ## Informações * Autores: Rui Fontes, Ângelo Abrantes e Abel Passos Júnior, baseados no trabalho de Marcos António de Oliveira -* Actualizado em 01/09/2023 +* Actualizado em 04/01/2024 * Descarregar a [versão estável][1] * Compatibilidade: NVDA versão 2021.1 e seguintes @@ -32,4 +32,4 @@ 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/2023.09.03/frequentText-2023.09.03.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2024.01.04/frequentText-2024.01.04.nvda-addon diff --git a/addon/doc/tr/readme.md b/addon/doc/tr/readme.md index f9e831d..531e6fa 100644 --- a/addon/doc/tr/readme.md +++ b/addon/doc/tr/readme.md @@ -3,7 +3,7 @@ ## bilgiler: * Yazarlar: Rui Fontes, Ângelo Abrantes ve Abel Passos Júnior, Marcos António de Oliveira'nın çalışmasına dayanarak. -* 01/09/2023'de güncellendi +* 04/01/2024'de güncellendi * [Kararlı sürümü indirin][1] * Uyumluluk: NVDA sürüm 2021.1 ve sonrası @@ -32,4 +32,4 @@ Metin bloğunu bir düzenleme alanına yapıştırmak için bloğu seçin ve Ent Eklenti iletişim kutusunda ayrıca yeniden adlandırabilir, içeriği değiştirebilir, başka bir kategoriye geçebilir, metin bloğunu silebilir veya kategoriler iletişim kutusuna geri dönebilirsiniz. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.03/frequentText-2023.09.03.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2024.01.04/frequentText-2024.01.04.nvda-addon diff --git a/addon/installTasks.py b/addon/installTasks.py index 64db90f..c694a63 100644 --- a/addon/installTasks.py +++ b/addon/installTasks.py @@ -7,7 +7,6 @@ import addonHandler def onInstall(): - configFilePath = os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText", "globalPlugins", "frequentText", "frequentText.ini")) + configFilePath = os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText", "GlobalPlugins", "frequentText", "frequentText.ini")) if os.path.isfile(configFilePath): - os.remove(os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText" + addonHandler.ADDON_PENDINGINSTALL_SUFFIX, "globalPlugins", "frequentText", "frequentText.ini"))) - os.rename(configFilePath, os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText" + addonHandler.ADDON_PENDINGINSTALL_SUFFIX, "globalPlugins", "frequentText", "frequentText.ini"))) + os.rename(configFilePath, os.path.abspath(os.path.join(globalVars.appArgs.configPath, "frequentText.ini"))) diff --git a/addon/locale/ar/LC_MESSAGES/nvda.po b/addon/locale/ar/LC_MESSAGES/nvda.po index 3500991..c489deb 100644 --- a/addon/locale/ar/LC_MESSAGES/nvda.po +++ b/addon/locale/ar/LC_MESSAGES/nvda.po @@ -7,170 +7,211 @@ msgid "" msgstr "" "Project-Id-Version: 'frequentText' '21.08'\n" "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" -"POT-Creation-Date: 2023-05-29 02:00+0100\n" -"PO-Revision-Date: 2023-05-29 02:03+0100\n" -"Last-Translator: \n" +"POT-Creation-Date: 2022-06-02 15:32+0200\n" +"PO-Revision-Date: 2022-06-02 16:17+0200\n" "Language-Team: \n" -"Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.7\n" +"Last-Translator: \n" "Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n" -"X-Generator: Poedit 3.3.1\n" +"Language: ar\n" -#. Translators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:65 +#. For translators: Message to be announced during Keyboard Help +#: addon\globalPlugins\frequentText\__init__.py:53 msgid "" "Opens a dialog box to registe, manage and paste frequent blocks of text." msgstr "فتح نافذة إضافة وإدارة ولصق الجمل النصية المتكررة." -#. Translators: Name of the section in "Input gestures" dialog. -#: addon\globalPlugins\frequentText\__init__.py:67 -#: addon\globalPlugins\frequentText\__init__.py:78 +#. For translators: Name of the section in "Input gestures" dialog. +#: addon\globalPlugins\frequentText\__init__.py:55 +#: addon\globalPlugins\frequentText\__init__.py:93 msgid "Text editing" msgstr "تحرير النص" -#. Ttranslators: Message to be announced during Keyboard Help -#: addon\globalPlugins\frequentText\__init__.py:76 -msgid "Opens a dialog box with the text blocks of first or default category" -msgstr "فتح نافذة نصوص التصنيف الأول أو التصنيف الافتراضي" - -#: addon\globalPlugins\frequentText\__init__.py:101 -#: addon\globalPlugins\frequentText\__init__.py:288 +#. Translators: Title of categories list dialog box. +#. Translators: Title of Blocks list dialog boxes. +#: addon\globalPlugins\frequentText\__init__.py:66 +#: addon\globalPlugins\frequentText\__init__.py:80 msgid "Frequent text" msgstr "النصوص المتكررة" -#. Create a label and a list view for categories list. Label is above the list view. +#. For translators: Message to be announced during Keyboard Help +#: 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:111 +#: addon\globalPlugins\frequentText\__init__.py:125 msgid "Categories list" msgstr "قائمة التصنيفات" -#. Translators: Button Label to show the entries of a category -#: addon\globalPlugins\frequentText\__init__.py:124 +#. Translators: Button Label to show the entries in the selected category +#: addon\globalPlugins\frequentText\__init__.py:138 msgid "&Show entries" msgstr "إ&ظهار المدخلات" #. Translators: Button Label to add a new category -#: addon\globalPlugins\frequentText\__init__.py:130 -#: addon\globalPlugins\frequentText\__init__.py:314 +#. Translators: Button Label to add a new block. +#: 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:136 -#: addon\globalPlugins\frequentText\__init__.py:326 +#: 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:140 +#: addon\globalPlugins\frequentText\__init__.py:153 msgid "Set &category as default" msgstr "تعيين التصنيف كا&فتراضي" -#. Translators: Button Label that removes the selected category. #. Translators: Button Label that removes the selected block. -#: addon\globalPlugins\frequentText\__init__.py:144 -#: addon\globalPlugins\frequentText\__init__.py:338 +#: 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: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:186 +#: addon\globalPlugins\frequentText\__init__.py:188 msgid "Enter a name for the category" msgstr "أدخل اسم التصنيف" #. Translators: Announcement that the category name already exists in the list. -#: addon\globalPlugins\frequentText\__init__.py:190 -#: addon\globalPlugins\frequentText\__init__.py:235 +#: addon\globalPlugins\frequentText\__init__.py:197 +#: addon\globalPlugins\frequentText\__init__.py:245 msgid "There is already a category with this name!" msgstr "يوجد تصنيف بهذا الإسم" #. Translators: Message dialog to rename the category #. Translators: Message dialog to rename the block of text. -#: addon\globalPlugins\frequentText\__init__.py:219 -#: addon\globalPlugins\frequentText\__init__.py:476 +#: addon\globalPlugins\frequentText\__init__.py:227 +#: addon\globalPlugins\frequentText\__init__.py:502 #, python-format msgid "Enter a new name for %s" msgstr "أدخل الإسم الجديد لـ %s" -#. Translators: Message asking if user wants to remove the selected category +#. Translators: Message dialog box to remove the selected category #. Translators: Message dialog box to remove the selected block. -#: addon\globalPlugins\frequentText\__init__.py:255 -#: addon\globalPlugins\frequentText\__init__.py:584 +#: addon\globalPlugins\frequentText\__init__.py:265 +#: addon\globalPlugins\frequentText\__init__.py:608 #, python-format msgid "Are you sure you want to remove %s?" msgstr "هل تريد إزالة %s?" -#. Create a label and a list view for categories list. +#. Translators: Title of the column of the list view. +#: 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 categories -#: addon\globalPlugins\frequentText\__init__.py:301 +#. Translators: Label the list view that contains the Blocks. +#: addon\globalPlugins\frequentText\__init__.py:330 #, python-format msgid "List of text blocks of %s category" msgstr "قائمة الجمل النصية لتصنيف %s" #. Translators: Button Label that paste the block to the edit box. -#: addon\globalPlugins\frequentText\__init__.py:320 +#: addon\globalPlugins\frequentText\__init__.py:348 msgid "&Paste" msgstr "&لسق" #. Translators: Button Label that change the blocks of text. -#: addon\globalPlugins\frequentText\__init__.py:330 +#: addon\globalPlugins\frequentText\__init__.py:358 msgid "&Change blocks" msgstr "&تغيير الجملة" -#. Translators: Label for button to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:334 +#. Translators: Label for btton to move the selected block to other category. +#: addon\globalPlugins\frequentText\__init__.py:363 msgid "&Move" msgstr "&نقل" #. Translators: Label for button to go back to categories list. -#: addon\globalPlugins\frequentText\__init__.py:342 +#: 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:378 +#: 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:382 -#: addon\globalPlugins\frequentText\__init__.py:492 +#: 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:392 +#: 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:509 +#: 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 "" "قم بتغيير محتوى الجملة النصية إلى ما تريد, اضغط على tab إلى زر OK, ثم اضغط " -"Enter" +"Enter." #. Translators: Message dialog box to move the selected block to other category. -#: addon\globalPlugins\frequentText\__init__.py:543 +#: 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, " "already existing, category" msgstr "" "إذا كنت تريد نقل الجملة %s إلى التصنيف %s أدخل إسم التصنيف الذي تريد نقل " -"الجملة إليه" +"الجملة إليه." #. Translators: Announcement that the category does not exists. -#: addon\globalPlugins\frequentText\__init__.py:567 +#: addon\globalPlugins\frequentText\__init__.py:589 msgid "There is no such category!" msgstr "هذا التصنيف غير موجود!" +#. Translators: Message dialog box to ask user if wants to update. +#: addon\globalPlugins\frequentText\update.py:95 +msgid "" +"It is available a new version of this add-on.\n" +" Do you want to update?" +msgstr "" +"يوجد إصدار جديد من هذه الإضافة.\n" +" هل تريد التحديث؟" + +#. 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 "" +"This new version of this add-on is not compatible with your version of " +"NVDA.\n" +" The update process will be terminated." +msgstr "" +"هذا الإصدار من الإضافة غير متوافق مع الإصدار الذي تستخدمه من NVDA.\n" +" سيتم إنهاء عملية التحديث." + +#. Translators: Checkbox name in the configuration dialog +#: addon\globalPlugins\frequentText\update.py:144 +msgid "Check for updates at startup" +msgstr "البحث عن التحديثات عند تشغيل NVDA" + #. Add-on summary, usually the user visible name of the addon. #. Translators: Summary for this add-on #. to be shown on installation and add-on information found in Add-ons Manager. @@ -185,36 +226,5 @@ msgid "" "Stores and make possible the entry of frequently used blocks of text. " "Command: Windows+F12." msgstr "" -"حفظ وتخزين الجمل النصية التي تستخدمها بكثرة. لفتح نافذة الإضافة, اضغط " -"windows+f12." - -#. Author(s) -#: buildVars.py:30 -msgid "" -"Rui Fontes , Ângelo Abrantes and Abel Passos Júnior" -msgstr "" - -#~ msgid "&Close" -#~ msgstr "إ&غلاق" - -#~ msgid "Name" -#~ msgstr "الإسم" - -#~ msgid "" -#~ "It is available a new version of this add-on.\n" -#~ " Do you want to update?" -#~ msgstr "" -#~ "يوجد إصدار جديد من هذه الإضافة.\n" -#~ " هل تريد التحديث؟" - -#~ msgid "" -#~ "This new version of this add-on is not compatible with your version of " -#~ "NVDA.\n" -#~ " The update process will be terminated." -#~ msgstr "" -#~ "هذا الإصدار من الإضافة غير متوافق مع الإصدار الذي تستخدمه من NVDA.\n" -#~ " سيتم إنهاء عملية التحديث." - -#~ msgid "Check for updates at startup" -#~ msgstr "البحث عن التحديثات عند تشغيل NVDA" +"حفظ وتخزين الجمل النصية التي تستخدمها بكثرة. لفتح نافذة الإضافة, اضغط windows" +"+f12." diff --git a/buildVars.py b/buildVars.py index eb15eab..c9b5079 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": "2023.09.03", + "addon_version": "2024.01.04", # Author(s) "addon_author": _("Rui Fontes , Ângelo Abrantes and Abel Passos Júnior"), # URL for the add-on documentation support @@ -35,9 +35,9 @@ def _(arg): # Documentation file name "addon_docFileName": "readme.html", # Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional) - "addon_minimumNVDAVersion" : "2021.1", + "addon_minimumNVDAVersion" : "2019.3", # Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version) - "addon_lastTestedNVDAVersion" : "2023.1", + "addon_lastTestedNVDAVersion" : "2024.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! diff --git a/readme.md b/readme.md index 7e23048..78600b3 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ ## Information * Authors: Rui Fontes, Ângelo Abrantes and Abel Passos Júnior, based on work of Marcos António de Oliveira -* Updated in 01/09/2023 +* Updated in 04/01/2024 * Download [stable version][1] * Compatibility: NVDA version 2021.1 and beyond @@ -32,4 +32,4 @@ 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/2023.09.03/frequentText-2023.09.03.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2024.01.04/frequentText-2024.01.04.nvda-addon