mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
Centralize pagination/canonical meta URL generation in Document (#3077)
* Centralize pagination/canonical meta URL generation in Document * Apply fixes from StyleCI [ci skip] [skip ci] * Use translations for title template * Apply fixes from StyleCI [ci skip] [skip ci] * Dont add translator to title driver interface It's an implementation detail, and can be made available on specific implementations as needed. Co-authored-by: Alexander Skvortsov <askvortsov1@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
02f351001c
commit
dcc9868129
@@ -628,6 +628,11 @@ core:
|
||||
submit_button: => core.ref.save_changes
|
||||
title: => core.ref.reset_your_password
|
||||
|
||||
# Translations in this namespace are used to format page meta titles.
|
||||
meta_titles:
|
||||
with_page_title: "{pageNumber, plural, =1 {{pageTitle} - {forumName}} other {{pageTitle}: Page # - {forumName}}}"
|
||||
without_page_title: "{pageNumber, plural, =1 {{forumName}} other {Page # - {forumName}}}"
|
||||
|
||||
# Translations in this namespace are used in messages output by the API.
|
||||
api:
|
||||
invalid_username_message: "The username may only contain letters, numbers, and dashes."
|
||||
|
Reference in New Issue
Block a user