Skip to content

Commit

Permalink
Translatable description for OpenSearch XML
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-walter committed Sep 30, 2024
1 parent 4f890c4 commit a5b031f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lang/en/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,7 @@
// Not directly used but available for convenience to users.
'privacy_policy' => 'Privacy Policy',
'terms_of_service' => 'Terms of Service',

// OpenSearch
'opensearch_description' => 'Search :appName',
];
2 changes: 1 addition & 1 deletion resources/views/misc/opensearch.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>{{ mb_strimwidth(setting('app-name'), 0, 16) }}</ShortName>
<Description>Search {{ setting('app-name') }}</Description>
<Description>{{ trans('common.opensearch_description', ['appName' => setting('app-name')]) }}</Description>
<Image width="256" height="256" type="image/png">{{ setting('app-icon') ?: url('/icon.png') }}</Image>
<Image width="180" height="180" type="image/png">{{ setting('app-icon-180') ?: url('/icon-180.png') }}</Image>
<Image width="128" height="128" type="image/png">{{ setting('app-icon-128') ?: url('/icon-128.png') }}</Image>
Expand Down

0 comments on commit a5b031f

Please sign in to comment.