Skip to content

Commit

Permalink
some smaller fixes
Browse files Browse the repository at this point in the history
* stray debugger statement removed
* renamed point button texts
* added German translation
  • Loading branch information
splitbrain committed Mar 14, 2023
1 parent 6cf327c commit e228d6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion ImageMappingEditor.js
Expand Up @@ -73,7 +73,6 @@ class ImageMappingEditor {
this.imgurl = this.constructImgUrl(area.value.substring(map.start, area.value.indexOf('}}', map.start)));

// check if a link is selected
debugger;
let link = this.elementBoundary('[[', ']]', map.start, map.end);
if (link) {
// we are in a link, adjust it if it's an image link
Expand Down
10 changes: 7 additions & 3 deletions lang/de/lang.php
@@ -1,6 +1,10 @@
<?php

$lang['btn_print'] = 'GEXF Mindmap';
$lang['js']['please_mark'] = 'Bitte Bild markieren. Das Bild muss existieren.';
$lang['js']['title'] = 'Image Map Koordinaten bearbeiten';
$lang['js']['btn_fewer'] = 'Punkt entfernen';
$lang['js']['btn_more'] = 'Punkt hinzufügen';
$lang['js']['btn_save'] = 'Speichern';
$lang['js']['btn_cancel'] = 'Abbrechen';
$lang['js']['wrongcontext'] ='Der Image Map Koordinaten Editor kann nur verwendet werden, wenn der Cursor auf einem Bild oder einer existierenden Image Map steht.';


?>
4 changes: 2 additions & 2 deletions lang/en/lang.php
@@ -1,8 +1,8 @@
<?php

$lang['js']['title'] = 'Edit Image Map Coordinates';
$lang['js']['btn_fewer'] = 'Fewer Points';
$lang['js']['btn_more'] = 'More Points';
$lang['js']['btn_fewer'] = 'Remove Point';
$lang['js']['btn_more'] = 'Add Point';
$lang['js']['btn_save'] = 'Save';
$lang['js']['btn_cancel'] = 'Cancel';
$lang['js']['wrongcontext'] ='The image map coordinate editor can only be used with the cursor positioned on images or existing image maps.';
Expand Down

0 comments on commit e228d6e

Please sign in to comment.