1
0
mirror of https://github.com/flarum/core.git synced 2025-08-16 13:24:11 +02:00

Tweak translation keys

Refs #72.
This commit is contained in:
Franz Liedke
2020-03-06 20:38:44 +01:00
parent 38174cfa2b
commit 54f1ec008d
3 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ export default class TagsPage extends Page {
config(...args) { config(...args) {
super.config(...args); super.config(...args);
app.setTitle(app.translator.trans('flarum-tags.forum.meta.tags_title')); app.setTitle(app.translator.trans('flarum-tags.forum.all_tags.meta_title_text'));
app.setTitleCount(0); app.setTitleCount(0);
} }
} }

View File

@@ -84,7 +84,7 @@ class Tag
if ($tag->description) { if ($tag->description) {
$document->meta['description'] = $tag->description; $document->meta['description'] = $tag->description;
} else { } else {
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.meta.tag_description', ['{tag}' => $tag->name]); $document->meta['description'] = $this->translator->trans('flarum-tags.forum.tag.meta_description_text', ['{tag}' => $tag->name]);
} }
$document->content = $this->view->make('tags::frontend.content.tag', compact('apiDocument', 'page', 'tag')); $document->content = $this->view->make('tags::frontend.content.tag', compact('apiDocument', 'page', 'tag'));
$document->payload['apiDocument'] = $apiDocument; $document->payload['apiDocument'] = $apiDocument;

View File

@@ -91,8 +91,8 @@ class Tags
]; ];
}); });
$document->title = $this->translator->trans('flarum-tags.forum.meta.tags_title'); $document->title = $this->translator->trans('flarum-tags.forum.all_tags.meta_title_text');
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.meta.tags_description'); $document->meta['description'] = $this->translator->trans('flarum-tags.forum.all_tags.meta_description_text');
$document->content = $this->view->make('tags::frontend.content.tags', compact('primaryTags', 'secondaryTags', 'children')); $document->content = $this->view->make('tags::frontend.content.tags', compact('primaryTags', 'secondaryTags', 'children'));
$document->canonicalUrl = $defaultRoute === '/tags' ? $this->url->to('forum')->base() : $request->getUri()->withQuery(''); $document->canonicalUrl = $defaultRoute === '/tags' ? $this->url->to('forum')->base() : $request->getUri()->withQuery('');