Skip to content

Commit

Permalink
Merge pull request #10 from cary-rowen/moreStringsTranslatable
Browse files Browse the repository at this point in the history
Makes more strings translatable
  • Loading branch information
yplassiard committed Jun 27, 2022
2 parents a3526d4 + d0dde26 commit f9fb370
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/globalPlugins/translate/__init__.py
Expand Up @@ -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.")
Expand Down Expand Up @@ -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
Expand All @@ -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")

Expand Down

0 comments on commit f9fb370

Please sign in to comment.