-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c21d3e5
commit f565193
Showing
2 changed files
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.""") | ||
|
||
|
@@ -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() |