add i18n.preview for all languages except .de, improve labels

This commit is contained in:
Alexander Cobleigh 2020-10-15 11:00:04 +02:00 committed by Henry
parent 2fca62549e
commit 8127008ce4
2 changed files with 18 additions and 9 deletions

View File

@ -79,6 +79,7 @@ const i18n = {
// likes view
likedBy: "'s likes",
// composer
attachFiles: "Attach files",
preview: "Preview",
publish: "Publish",
contentWarningPlaceholder: "Optional content warning for this post",
@ -88,7 +89,7 @@ const i18n = {
" below. This may be useful for prototyping or publishing messages that Oasis doesn't support. This message cannot be edited or deleted.",
],
commentWarning: [
" Comments cannot be edited or deleted. To respond to an individual message, select ",
" Published comments cannot be edited or deleted. To respond to an individual message, select ",
strong("subtopic"),
" instead.",
],
@ -99,7 +100,7 @@ const i18n = {
strong(`${publicOrPrivate} comment`),
" on this thread with ",
a({ href: markdownUrl }, "Markdown"),
".",
". Preview shows attached media.",
],
publishLabel: ({ markdownUrl, linkTarget }) => [
"Write a new public post in ",
@ -110,7 +111,7 @@ const i18n = {
},
"Markdown"
),
". Posts cannot be edited or deleted.",
". Published posts cannot be edited or deleted. Preview to see attached media before publishing.",
],
publishCustomInfo: ({ href }) => [
"If you're an advanced user, you can also ",
@ -131,7 +132,7 @@ const i18n = {
a({ href: markdownUrl }, "Markdown"),
". Messages cannot be edited or deleted. To respond to an entire thread, select ",
strong("comment"),
" instead.",
" instead. Preview shows attached media.",
],
// settings
settingsIntro: ({ readmeUrl, version }) => [
@ -255,6 +256,8 @@ const i18n = {
// likes view
likedBy: "le gusta",
// composer
attachFiles: "Agregar archivos",
preview: "Vista previa",
publish: "Publicar",
contentWarningPlaceholder: "Advertencia opcional para esta publicación",
publishCustomDescription: [
@ -425,6 +428,8 @@ const i18n = {
// likes view
likedBy: "'s Likes",
// composer
attachFiles: "ATTACH FILES",
preview: "PREVIEW",
publish: "Veröffentlichen",
contentWarningPlaceholder: "Optionale Inhaltswarnung für diesen Beitrag",
publishCustomDescription: [
@ -599,6 +604,8 @@ const i18n = {
// likes view
likedBy: "Like di ", // here the subject of the sentence should be put at the end (as if it were "liked by X" instead of "X's likes"
// composer
attachFiles: "Aggiungere i file",
preview: "Visualizza l'anteprima",
publish: "Pubblica",
contentWarningPlaceholder:
"Avviso su possibili contenuti per adulti nel post, opzionale",
@ -778,6 +785,8 @@ const i18n = {
// likes view
likedBy: "a voté",
// composer
attachFiles: "Ajouter des fichiers",
preview: "Examiner",
publish: "Publier",
contentWarningPlaceholder:
"Avertissement de contenu facultatif pour ce poste",

View File

@ -721,8 +721,8 @@ exports.commentView = async ({ messages, myFeedId, parentMessage }, preview, tex
placeholder: i18n.contentWarningPlaceholder,
})
),
button( { type: "submit", }, "Preview comment" ),
label({ class: "file-button", for: "blob"}, "Attach files"),
button({ type: "submit" }, i18n.preview),
label({ class: "file-button", for: "blob"}, i18n.attachFiles),
input({ type: "file", id: "blob", name: "blob" })
)
);
@ -825,7 +825,7 @@ exports.publishView = (preview, text, contentWarning) => {
})
),
button({ type: "submit" }, i18n.preview),
label({ class: "file-button", for: "blob"}, "Attach files"),
label({ class: "file-button", for: "blob"}, i18n.attachFiles),
input({ type: "file", id: "blob", name: "blob" })
)
),
@ -1213,8 +1213,8 @@ exports.subtopicView = async ({ messages, myFeedId }, preview, text, contentWarn
placeholder: i18n.contentWarningPlaceholder,
})
),
button({ type: "submit" }, "Preview subtopic"),
label({ class: "file-button", for: "blob"}, "Attach files"),
button({ type: "submit" }, i18n.preview),
label({ class: "file-button", for: "blob"}, i18n.attachFiles),
input({ type: "file", id: "blob", name: "blob" })
)
);