mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
Use translations for page titles in frontend
This gives more flexibility for customization, and allows overriding title structure via translations / linguist.
This commit is contained in:
@@ -542,6 +542,11 @@ core:
|
||||
loading_indicator:
|
||||
accessible_label: => core.ref.loading
|
||||
|
||||
# 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}}}"
|
||||
|
||||
# These translations are used in modals.
|
||||
modal:
|
||||
close: Close
|
||||
@@ -628,11 +633,6 @@ 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