diff options
-rw-r--r-- | app/channel.go | 8 | ||||
-rw-r--r-- | i18n/en.json | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/app/channel.go b/app/channel.go index 7637e9d21..7394d813b 100644 --- a/app/channel.go +++ b/app/channel.go @@ -397,13 +397,13 @@ func (a *App) UpdateChannelPrivacy(oldChannel *model.Channel, user *model.User) } func (a *App) postChannelPrivacyMessage(user *model.User, channel *model.Channel) *model.AppError { - privacy := (map[string]string{ - model.CHANNEL_OPEN: "private_to_public", - model.CHANNEL_PRIVATE: "public_to_private", + message := (map[string]string{ + model.CHANNEL_OPEN: utils.T("api.channel.change_channel_privacy.private_to_public"), + model.CHANNEL_PRIVATE: utils.T("api.channel.change_channel_privacy.public_to_private"), })[channel.Type] post := &model.Post{ ChannelId: channel.Id, - Message: utils.T("api.channel.change_channel_privacy." + privacy), + Message: message, Type: model.POST_CHANGE_CHANNEL_PRIVACY, UserId: user.Id, Props: model.StringInterface{ diff --git a/i18n/en.json b/i18n/en.json index 190aa4cea..ede4f1db2 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -100,6 +100,14 @@ "translation": "Can not add user to this channel type" }, { + "id": "api.channel.change_channel_privacy.private_to_public", + "translation": "This channel has been converted to a Public Channel and can be joined by any team member." + }, + { + "id": "api.channel.change_channel_privacy.public_to_private", + "translation": "This channel has been converted to a Private Channel." + }, + { "id": "api.channel.convert_channel_to_private.default_channel_error", "translation": "This default channel cannot be converted into a private channel." }, |