From a5b031f9060141364ed9152eacdb9b494cfa76a7 Mon Sep 17 00:00:00 2001 From: Maximilian Walter Date: Sat, 14 Sep 2024 15:43:46 +0200 Subject: [PATCH] Translatable description for OpenSearch XML --- lang/en/common.php | 3 +++ resources/views/misc/opensearch.blade.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lang/en/common.php b/lang/en/common.php index 266174eed..b05169bb2 100644 --- a/lang/en/common.php +++ b/lang/en/common.php @@ -107,4 +107,7 @@ return [ // Not directly used but available for convenience to users. 'privacy_policy' => 'Privacy Policy', 'terms_of_service' => 'Terms of Service', + + // OpenSearch + 'opensearch_description' => 'Search :appName', ]; diff --git a/resources/views/misc/opensearch.blade.php b/resources/views/misc/opensearch.blade.php index e83e83c12..366c237b2 100644 --- a/resources/views/misc/opensearch.blade.php +++ b/resources/views/misc/opensearch.blade.php @@ -1,6 +1,6 @@ {{ mb_strimwidth(setting('app-name'), 0, 16) }} - Search {{ setting('app-name') }} + {{ trans('common.opensearch_description', ['appName' => setting('app-name')]) }} {{ setting('app-icon') ?: url('/icon.png') }} {{ setting('app-icon-180') ?: url('/icon-180.png') }} {{ setting('app-icon-128') ?: url('/icon-128.png') }}