Skip to content

Commit a5b031f

Browse files
Translatable description for OpenSearch XML
1 parent 4f890c4 commit a5b031f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lang/en/common.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,7 @@
107107
// Not directly used but available for convenience to users.
108108
'privacy_policy' => 'Privacy Policy',
109109
'terms_of_service' => 'Terms of Service',
110+
111+
// OpenSearch
112+
'opensearch_description' => 'Search :appName',
110113
];

resources/views/misc/opensearch.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
22
<ShortName>{{ mb_strimwidth(setting('app-name'), 0, 16) }}</ShortName>
3-
<Description>Search {{ setting('app-name') }}</Description>
3+
<Description>{{ trans('common.opensearch_description', ['appName' => setting('app-name')]) }}</Description>
44
<Image width="256" height="256" type="image/png">{{ setting('app-icon') ?: url('/icon.png') }}</Image>
55
<Image width="180" height="180" type="image/png">{{ setting('app-icon-180') ?: url('/icon-180.png') }}</Image>
66
<Image width="128" height="128" type="image/png">{{ setting('app-icon-128') ?: url('/icon-128.png') }}</Image>

0 commit comments

Comments
 (0)