Add variable placeholder. (#9465)

Changes the character translation string `charactersRemaining`  in
groups.json to include a variable placeholder `<%= characters %>`
This commit is contained in:
Allister
2017-11-15 08:41:18 -08:00
committed by Matteo Pagliazzi
parent 22b683b1d9
commit c5296d4cb0
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
.form-group .form-group
label label
strong(v-once) {{$t('challengeSummary')}} * 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") textarea.summary-textarea.form-control(:placeholder="$t('challengeSummaryPlaceholder')", v-model="workingChallenge.summary")
.form-group .form-group
label label

View File

@@ -56,7 +56,7 @@
.form-group(v-if='!isParty') .form-group(v-if='!isParty')
label label
strong(v-once) {{$t('guildSummary')}} * 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") 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 // @TODO: need summary only for PUBLIC GUILDS, not for tavern, private guilds, or party

View File

@@ -353,7 +353,7 @@
"privacySettings": "Privacy Settings", "privacySettings": "Privacy Settings",
"onlyLeaderCreatesChallenges": "Only the Leader can create Challenges", "onlyLeaderCreatesChallenges": "Only the Leader can create Challenges",
"privateGuild": "Private Guild", "privateGuild": "Private Guild",
"charactersRemaining": "characters remaining", "charactersRemaining": "<%= characters %> characters remaining",
"guildSummary": "Summary", "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!", "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", "groupDescription": "Description",