From 7d91f179144def7c58cde48a47fc29164930d3a3 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 3 Nov 2016 19:04:01 +0000 Subject: Import Slack bot_message type posts. (#4261) This includes all messages from integrations, as far as I can tell. Messages are "owned" by a special user that is deactivated once the import completes. Override User Names are only shown where the individual Slack posts have a username override in them. Ones set centrally through the Slack Web Hooks administration, or by Slack-official integrations, aren't known so we can't set them on the imported posts. Same for icons. The attachment "colors" aren't imported as Mattermost does not appear to have any equivalent feature. Fixes PLT-48 --- i18n/en.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'i18n/en.json') diff --git a/i18n/en.json b/i18n/en.json index bb4b61168..fe7de229e 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1547,6 +1547,10 @@ "id": "api.slackimport.slack_add_posts.bot.warn", "translation": "Slack bot posts are not imported yet" }, + { + "id": "api.slackimport.slack_add_posts.bot_user_no_exists.warn", + "translation": "Slack Importer: Not importing bot message as the bot-importing user does not exist." + }, { "id": "api.slackimport.slack_add_posts.msg_no_comment.debug", "translation": "File comment undefined" @@ -1555,6 +1559,10 @@ "id": "api.slackimport.slack_add_posts.msg_no_usr.debug", "translation": "Message without user" }, + { + "id": "api.slackimport.slack_add_posts.no_bot_id.warn", + "translation": "Slack Importer: Not importing bot message due to lack of BotId field." + }, { "id": "api.slackimport.slack_add_posts.unsupported.warn", "translation": "Unsupported post type: %v, %v" @@ -1599,6 +1607,14 @@ "id": "api.slackimport.slack_add_users.unable_import", "translation": "Unable to import user: {{.Username}}\r\n" }, + { + "id": "api.slackimport.slack_add_bot_user.email_pwd", + "translation": "Slack Bot/Integration Posts Import User: Email, Password: {{.Email}}, {{.Password}}\r\n" + }, + { + "id": "api.slackimport.slack_add_bot_user.unable_import", + "translation": "Unable to import Slack Bot/Integration Posts Import User: {{.Username}}\r\n" + }, { "id": "api.slackimport.slack_convert_channel_mentions.compile_regexp_failed.warn", "translation": "Failed to compile the !channel matching regular expression for Slack channel {{.ChannelID}} {{.ChannelName}}" @@ -1611,6 +1627,10 @@ "id": "api.slackimport.slack_convert_user_mentions.compile_regexp_failed.warn", "translation": "Failed to compile the @mention matching regular expression for Slack user {{.UserID}} {{.Username}}" }, + { + "id": "api.slackimport.slack_deactivate_bot_user.failed_to_deactivate", + "translation": "Slack Importer: Failed to deactivate the bot-importing user." + }, { "id": "api.slackimport.slack_import.log", "translation": "Mattermost Slack Import Log\r\n" -- cgit v1.2.3-1-g7c22