diff --git a/Controllers/kagiSummarizerController.php b/Controllers/kagiSummarizerController.php index 3fa1b84..eadc929 100644 --- a/Controllers/kagiSummarizerController.php +++ b/Controllers/kagiSummarizerController.php @@ -9,7 +9,7 @@ class FreshExtension_kagiSummarizer_Controller extends Minz_ActionController { if ($kagi_token === null || trim($kagi_token) ==='') { echo json_encode(array( 'response' => array( - 'output_text' => 'No Kagi token configured.', + 'output_text' => _t('ext.kagiSummarizer.ui.no_token_configured'), 'error' => 'configuration'), 'status' => 200)); return; diff --git a/i18n/en/ext.php b/i18n/en/ext.php index 9860ca1..b3577fc 100644 --- a/i18n/en/ext.php +++ b/i18n/en/ext.php @@ -9,7 +9,8 @@ return array( 'ui' => array( 'summarize_button' => 'Summarize', 'loading_summary' => 'Loading summary...', - 'error' => 'Error retrieving summary.' + 'error' => 'Error retrieving summary.', + 'no_token_configured' => 'No Kagi token configured.' ) ) );