Fixes template string quote escapes
It seems totally reasonable that using an escape slash would make apostrophes in words work, but the translation system works in mysterious ways that do not include supporting that. I've used backticks as a third quote type to escape everything in a way that both javascript and gettext understand. While I was there I split up some strings that have more complicated html in them, since that can be fragile when passed through translation, and confusing for translators.
This commit is contained in:
parent
41b20c4dd5
commit
868ab62863
8 changed files with 22 additions and 22 deletions
|
@ -40,7 +40,7 @@
|
|||
} else if (localResult) {
|
||||
tour.addStep(
|
||||
{
|
||||
text: "{% trans 'If the book you are looking for is already on this Bookwyrm instance, you can click on the title to go to the book\'s page.' %}",
|
||||
text: `{% trans "If the book you are looking for is already on this Bookwyrm instance, you can click on the title to go to the book's page." %}`,
|
||||
title: "{% trans 'Searching' %}",
|
||||
attachTo: {
|
||||
element: "#tour-local-book-search-result",
|
||||
|
@ -118,7 +118,7 @@
|
|||
],
|
||||
},
|
||||
{
|
||||
text: "{% trans 'If you still can\'t find your book, you can add a record manually.' %}",
|
||||
text: `{% trans "If you still can't find your book, you can add a record manually." %}`,
|
||||
title: "{% trans 'Add a record manally' %}",
|
||||
attachTo: {
|
||||
element: "#tour-manually-add-book",
|
||||
|
@ -144,7 +144,7 @@
|
|||
}
|
||||
|
||||
tour.addStep({
|
||||
text: "{% trans '<p class=\'notification is-warning is-light mt-3\'>Import, manually add, or view an existing book to continue the tour.<p>' %}",
|
||||
text: '<p class="notification is-warning is-light mt-3">{% trans "Import, manually add, or view an existing book to continue the tour." %}<p>',
|
||||
title: "{% trans 'Continue the tour' %}",
|
||||
buttons: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue