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
|
@ -28,7 +28,7 @@ tour.addSteps([
|
|||
],
|
||||
},
|
||||
{
|
||||
text: "{% trans 'This tab shows everything you have read towards your annual reading goal, or allows you to set one. You don\'t have to set a reading goal if that\'s not your thing!' %}",
|
||||
text: `{% trans "This tab shows everything you have read towards your annual reading goal, or allows you to set one. You don't have to set a reading goal if that's not your thing!" %}`,
|
||||
title: "{% trans 'Reading Goal' %}",
|
||||
attachTo: {
|
||||
element: "#tour-reading-goal",
|
||||
|
@ -97,7 +97,7 @@ tour.addSteps([
|
|||
],
|
||||
},
|
||||
{
|
||||
text: "{% trans 'The Books tab shows your book shelves. We\'ll explore this later in the tour.' %}",
|
||||
text: `{% trans "The Books tab shows your book shelves. We'll explore this later in the tour." %}`,
|
||||
title: "{% trans 'Books' %}",
|
||||
attachTo: {
|
||||
element: "#tour-shelves-tab",
|
||||
|
@ -120,7 +120,7 @@ tour.addSteps([
|
|||
],
|
||||
},
|
||||
{
|
||||
text: "{% trans 'Now you understand the basics of your profile page, let\s add a book to your shelves.<p class=\'notification is-warning is-light mt-3\'>Search for a title or author to continue the tour.</p>' %}",
|
||||
text: `{% trans "Now you understand the basics of your profile page, let's add a book to your shelves." %}<p class="notification is-warning is-light mt-3">{% trans "Search for a title or author to continue the tour." %}</p>`,
|
||||
title: "{% trans 'Find a book' %}",
|
||||
attachTo: {
|
||||
element: "#tour-search",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue