localize button text

This commit is contained in:
Rudis Muiznieks 2023-09-25 13:24:33 -05:00
parent c0fd5271b6
commit 96b6dd28f7
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
2 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,9 @@ class KagiSummarizerExtension extends Minz_Extension {
}
public function addSummarizeButton(FreshRSS_Entry $entry): FreshRSS_Entry {
$entry->_content('<p class="kagi-summary"><a class="btn" href="#">Summarize</a></p>' . $entry->content());
$this->registerTranslates();
$entry->_content('<p class="kagi-summary"><a class="btn" href="#">' . _t('ext.kagiSummarizer.ui.summarize_button') . '</a></p>' . $entry->content());
return $entry;
}
}

View File

@ -5,6 +5,9 @@ return array(
'configure' => array(
'kagi_token' => 'Kagi Token',
'kagi_token_help' => 'Copy and paste the "Session Link" from your <a href="https://kagi.com/settings?p=user_details" target="_blank">Kagi Account</a> settings.'
),
'ui' => array(
'summarize_button' => 'Summarize'
)
)
);