mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Add translations for lightbox
This commit is contained in:
parent
5ec19987b4
commit
7e8579b8aa
@ -20,7 +20,16 @@ export default function($elem) {
|
|||||||
mainClass: "mfp-zoom-in",
|
mainClass: "mfp-zoom-in",
|
||||||
|
|
||||||
gallery: {
|
gallery: {
|
||||||
enabled: true
|
enabled: true,
|
||||||
|
tPrev: I18n.t("lightbox.previous"),
|
||||||
|
tNext: I18n.t("lightbox.next"),
|
||||||
|
tCounter: I18n.t("lightbox.counter")
|
||||||
|
},
|
||||||
|
|
||||||
|
tClose: I18n.t("lightbox.close"),
|
||||||
|
tLoading: I18n.t("lightbox.loading"),
|
||||||
|
ajax: {
|
||||||
|
tError: I18n.t("lightbox.content_load_error")
|
||||||
},
|
},
|
||||||
|
|
||||||
callbacks: {
|
callbacks: {
|
||||||
@ -57,6 +66,7 @@ export default function($elem) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
image: {
|
image: {
|
||||||
|
tError: I18n.t("lightbox.image_load_error"),
|
||||||
titleSrc(item) {
|
titleSrc(item) {
|
||||||
const href = item.el.data("download-href") || item.src;
|
const href = item.el.data("download-href") || item.src;
|
||||||
let src = [
|
let src = [
|
||||||
|
@ -2802,6 +2802,13 @@ en:
|
|||||||
|
|
||||||
lightbox:
|
lightbox:
|
||||||
download: "download"
|
download: "download"
|
||||||
|
previous: "Previous (Left arrow key)"
|
||||||
|
next: "Next (Right arrow key)"
|
||||||
|
counter: "%curr% of %total%"
|
||||||
|
close: "Close (Esc)"
|
||||||
|
loading: "Loading…"
|
||||||
|
content_load_error: '<a href="%url%">The content</a> could not be loaded.'
|
||||||
|
image_load_error: '<a href="%url%">The image</a> could not be loaded.'
|
||||||
|
|
||||||
keyboard_shortcuts_help:
|
keyboard_shortcuts_help:
|
||||||
title: "Keyboard Shortcuts"
|
title: "Keyboard Shortcuts"
|
||||||
|
Loading…
Reference in New Issue
Block a user