Skip to content

Commit

Permalink
Reword and add link on the theme3 crash bug presend warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans5958 committed Jun 17, 2023
1 parent f0bbc00 commit d597d1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ FeedbackPage:
Description: "Scratch Addons is not affiliated with the Scratch website or the organizations that maintain it. We have no control of the content and the moderation on the Scratch website. {{ .Tag1Start }}There are many ways that you can report on the Scratch website.{{ .Tag1End }}"
Theme3CrashBug:
Heading: There is a known bug with the "Customizable block colors" addon.
Description: "If you're experiencing a crash when trying to create a custom block, this is a known bug with the \"Customizable block colors\" addon. For now, try disabling that addon until this is fixed (likely next release)."
Description: A bug has been found on the addon that causes a crash when creating a custom block. Please disable the addon until a fix has been released in the next version. {{ .Tag1Start }}Read more at this issue.{{ .Tag1End }}

# Strings used for /scratch-messaging-transition
SMTPage:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/specifics/feedback-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
theme3CrashBug: {
heading: '{{ T "FeedbackPage.PreSendWarning.Variations.Theme3CrashBug.Heading" }}',
description: '{{ T "FeedbackPage.PreSendWarning.Variations.Theme3CrashBug.Description" | htmlEscape }}',
description: '{{ T "FeedbackPage.PreSendWarning.Variations.Theme3CrashBug.Description" ( dict "Tag1Start" (add $ts 1) "Tag1End" (add $ts 2) ) | htmlEscape }}',
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion static/assets/js/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const variations = {
},
theme3CrashBug: {
strings: {
...i18n.preSendWarning.variations.theme3CrashBug
...i18n.preSendWarning.variations.theme3CrashBug,
description: i18n.preSendWarning.variations.theme3CrashBug.description
.replace(window.i18nTimestamp + 1, '<a href="https://github.com/ScratchAddons/ScratchAddons/issues/6212">').replace(window.i18nTimestamp + 2, '</a>')
},
patterns: [
/\b(?:crash(?:es|ing)?|mak(?:e|ing|eing)|creat(?:e|ing|eing)?|new blocks?|my blocks?|custom blocks?)\b/,
Expand Down

0 comments on commit d597d1c

Please sign in to comment.