From c5296d4cb0141bfb3175917435c163a625a39adf Mon Sep 17 00:00:00 2001 From: Allister Date: Wed, 15 Nov 2017 08:41:18 -0800 Subject: [PATCH] Add variable placeholder. (#9465) Changes the character translation string `charactersRemaining` in groups.json to include a variable placeholder `<%= characters %>` --- website/client/components/challenges/challengeModal.vue | 2 +- website/client/components/groups/groupFormModal.vue | 2 +- website/common/locales/en/groups.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/client/components/challenges/challengeModal.vue b/website/client/components/challenges/challengeModal.vue index 8823120077..ffc9413a1b 100644 --- a/website/client/components/challenges/challengeModal.vue +++ b/website/client/components/challenges/challengeModal.vue @@ -12,7 +12,7 @@ .form-group label strong(v-once) {{$t('challengeSummary')}} * - div.summary-count {{charactersRemaining}} {{ $t('charactersRemaining') }} + div.summary-count {{ $t('charactersRemaining', {characters: charactersRemaining}) }} textarea.summary-textarea.form-control(:placeholder="$t('challengeSummaryPlaceholder')", v-model="workingChallenge.summary") .form-group label diff --git a/website/client/components/groups/groupFormModal.vue b/website/client/components/groups/groupFormModal.vue index e8218ca75e..da714db7c0 100644 --- a/website/client/components/groups/groupFormModal.vue +++ b/website/client/components/groups/groupFormModal.vue @@ -56,7 +56,7 @@ .form-group(v-if='!isParty') label strong(v-once) {{$t('guildSummary')}} * - div.summary-count {{charactersRemaining}} {{ $t('charactersRemaining') }} + div.summary-count {{ $t('charactersRemaining', {characters: charactersRemaining}) }} textarea.form-control.summary-textarea(:placeholder="isParty ? $t('partyDescriptionPlaceholder') : $t('guildSummaryPlaceholder')", v-model="workingGroup.summary") // @TODO: need summary only for PUBLIC GUILDS, not for tavern, private guilds, or party diff --git a/website/common/locales/en/groups.json b/website/common/locales/en/groups.json index 93766df660..e0a17bf0e9 100644 --- a/website/common/locales/en/groups.json +++ b/website/common/locales/en/groups.json @@ -353,7 +353,7 @@ "privacySettings": "Privacy Settings", "onlyLeaderCreatesChallenges": "Only the Leader can create Challenges", "privateGuild": "Private Guild", - "charactersRemaining": "characters remaining", + "charactersRemaining": "<%= characters %> characters remaining", "guildSummary": "Summary", "guildSummaryPlaceholder": "Write a short description advertising your Guild to other Habiticans. What is the main purpose of your Guild and why should people join it? Try to include useful keywords in the summary so that Habiticans can easily find it when they search!", "groupDescription": "Description",