Make dates respect current locale (deprecations!)
And make comments use it in a smart way (it's not but it works) Deprecate "extra.date_format" and "extra.comments.locale" and replace it with "date_format" and "date_locale" in translation files
This commit is contained in:
15
i18n/ar.toml
15
i18n/ar.toml
@ -1,10 +1,11 @@
|
||||
# Hello, the Arabic language has many pronouns and words, and each word indicates a different meaning,
|
||||
# unlike the English language, in which, on the other hand, the word can refer to a person and a group.
|
||||
# This translation is for individual use, if you are a company or organization, I have put a comment in
|
||||
# front of each translation that refers to the person and the other word that refers to the organization
|
||||
|
||||
language_name = "العربية" # Shown in language picker for multi-language sites.
|
||||
date_locale = "ar-SA" # The locale code for time and date formatting.
|
||||
# Shown in language picker for multi-language sites
|
||||
language_name = "العربية"
|
||||
# Tera date format used for listing posts
|
||||
# (post publication date, tag posts list...).
|
||||
# Not used in comments, "date_locale" is used instead.
|
||||
# See https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html
|
||||
date_format = "%d %B %Y"
|
||||
date_locale = "ar_SA"
|
||||
|
||||
# Menu items.
|
||||
# Should match the names in config.extra.nav.links and config.extra.footer.links.
|
||||
|
10
i18n/en.toml
10
i18n/en.toml
@ -1,5 +1,11 @@
|
||||
language_name = "English" # Shown in language picker for multi-language sites.
|
||||
date_locale = "en-GB"
|
||||
# Shown in language picker for multi-language sites
|
||||
language_name = "English"
|
||||
# Tera date format used for listing posts
|
||||
# (post publication date, tag posts list...).
|
||||
# Not used in comments, "date_locale" is used instead.
|
||||
# See https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html
|
||||
date_format = "%d %B %Y"
|
||||
date_locale = "en_IE"
|
||||
|
||||
# Menu items.
|
||||
# Should match the names in config.extra.nav.links and config.extra.footer.links.
|
||||
|
10
i18n/ru.toml
10
i18n/ru.toml
@ -1,5 +1,11 @@
|
||||
language_name = "Русский" # Shown in language picker for multi-language sites.
|
||||
date_locale = "ru-RU"
|
||||
# Shown in language picker for multi-language sites
|
||||
language_name = "Русский"
|
||||
# Tera date format used for listing posts
|
||||
# (post publication date, tag posts list...).
|
||||
# Not used in comments, "date_locale" is used instead.
|
||||
# See https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html
|
||||
date_format = "%d %B %Y г."
|
||||
date_locale = "ru_RU"
|
||||
|
||||
# Note on pluralization prefixes:
|
||||
# - few_: for numbers ending in 2-4, except 12-14, in genitive singular.
|
||||
|
Reference in New Issue
Block a user