diff --git a/Editor/Localization/ja.po b/Editor/Localization/ja.po index 54d803c..1fc8fce 100644 --- a/Editor/Localization/ja.po +++ b/Editor/Localization/ja.po @@ -560,8 +560,8 @@ msgid "Slack Token" msgstr "Slackトークン" # slackToken tooltip -msgid "Slack API token. If omitted, it will not be sent." -msgstr "Slack通知に使用するWeb APIトークン(省略時は送信されません)" +msgid "Slack Bot OAuth token. If omitted, it will not be sent." +msgstr "Slack通知に使用するBotのOAuthトークン(省略時は送信されません)" # slackChannels msgid "Slack Channels" @@ -576,12 +576,12 @@ msgid "Error Report Settings" msgstr "エラーレポート設定" # mentionSubTeamIDs -msgid "Mention Sub Team IDs" -msgstr "メンション宛先チームID" +msgid "Mention user group IDs" +msgstr "メンション宛先ユーザーグループID" # mentionSubTeamIDs tooltip -msgid "Comma-separated sub team IDs to mention when posting error reports." -msgstr "エラー終了時に送信する通知をメンションするチームのIDをカンマ区切りで指定します" +msgid "Comma-separated user group IDs to mention when posting error reports." +msgstr "エラー終了時に送信する通知をメンションするユーザーグループのIDをカンマ区切りで指定します" # addHereInSlackMessage msgid "Add @here" @@ -636,12 +636,12 @@ msgid "Also post a report if completed autopilot normally." msgstr "正常終了時にもレポートを送信します" # mentionSubTeamIDs (same as mentionSubTeamIDsOnError) -msgid "Mention Sub Team IDs" -msgstr "メンション宛先チームID" +msgid "Mention User Group IDs" +msgstr "メンション宛先ユーザーグループID" # mentionSubTeamIDs tooltip -msgid "Comma-separated sub team IDs to mention when posting completion reports." -msgstr "正常終了時に送信する通知をメンションするチームのIDをカンマ区切りで指定します" +msgid "Comma-separated user group IDs to mention when posting completion reports." +msgstr "正常終了時に送信する通知をメンションするユーザーグループのIDをカンマ区切りで指定します" # addHereInSlackMessage (same as addHereInSlackMessageOnError) msgid "Add @here" diff --git a/Editor/UI/Reporters/SlackReporterEditor.cs b/Editor/UI/Reporters/SlackReporterEditor.cs index 01dd571..2392942 100644 --- a/Editor/UI/Reporters/SlackReporterEditor.cs +++ b/Editor/UI/Reporters/SlackReporterEditor.cs @@ -24,7 +24,7 @@ public class SlackReporterEditor : UnityEditor.Editor private GUIContent _descriptionGUIContent; private static readonly string s_slackToken = L10n.Tr("Slack Token"); - private static readonly string s_slackTokenTooltip = L10n.Tr("Slack API token. If omitted, it will not be sent."); + private static readonly string s_slackTokenTooltip = L10n.Tr("Slack Bot OAuth token. If omitted, it will not be sent."); private SerializedProperty _slackTokenProp; private GUIContent _slackTokenGUIContent; @@ -35,8 +35,8 @@ public class SlackReporterEditor : UnityEditor.Editor private static readonly string s_errorSettingsHeader = L10n.Tr("Error Report Settings"); - private static readonly string s_mentionSubTeamIDs = L10n.Tr("Mention Sub Team IDs"); - private static readonly string s_mentionSubTeamIDsTooltip = L10n.Tr("Comma-separated sub team IDs to mention when posting error reports."); + private static readonly string s_mentionSubTeamIDs = L10n.Tr("Mention User Group IDs"); + private static readonly string s_mentionSubTeamIDsTooltip = L10n.Tr("Comma-separated user group IDs to mention when posting error reports."); private SerializedProperty _mentionSubTeamIDsProp; private GUIContent _mentionSubTeamIDsGUIContent; @@ -72,8 +72,8 @@ public class SlackReporterEditor : UnityEditor.Editor private SerializedProperty _postOnNormallyProp; private GUIContent _postOnNormallyGUIContent; - private static readonly string s_mentionSubTeamIDsOnNormally = L10n.Tr("Mention Sub Team IDs"); - private static readonly string s_mentionSubTeamIDsOnNormallyTooltip = L10n.Tr("Comma-separated sub team IDs to mention when posting completion reports."); + private static readonly string s_mentionSubTeamIDsOnNormally = L10n.Tr("Mention User Group IDs"); + private static readonly string s_mentionSubTeamIDsOnNormallyTooltip = L10n.Tr("Comma-separated user group IDs to mention when posting completion reports."); private SerializedProperty _mentionSubTeamIDsOnNormallyProp; private GUIContent _mentionSubTeamIDsOnNormallyGUIContent; diff --git a/README.md b/README.md index 172ccc7..c1d3c36 100644 --- a/README.md +++ b/README.md @@ -518,7 +518,7 @@ The instance of this Reporter (.asset file) can have the following settings.
Slack Channels
Channels to send notifications. If omitted, not notified. Multiple channels can be specified by separating them with commas. Note that the bot must be invited to the channel. It can be overwritten with the command line argument -SLACK_CHANNELS, but be careful if multiple SlackReporters are defined, they will all be overwritten with the same value.
-
Mention Sub Team IDs
Comma-separated sub team IDs to mention when posting error reports.
+
Mention User Group IDs
Comma-separated user group IDs to mention when posting error reports.
Add @here
Add @here to the post when posting error reports.
Lead Text
Lead text for error reports. It is used in OS notifications. You can specify placeholders like a "{message}".
Message
Message body template for error reports. You can specify placeholders like a "{message}".
diff --git a/README_ja.md b/README_ja.md index 74865d9..694be35 100644 --- a/README_ja.md +++ b/README_ja.md @@ -522,7 +522,7 @@ Slackにレポート送信するReporterです。
Slackチャンネル
通知を送るチャンネル(省略時は通知されない)。カンマ区切りで複数指定できます。 なお、チャンネルにはBotを招待しておく必要があります。 コマンドライン引数 -SLACK_CHANNELS で上書きできますが、複数のSlackReporterを定義しているとき、すべて同じ値で上書きされますので注意してください。
-
メンション宛先チームID
エラー終了時に送信する通知をメンションするチームのIDをカンマ区切りで指定します
+
メンション宛先ユーザーグループID
エラー終了時に送信する通知をメンションするユーザーグループのIDをカンマ区切りで指定します
@hereをつける
エラー終了時に送信する通知に@hereを付けます
リード文
エラー終了時に送信する通知のリード文。OSの通知に使用されます。"{message}" のようなプレースホルダーを指定できます
メッセージ
エラー終了時に送信するメッセージ本文のテンプレート。"{message}" のようなプレースホルダーを指定できます
diff --git a/Runtime/Reporters/SlackReporter.cs b/Runtime/Reporters/SlackReporter.cs index e56532c..fa92aee 100644 --- a/Runtime/Reporters/SlackReporter.cs +++ b/Runtime/Reporters/SlackReporter.cs @@ -16,7 +16,7 @@ namespace DeNA.Anjin.Reporters public class SlackReporter : AbstractReporter { /// - /// Slack API token. + /// Slack Bot OAuth token. /// public string slackToken; @@ -26,7 +26,7 @@ public class SlackReporter : AbstractReporter public string slackChannels; /// - /// Comma-separated sub team IDs to mention when posting error reports. + /// Comma-separated user group IDs to mention when posting error reports. /// public string mentionSubTeamIDs; @@ -63,7 +63,7 @@ public class SlackReporter : AbstractReporter public bool postOnNormally; /// - /// Comma-separated sub team IDs to mention when posting completion reports. + /// Comma-separated user group IDs to mention when posting completion reports. /// public string mentionSubTeamIDsOnNormally;