mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Add variable placeholder. (#9465)
Changes the character translation string `charactersRemaining` in groups.json to include a variable placeholder `<%= characters %>`
This commit is contained in:
committed by
Matteo Pagliazzi
parent
22b683b1d9
commit
c5296d4cb0
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user