ckgedit icon indicating copy to clipboard operation
ckgedit copied to clipboard

Buttom "CKG Edit" does not show custom translation in Chrome

Open mschlenstedt opened this issue 2 years ago • 3 comments

When setting a custom translation the button isn't translated in Chrome correctly. Only the title (which is a popup in Chrome) will be translated:

conf/plugin_lang/ckgedit/de/lang.php:

$lang['btn_fck_edit']          = 'WYSIWYG Editor';

image

Changing line /lib/plugins/ckgedit/action/meta.php:430 in my installation, which is https://github.com/turnermm/ckgedit/blob/c6b47a9d53c592b152d328fa8d48a8dcf6bdcaa3/action/meta.php#L421 here in the sources, does the trick:

$button = '&nbsp;<button name="do[cancel]" type="submit" class="button" title="' . $title .'" id="edbtn__edit" value="CKG Edit" ' . $disabled. ' style = "' .$dwedit_only.'" onclick="return setDWEditCookie(1, this);"/>' . $title .'</button>&nbsp;';

mschlenstedt avatar Sep 13 '22 04:09 mschlenstedt

This is the name of the plugin in the same way that Dokuwiki is the name of the wiki

turnermm avatar Sep 13 '22 14:09 turnermm

But why don't make it configurable via user translation as shown above?! Using a fix string is not very clever in my point of view.

I just replaced the fix string with $title. No big deal.

mschlenstedt avatar Sep 13 '22 15:09 mschlenstedt

Then make a pull request.

turnermm avatar Sep 14 '22 01:09 turnermm