From e674b0181b16f8f342242744eefd7fa34d8f571b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 10 Dec 2017 21:05:01 +1030 Subject: [PATCH] Extract admin dashboard statistics from core into an extension --- extensions/lang-english/locale/core.yml | 14 ++------------ .../lang-english/locale/flarum-statistics.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 extensions/lang-english/locale/flarum-statistics.yml diff --git a/extensions/lang-english/locale/core.yml b/extensions/lang-english/locale/core.yml index 26f26d235..6da07a7a2 100644 --- a/extensions/lang-english/locale/core.yml +++ b/extensions/lang-english/locale/core.yml @@ -159,16 +159,6 @@ core: settings: 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. upload_image: 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." delete: Delete delete_forever: Delete Forever - discussions: Discussions + discussions: Discussions # Referenced by flarum-statistics.yml edit: Edit email: Email load_more: Load More @@ -541,7 +531,7 @@ core: notifications: Notifications okay: OK # Referenced by flarum-tags.yml password: Password - posts: Posts + posts: Posts # Referenced by flarum-statistics.yml rename: Rename reply: Reply # Referenced by flarum-mentions.yml reset_your_password: Reset Your Password diff --git a/extensions/lang-english/locale/flarum-statistics.yml b/extensions/lang-english/locale/flarum-statistics.yml new file mode 100644 index 000000000..68a64fcad --- /dev/null +++ b/extensions/lang-english/locale/flarum-statistics.yml @@ -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