Skip to content

Commit

Permalink
fix(i18n): Translatable strings need to be in one line.
Browse files Browse the repository at this point in the history
  • Loading branch information
erral authored and thet committed Jul 11, 2022
1 parent 93ddfd7 commit 66e6358
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 35 deletions.
5 changes: 1 addition & 4 deletions src/pat/formunloadalert/formunloadalert.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ export default Base.extend({
_changed: false, // Stores a listing of raised changes by their key
_suppressed: false, // whether or not warning should be suppressed
defaults: {
message: _t(
"Discard changes? If you click OK, " +
"any changes you have made will be lost."
),
message: _t("Discard changes? If you click OK, any changes you have made will be lost."), // prettier-ignore
// events on which to check for changes
changingEvents: "change keyup paste",
// fields on which to check for changes
Expand Down
5 changes: 1 addition & 4 deletions src/pat/preventdoublesubmit/preventdoublesubmit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ export default Base.extend({
trigger: ".pat-preventdoublesubmit",
parser: "mockup",
defaults: {
message: _t(
"You already clicked the submit button. " +
"Do you really want to submit this form again?"
),
message: _t("You already clicked the submit button. Do you really want to submit this form again?"), // prettier-ignore
guardClassName: "submitting",
optOutClassName: "allowMultiSubmit",
},
Expand Down
8 changes: 2 additions & 6 deletions src/pat/structure/js/views/rearrange.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default PopoverView.extend({
"<% }); %>" +
"</select>" +
'<p class="help-block">' +
'<b><%- _t("This permanently changes the order of items in this folder. This operation may take a long time depending on the size of the folder.") %></b>' +
'<b><%- _t("This permanently changes the order of items in this folder. This operation may take a long time depending on the size of the folder.") %></b>' + // prettier-ignore
"</p>" +
"</div>" +
'<div class="form-check">' +
Expand Down Expand Up @@ -45,11 +45,7 @@ export default PopoverView.extend({
if (this.app.collection.getCurrentPath() === "/") {
if (
!window.confirm(
_t(
"Sorting the content on the base of the site " +
"could affect your navigation order. " +
"Are you certain you want to do this?"
)
_t("Sorting the content on the base of the site could affect your navigation order. Are you certain you want to do this?") // prettier-ignore
)
) {
return;
Expand Down
4 changes: 1 addition & 3 deletions src/pat/structure/js/views/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ export default BaseView.extend({
});
this.app.setStatus(
{
text: _t(
"Notice: Drag and drop reordering is disabled when viewing the contents sorted by a column."
),
text: _t("Notice: Drag and drop reordering is disabled when viewing the contents sorted by a column."), // prettier-ignore
type: "warning",
},
btn,
Expand Down
8 changes: 2 additions & 6 deletions src/pat/structure/js/views/textfilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export default BaseView.extend({
.text(_t("Clear"))
.on("click", () => this.clearFilter());

const statusTextFilter = _t(
"This listing has filters applied. Not all items are shown."
);
const statusTextFilter = _t("This listing has filters applied. Not all items are shown."); // prettier-ignore
this.app.setStatus(
{
text: statusTextFilter,
Expand All @@ -49,9 +47,7 @@ export default BaseView.extend({
this.statusKeyFilter
);

const statusTextSorting = _t(
"Drag and drop reordering is disabled while filters are applied."
);
const statusTextSorting = _t("Drag and drop reordering is disabled while filters are applied."); // prettier-ignore
this.app.setStatus(
{
text: statusTextSorting,
Expand Down
16 changes: 4 additions & 12 deletions src/pat/tinymce/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ export default Base.extend({
title: _t("Title"),
internal: _t("Internal"),
external: _t("External"),
externalText: _t(
"External URL (can be relative within this site or absolute if it starts with http:// or https://)"
),
externalText: _t("External URL (can be relative within this site or absolute if it starts with http:// or https://)"), // prettier-ignore
email: _t("Email Address"),
anchor: _t("Anchor"),
anchorLabel: _t("Select an anchor"),
Expand All @@ -50,18 +48,12 @@ export default Base.extend({
enableImageZoom: _t("Enable image zoom"),
scale: _t("Size"),
alt: _t("Alternative Text"),
insertImageHelp: _t(
"Specify an image. It can be on this site already (Internal Image), an image you upload (Upload), or from an external site (External Image)."
),
insertImageHelp: _t("Specify an image. It can be on this site already (Internal Image), an image you upload (Upload), or from an external site (External Image)."), // prettier-ignore
internalImage: _t("Internal Image"),
externalImage: _t("External Image"),
externalImageText: _t(
"External Image URL (can be relative within this site or absolute if it starts with http:// or https://)"
),
externalImageText: _t("External Image URL (can be relative within this site or absolute if it starts with http:// or https://)"), // prettier-ignore
upload: _t("Upload"),
insertLinkHelp: _t(
"Specify the object to link to. It can be on this site already (Internal), an object you upload (Upload), from an external site (External), an email address (Email), or an anchor on this page (Anchor)."
),
insertLinkHelp: _t("Specify the object to link to. It can be on this site already (Internal), an object you upload (Upload), from an external site (External), an email address (Email), or an anchor on this page (Anchor)."), // prettier-ignore
captionFromDescription: _t("Show Image Caption from Image Description"),
caption: _t("Image Caption"),
},
Expand Down

0 comments on commit 66e6358

Please sign in to comment.