Translation of "CLOSE" Button
-
Hey,
how can I change the “CLOSE” text in the modal window to close it? Here is what I already tried:
Opened easy-modal-en_US.po in poedit and Translated the line with “Close” to my language, saved the file as easy-modal-de_DE.po and .mo and changed the language in the settings to German. This didnt worked. But when I translate something else it works just not with “Close”.
Tried changing line 78 in \classes\view\modal.php
$output .= '<a class="'. esc_attr( apply_filters('emodal_modal_close_class_attr', 'emodal-close', $modal) ) .'">'. apply_filters('emodal_modal_close', __("×", 'easy-modal' ), $modal) .'</a>';
to
$output .= '<a class="'. esc_attr( apply_filters('emodal_modal_close_class_attr', 'emodal-close', $modal) ) .'">Somestring</a>';
This didnt work either. What am I missing? If its not translation ready where can I hardcode it?
- The topic ‘Translation of "CLOSE" Button’ is closed to new replies.