Skip to content

Commit

Permalink
Se aregla installtask
Browse files Browse the repository at this point in the history
  • Loading branch information
rayo-alcantar committed Apr 13, 2024
1 parent c21d3e5 commit f565193
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
4 changes: 4 additions & 0 deletions addon/doc/es/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Para matar el proceso de la ventana actual, presiona 'Windows + F4' (modificable

## Registro de cambios

### Versión 2.1.1

* Se arreglan algunas traducciones (inglés, francés e Italiano, gracias a CyrilleB79.

### Versión 2.1

Se añaden cadenas de traducción
Expand Down
21 changes: 6 additions & 15 deletions addon/installTasks.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
# -*- coding: utf-8 -*-

# TimeCalculator es un complemento para calcular el tiempo.
# Este archivo está cubierto por la Licencia Pública General de GNU.
# Consulta el archivo COPYING para más detalles.
# Última actualización 2024
# Derechos de autor (C) 2024 Ángel Alcántar <[email protected]>

import addonHandler

_N = _
addonHandler.initTranslation()

class donate:
def open():
import languageHandler
import webbrowser
lang = languageHandler.getLanguage()
# This check ensures the donation page is presented in Spanish if applicable.
if lang.startswith('es'):
lang = 'es'
else:
lang = 'en'
webbrowser.open(f"https://www.paypal.com/paypalme/rayoalcantar?lang={lang}")
# Directamente abrir la página de PayPal sin especificar el idioma.
webbrowser.open("https://www.paypal.com/paypalme/rayoalcantar")

def request():
import wx
import gui

# Translators: The title of the dialog requesting donations from users.
title = _N("Por favor, dona")
title = _("Por favor, dona")

# Translators: The text of the donate dialog
message = _("""KilProcess - complemento gratuito para NVDA.
message = _("""TimeCalculator - complemento gratuito para NVDA.
Puedes hacer una donación a Ángel Alcántar para ayudar en el desarrollo futuro de este complemento.
¿Quieres hacer una donación ahora? Para la transacción, serás redirigido al sitio web de PayPal.""")

Expand All @@ -41,7 +34,5 @@ def request():

def onInstall():
import globalVars
# This checks if NVDA is running in a secure mode (e.g., on the Windows login screen),
# which would prevent the addon from performing certain actions.
if not globalVars.appArgs.secure:
donate.request()

0 comments on commit f565193

Please sign in to comment.