Add warning about blog only being available in english
This commit is contained in:
parent
16a658a24d
commit
fb4ff11945
2 changed files with 13 additions and 0 deletions
|
@ -14,6 +14,17 @@ $page->bodyStart();
|
||||||
$page->navigation();
|
$page->navigation();
|
||||||
|
|
||||||
$posts = Blog::getPosts();
|
$posts = Blog::getPosts();
|
||||||
|
|
||||||
|
if ('en' !== \Locale::getPrimaryLanguage($user->locale)) {
|
||||||
|
$page->messages[] = Page::warning(
|
||||||
|
sprintf(
|
||||||
|
/** TRANSLATORS: %s: Language, most likely English */
|
||||||
|
__('The blog is currently only available in %s and not translateable. Please let me know if you have any ideas to improve this.'),
|
||||||
|
'<strong>' . \Locale::getDisplayName('en', 'en') . '</strong>'
|
||||||
|
),
|
||||||
|
__('Warning')
|
||||||
|
);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
|
@ -32,6 +32,8 @@ $page->navigation();
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<div class="ui text container">
|
<div class="ui text container">
|
||||||
|
<?= $page->messages() ?>
|
||||||
|
|
||||||
<div class="ui segments">
|
<div class="ui segments">
|
||||||
<div class="ui fitted segment image">
|
<div class="ui fitted segment image">
|
||||||
<?= $postMediaHTML ?>
|
<?= $postMediaHTML ?>
|
||||||
|
|
Loading…
Reference in a new issue