Skip to content

Commit 1b563a8

Browse files
committed
Remove triple braces for i18n blocks in 404 and anno edit templates
The intent of the triple braces was to prevent escaping, but handlebars-i18next already disables escaping. After a `gulp clean` I found out that gulp-handlebars was actually tripping over this notation.
1 parent 14b38eb commit 1b563a8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

frontend/src/i18n/en/translation.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@
7474
"feedback-tooltip": "Give us feedback on the interface",
7575
"log_out": "Log out",
7676
"not_found_alt": "404 Not Found",
77-
"not_found_text": "}\n Oops, this page doesn't seem to exist.\n You can <a onclick=\"history.back()\">go back</a>,\n visit <a href=\"/landing\">Landing</a> or <a href=\"/search\">Search</a>,\n or report a problem to the maintainers.\n{",
77+
"not_found_text": "Oops, this page doesn't seem to exist.\n You can <a onclick=\"history.back()\">go back</a>,\n visit <a href=\"/landing\">Landing</a> or <a href=\"/search\">Search</a>,\n or report a problem to the maintainers.",
7878
"pagination": "pagination",
7979
"to_first_page": "Go to page 1",
8080
"to_last_page": "Go to last page",
8181
"annotations_title": "Annotations",
8282
"filter": "Filter",
8383
"export_annotations": "Export annotations",
8484
"edit_annotation": "Edit Annotation",
85-
"annotation_info": "}(Find more info on what and how to annotate in\n <a class=\"is-link\" href=\"http://dhstatic.hum.uu.nl/readit/AnnotationGuide.pdf\" target=\"_blank\"> the\n Annotation Guide</a>{",
85+
"annotation_info": "(Find more info on what and how to annotate in\n <a class=\"is-link\" href=\"http://dhstatic.hum.uu.nl/readit/AnnotationGuide.pdf\" target=\"_blank\"> the\n Annotation Guide</a>",
8686
"title_category": "Category",
8787
"category_choice": "Choose a category before saving.",
8888
"needs_verification": "Needs verification",

frontend/src/i18n/fr/translation.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@
7474
"feedback-tooltip": "Give us feedback on the interface",
7575
"log_out": "Log out",
7676
"not_found_alt": "404 Not Found",
77-
"not_found_text": "}\n Oops, this page doesn't seem to exist.\n You can <a onclick=\"history.back()\">go back</a>,\n visit <a href=\"/landing\">Landing</a> or <a href=\"/search\">Search</a>,\n or report a problem to the maintainers.\n{",
77+
"not_found_text": "Oops, this page doesn't seem to exist.\n You can <a onclick=\"history.back()\">go back</a>,\n visit <a href=\"/landing\">Landing</a> or <a href=\"/search\">Search</a>,\n or report a problem to the maintainers.",
7878
"pagination": "pagination",
7979
"to_first_page": "Go to page 1",
8080
"to_last_page": "Go to last page",
8181
"annotations_title": "Annotations",
8282
"filter": "Filter",
8383
"export_annotations": "Export annotations",
8484
"edit_annotation": "Edit Annotation",
85-
"annotation_info": "}(Find more info on what and how to annotate in\n <a class=\"is-link\" href=\"http://dhstatic.hum.uu.nl/readit/AnnotationGuide.pdf\" target=\"_blank\"> the\n Annotation Guide</a>{",
85+
"annotation_info": "(Find more info on what and how to annotate in\n <a class=\"is-link\" href=\"http://dhstatic.hum.uu.nl/readit/AnnotationGuide.pdf\" target=\"_blank\"> the\n Annotation Guide</a>",
8686
"title_category": "Category",
8787
"category_choice": "Choose a category before saving.",
8888
"needs_verification": "Needs verification",

frontend/src/notfound404/notfound-template.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
alt="{{#i18n 'not_found_alt'}}404 Not Found{{/i18n}}"
55
>
66
</figure>
7-
<p>{{{#i18n 'not_found_text'}}}
7+
<p>{{#i18n 'not_found_text'}}
88
Oops, this page doesn't seem to exist.
99
You can <a onclick="history.back()">go back</a>,
1010
visit <a href="/landing">Landing</a> or <a href="/search">Search</a>,
1111
or report a problem to the maintainers.
12-
{{{/i18n}}}</p>
12+
{{/i18n}}</p>

frontend/src/panel-annotation/annotation-edit-template.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="panel-header">
22
<header>
33
<p class="title is-3">{{#i18n 'edit_annotation'}}Edit Annotation{{/i18n}}</p>
4-
<p class="subtitle is-7">{{{#i18n 'annotation_info'}}}(Find more info on what and how to annotate in
4+
<p class="subtitle is-7">{{#i18n 'annotation_info'}}(Find more info on what and how to annotate in
55
<a class="is-link" href="http://dhstatic.hum.uu.nl/readit/AnnotationGuide.pdf" target="_blank"> the
6-
Annotation Guide</a>{{{/i18n}}})
6+
Annotation Guide</a>{{/i18n}})
77
</p>
88
</header>
99
</div>

0 commit comments

Comments
 (0)