From 7ad81f13921aeb246adf722a994d3210f3c3621b Mon Sep 17 00:00:00 2001 From: cary-rowen Date: Tue, 31 May 2022 10:04:43 +0800 Subject: [PATCH] make more strings translatable --- addon/globalPlugins/translate/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addon/globalPlugins/translate/__init__.py b/addon/globalPlugins/translate/__init__.py index 51e4d16..3b44a3e 100644 --- a/addon/globalPlugins/translate/__init__.py +++ b/addon/globalPlugins/translate/__init__.py @@ -425,7 +425,7 @@ def script_copyLastTranslation(self, gesture): if _lastTranslatedText is not None and len(_lastTranslatedText) > 0: api.copyToClip(_lastTranslatedText) - ui.message(_("translation {text} ¨copied to clipboard".format(text=_lastTranslatedText))) + ui.message(_("translation {text} ¨copied to clipboard").format(text=_lastTranslatedText)) else: ui.message(_("No translation to copy")) script_copyLastTranslation.__doc__ = _("Copy the latest translated text to the clipboard.") @@ -457,7 +457,7 @@ def script_flushCurrentAppCache(self, gesture): ui.message(_("No focused application")) return if scriptHandler.getLastScriptRepeatCount() == 0: - ui.message(_("Press twice to delete all translations for {app}".format(app=appName))) + ui.message(_("Press twice to delete all translations for {app}").format(app=appName)) return global _translationCache @@ -471,9 +471,9 @@ def script_flushCurrentAppCache(self, gesture): logHandler.log.error("Failed to remove cache for {appName}: {e}".format(appName=appName, e=e)) ui.message(_("Error while deleting application's translation cache.")) return - ui.message(_("Translation cache for {app} has been deleted.".format(app=appName))) + ui.message(_("Translation cache for {app} has been deleted.").format(app=appName)) else: - ui.message(_("No saved translations for {app}".format(app=appName))) + ui.message(_("No saved translations for {app}").format(app=appName)) script_flushCurrentAppCache.__doc__ = _("Remove translation cache for the currently focused application")