Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes more strings translatable #10

Merged
merged 2 commits into from
Jun 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions addon/globalPlugins/translate/__init__.py
Original file line number Diff line number Diff line change
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