summaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-25 15:39:17 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-25 15:39:17 +0200
commitb7dee77cd1dd6f70e3bfa55df8b61681e9db321e (patch)
treec621c76a1e4bc96f16473d26ca239fbf83a0caff /public/javascripts
parent78cd4957c4ca5bd05d93af6061487db095d04ee5 (diff)
Extract admin strings to i18n: dashboard, layout chrome, and the JS bridge
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/admin_interface.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js
index 984eec05..ee0b34cd 100644
--- a/public/javascripts/admin_interface.js
+++ b/public/javascripts/admin_interface.js
@@ -24,8 +24,8 @@ $(document).ready(function () {
24 24
25 editor.ui.registry.addButton('insertpageimage', { 25 editor.ui.registry.addButton('insertpageimage', {
26 icon: 'image', 26 icon: 'image',
27 text: 'Insert image', 27 text: ADMIN_STRINGS.insert_image,
28 tooltip: "Insert one of this page's attached images", 28 tooltip: ADMIN_STRINGS.insert_image_tooltip,
29 onAction: function() { 29 onAction: function() {
30 cccms.inline_images.open(editor); 30 cccms.inline_images.open(editor);
31 } 31 }
@@ -231,10 +231,8 @@ cccms = {
231 $flash = $("<div>", { id: "flash" }).insertAfter(".admin_content_spacer"); 231 $flash = $("<div>", { id: "flash" }).insertAfter(".admin_content_spacer");
232 } 232 }
233 233
234 var $banner = $("<span>", { "class": "warning" }).text( 234 var $banner = $("<span>", { "class": "warning" }).text(ADMIN_STRINGS.lock_lost_prefix);
235 "This page is now locked by someone else — your changes here can no longer be saved. Copy anything you need, then " 235 $banner.append($("<a>", { href: show_url }).text(ADMIN_STRINGS.lock_lost_link));
236 );
237 $banner.append($("<a>", { href: show_url }).text("return to the published page"));
238 $banner.append("."); 236 $banner.append(".");
239 237
240 $flash.html($banner); 238 $flash.html($banner);