From b7dee77cd1dd6f70e3bfa55df8b61681e9db321e Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 15:39:17 +0200 Subject: Extract admin strings to i18n: dashboard, layout chrome, and the JS bridge --- public/javascripts/admin_interface.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'public/javascripts') 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 () { editor.ui.registry.addButton('insertpageimage', { icon: 'image', - text: 'Insert image', - tooltip: "Insert one of this page's attached images", + text: ADMIN_STRINGS.insert_image, + tooltip: ADMIN_STRINGS.insert_image_tooltip, onAction: function() { cccms.inline_images.open(editor); } @@ -231,10 +231,8 @@ cccms = { $flash = $("
", { id: "flash" }).insertAfter(".admin_content_spacer"); } - var $banner = $("", { "class": "warning" }).text( - "This page is now locked by someone else — your changes here can no longer be saved. Copy anything you need, then " - ); - $banner.append($("", { href: show_url }).text("return to the published page")); + var $banner = $("", { "class": "warning" }).text(ADMIN_STRINGS.lock_lost_prefix); + $banner.append($("", { href: show_url }).text(ADMIN_STRINGS.lock_lost_link)); $banner.append("."); $flash.html($banner); -- cgit v1.3