From 04f4b1f14ef479623c8bf7cae52e4b0af9567a54 Mon Sep 17 00:00:00 2001 From: Robert Korulczyk Date: Wed, 17 Feb 2021 22:26:31 +0100 Subject: [PATCH] Move locale files from language pack to extension. (#22) --- extensions/approval/locale/.gitkeep | 0 extensions/approval/locale/en.yml | 37 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) delete mode 100644 extensions/approval/locale/.gitkeep create mode 100644 extensions/approval/locale/en.yml diff --git a/extensions/approval/locale/.gitkeep b/extensions/approval/locale/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/extensions/approval/locale/en.yml b/extensions/approval/locale/en.yml new file mode 100644 index 000000000..55c631ae2 --- /dev/null +++ b/extensions/approval/locale/en.yml @@ -0,0 +1,37 @@ +flarum-approval: + + ## + # 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 Permissions page of the admin interface. + permissions: + approve_posts_label: Approve posts + reply_without_approval_label: Reply to discussions without approval + start_discussions_without_approval_label: Start discussions without approval + + # Translations in this namespace are used by the forum user interface. + forum: + + # These translations are displayed as tooltips for discussion badges. + badge: + awaiting_approval_tooltip: => flarum-approval.ref.awaiting_approval + + # These translations are displayed in the post header. + post: + awaiting_approval_text: => flarum-approval.ref.awaiting_approval + + # These translations are used by the post control buttons. + post_controls: + approve_button: Approve + + ## + # REUSED TRANSLATIONS - These keys should not be used directly in code! + ## + + # Translations in this namespace are referenced by two or more unique keys. + ref: + awaiting_approval: Awaiting approval