Skip to content

Commit 6cf327c

Browse files
committed
move error message to translation
1 parent b06024f commit 6cf327c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ImageMappingEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ImageMappingEditor {
5757
// no map syntax found, check if we are inside an image
5858
const img = this.elementBoundary('{{', '}}');
5959
if (!img) {
60-
alert('The image map editor can only be used with the cursor positioned on images or existing image maps.');
60+
alert(LANG.plugins.imagemapping.wrongcontext);
6161
return false;
6262
}
6363

lang/en/lang.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
$lang['js']['btn_more'] = 'More Points';
66
$lang['js']['btn_save'] = 'Save';
77
$lang['js']['btn_cancel'] = 'Cancel';
8+
$lang['js']['wrongcontext'] ='The image map coordinate editor can only be used with the cursor positioned on images or existing image maps.';
89

910

0 commit comments

Comments
 (0)