diff --git a/extension.php b/extension.php index 326ee13..ca2fd34 100644 --- a/extension.php +++ b/extension.php @@ -23,7 +23,9 @@ class KagiSummarizerExtension extends Minz_Extension { } public function addSummarizeButton(FreshRSS_Entry $entry): FreshRSS_Entry { - $entry->_content('

Summarize

' . $entry->content()); + $this->registerTranslates(); + + $entry->_content('

' . _t('ext.kagiSummarizer.ui.summarize_button') . '

' . $entry->content()); return $entry; } } diff --git a/i18n/en/ext.php b/i18n/en/ext.php index ddd4b18..08aac11 100644 --- a/i18n/en/ext.php +++ b/i18n/en/ext.php @@ -5,6 +5,9 @@ return array( 'configure' => array( 'kagi_token' => 'Kagi Token', 'kagi_token_help' => 'Copy and paste the "Session Link" from your Kagi Account settings.' + ), + 'ui' => array( + 'summarize_button' => 'Summarize' ) ) );