From b06f6470e7417bc0be60d090c29471a242a8a18c Mon Sep 17 00:00:00 2001 From: Robert Korulczyk Date: Wed, 17 Feb 2021 22:23:40 +0100 Subject: [PATCH] Move locale files from language pack to extension. (#56) --- extensions/mentions/locale/.gitkeep | 0 extensions/mentions/locale/en.yml | 69 +++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) delete mode 100644 extensions/mentions/locale/.gitkeep create mode 100644 extensions/mentions/locale/en.yml diff --git a/extensions/mentions/locale/.gitkeep b/extensions/mentions/locale/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/extensions/mentions/locale/en.yml b/extensions/mentions/locale/en.yml new file mode 100644 index 000000000..a46a07950 --- /dev/null +++ b/extensions/mentions/locale/en.yml @@ -0,0 +1,69 @@ +flarum-mentions: + + ## + # UNIQUE KEYS - The following keys are used in only one location each. + ## + + # Translations in this namespace are used by the forum user interface. + forum: + + # These translations are used by the composer (reply autocompletion function). + composer: + mention_tooltip: Mention a user or post + reply_to_post_text: "Reply to #{number}" + + # These translations are used by the Notifications dropdown, a.k.a. "the bell". + notifications: + others_text: => core.ref.some_others + post_mentioned_text: "{username} replied to your post" # Can be pluralized to agree with the number of users! + user_mentioned_text: "{username} mentioned you" + + # These translations are displayed beneath individual posts. + post: + mentioned_by_self_text: "{users} replied to this." # Can be pluralized to agree with the number of users! + mentioned_by_text: "{users} replied to this." # Can be pluralized to agree with the number of users! + others_text: => core.ref.some_others + quote_button: Quote + reply_link: => core.ref.reply + you_text: => core.ref.you + + # These translations are used in the Settings page. + settings: + notify_post_mentioned_label: Someone replies to one of my posts + notify_user_mentioned_label: Someone mentions me in a post + + # These translations are used in the user profile page and profile popup. + user: + mentions_link: Mentions + + # Translations in this namespace are used in emails sent by the forum. + email: + + # These translations are used in emails sent when a post is replied to + post_mentioned: + subject: "{replier_display_name} replied to your post in {title}" + body: | + Hey {recipient_display_name}! + + {replier_display_name} replied to your post (#{post_number}) in {title}. + + {url} + + --- + + {content} + + # These translations are used in emails sent when a user is mentioned + user_mentioned: + subject: "{mentioner_display_name} mentioned you in {title}" + body: | + Hey {recipient_display_name}! + + {mentioner_display_name} mentioned you in a post in {title}. + + {url} + + --- + + {content} +