From 96b6dd28f7a2584f58e1c2d00040f586fe868074 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Mon, 25 Sep 2023 13:24:33 -0500 Subject: [PATCH] localize button text --- extension.php | 4 +++- i18n/en/ext.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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' ) ) );