fix(groups): display correct messages in two places

This commit is contained in:
Sabe Jones
2018-07-06 13:20:34 -05:00
parent 0f8e7416f8
commit d1f7e64156
3 changed files with 5 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
#groupPrivateDescription1.icon(:title="$t('privateDescription')")
.svg-icon(v-html='icons.information')
b-tooltip(
:title="$t('privateDescription')",
:title="$t('onlyLeaderCreatesChallengesDetail')",
target="groupPrivateDescription1",
)

View File

@@ -27,9 +27,9 @@ export default {
let userIsRequesting = this.task.group.approvals && this.task.group.approvals.indexOf(this.user._id) !== -1;
if (approvalsLength === 1 && !userIsRequesting) {
return this.$t('youAreRequestingApproval', {userName: approvals[0].userId.profile.name});
return this.$t('userRequestsApproval', {userName: approvals[0].userId.profile.name});
} else if (approvalsLength > 1 && !userIsRequesting) {
return this.$t('youAreRequestingApproval', {userCount: approvalsLength});
return this.$t('userCountRequestsApproval', {userCount: approvalsLength});
} else if (approvalsLength === 1 && userIsRequesting) {
return this.$t('youAreRequestingApproval');
}

View File

@@ -258,7 +258,7 @@
"confirmApproval": "Are you sure you want to approve this task?",
"confirmNeedsWork": "Are you sure you want to mark this task as needing work?",
"userRequestsApproval": "<%= userName %> requests approval",
"userCountRequestsApproval": "<%= userCount %> request approval",
"userCountRequestsApproval": "<%= userCount %> members request approval",
"youAreRequestingApproval": "You are requesting approval",
"chatPrivilegesRevoked": "You cannot do that because your chat privileges have been revoked.",
"cannotCreatePublicGuildWhenMuted": "You cannot create a public guild because your chat privileges have been revoked.",
@@ -385,6 +385,7 @@
"bronzeTier": "Bronze Tier",
"privacySettings": "Privacy Settings",
"onlyLeaderCreatesChallenges": "Only the Leader can create Challenges",
"onlyLeaderCreatesChallengesDetail": "With this option selected, ordinary group members cannot create Challenges for the group.",
"privateGuild": "Private Guild",
"charactersRemaining": "<%= characters %> characters remaining",
"guildSummary": "Summary",