diff --git a/easy_unsubscribe.php b/easy_unsubscribe.php index 7a7d5fa..42f5847 100644 --- a/easy_unsubscribe.php +++ b/easy_unsubscribe.php @@ -14,6 +14,8 @@ class easy_unsubscribe extends rcube_plugin $this->add_hook('storage_init', array($this, 'storage_init')); $this->include_stylesheet('easy_unsubscribe.css'); + + $this->add_texts('localization/'); } public function storage_init($p) @@ -31,7 +33,7 @@ class easy_unsubscribe extends rcube_plugin $ListUnsubscribe = $p['headers']->others['list-unsubscribe']; if ( preg_match_all('/<(.+)>/mU', $ListUnsubscribe, $items, PREG_PATTERN_ORDER) ) { foreach ( $items[1] as $uri ) { - $this->unsubscribe_img .= 'Unsubscribe'; + $this->unsubscribe_img .= '' . $this->gettext('unsubscribe') . ''; } } } @@ -44,4 +46,4 @@ class easy_unsubscribe extends rcube_plugin return $p; } -} +} \ No newline at end of file diff --git a/localization/en_US.inc b/localization/en_US.inc new file mode 100644 index 0000000..ccdd683 --- /dev/null +++ b/localization/en_US.inc @@ -0,0 +1,7 @@ +