Stop directing users to the old add-ons support site

This commit is contained in:
Damien Elmes 2022-03-28 18:54:18 +10:00
parent 7506d5f06c
commit 45970fd0d2
2 changed files with 11 additions and 3 deletions

View File

@ -7,7 +7,6 @@ errors-standard-popup =
If problems persist, please report the problem on our { -errors-support-site }.
Please copy and paste the information below into your report.
-errors-addon-support-site = [add-on support site](https://help.ankiweb.net/discussions/add-ons/)
errors-addons-active-popup =
# Error
@ -19,7 +18,7 @@ errors-addons-active-popup =
repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please
report the issue on the { -errors-addon-support-site }.
report the issue to the add-on author.
Debug info:
errors-accessing-db =
@ -41,3 +40,7 @@ errors-unable-open-collection =
Debug info:
errors-windows-tts-runtime-error = The TTS service failed. Please ensure Windows updates are installed, try restarting your computer, and try using a different voice.
## OBSOLETE; you do not need to translate this
-errors-addon-support-site = [add-on support site](https://help.ankiweb.net/discussions/add-ons/)

View File

@ -98,7 +98,12 @@ class ErrorHandler(QObject):
)
error = f"{supportText() + self._addonText(error)}\n{error}"
elif self.mw.addonManager.dirty:
txt = markdown(tr.errors_addons_active_popup())
# Older translations include a link to the old discussions site; rewrite it to a newer one
message = tr.errors_addons_active_popup().replace(
"https://help.ankiweb.net/discussions/add-ons/",
"https://forums.ankiweb.net/c/add-ons/11",
)
txt = markdown(message)
error = f"{supportText() + self._addonText(error)}\n{error}"
else:
txt = markdown(tr.errors_standard_popup())