1
0
mirror of https://github.com/flarum/core.git synced 2025-08-15 12:54:47 +02:00

Extract admin dashboard statistics from core into an extension

This commit is contained in:
Toby Zerner
2017-12-10 21:05:01 +10:30
parent 8bdbacedcc
commit e674b0181b
2 changed files with 21 additions and 12 deletions

View File

@@ -159,16 +159,6 @@ core:
settings: settings:
submit_button: => core.ref.save_changes submit_button: => core.ref.save_changes
# These translations are used in the Statistics dashboard widget.
statistics:
discussions_heading: => core.ref.discussions
last_28_days_label: Last 28 days
last_7_days_label: Last 7 days
posts_heading: => core.ref.posts
today_label: Today
total_label: Total
users_heading: Users
# These translations are used in image upload buttons. # These translations are used in image upload buttons.
upload_image: upload_image:
remove_button: Remove remove_button: Remove
@@ -530,7 +520,7 @@ core:
confirmation_email_sent: "We've sent a confirmation email to {email}. If it doesn't arrive soon, check your spam folder." confirmation_email_sent: "We've sent a confirmation email to {email}. If it doesn't arrive soon, check your spam folder."
delete: Delete delete: Delete
delete_forever: Delete Forever delete_forever: Delete Forever
discussions: Discussions discussions: Discussions # Referenced by flarum-statistics.yml
edit: Edit edit: Edit
email: Email email: Email
load_more: Load More load_more: Load More
@@ -541,7 +531,7 @@ core:
notifications: Notifications notifications: Notifications
okay: OK # Referenced by flarum-tags.yml okay: OK # Referenced by flarum-tags.yml
password: Password password: Password
posts: Posts posts: Posts # Referenced by flarum-statistics.yml
rename: Rename rename: Rename
reply: Reply # Referenced by flarum-mentions.yml reply: Reply # Referenced by flarum-mentions.yml
reset_your_password: Reset Your Password reset_your_password: Reset Your Password

View File

@@ -0,0 +1,19 @@
flarum-statistics:
##
# UNIQUE KEYS - The following keys are used in only one location each.
##
# Translations in this namespace are used by the admin interface.
admin:
# These translations are used in the Statistics dashboard widget.
statistics:
discussions_heading: => core.ref.discussions
last_12_months_label: Last 12 months
last_28_days_label: Last 28 days
last_7_days_label: Last 7 days
posts_heading: => core.ref.posts
today_label: Today
total_label: Total
users_heading: Users