mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 19:50:37 +00:00
Make Invite-friends-to-group dialog translatable
UI strings of the dialog of invitation to the group made translatable
This commit is contained in:
parent
2440b312a2
commit
fe2e0618b8
2 changed files with 17 additions and 11 deletions
|
|
@ -103,5 +103,11 @@
|
||||||
"msgPreviewHeading": "Message Preview",
|
"msgPreviewHeading": "Message Preview",
|
||||||
"leaderOnlyChallenges": "Only group leader can create challenges",
|
"leaderOnlyChallenges": "Only group leader can create challenges",
|
||||||
"sendGift": "Send Gift",
|
"sendGift": "Send Gift",
|
||||||
"inviteFriends": "Invite Friends"
|
"inviteFriends": "Invite Friends",
|
||||||
|
"inviteAlertInfo": "Invite friends by <a href='http://habitrpg.wikia.com/wiki/API_Options' target='_blank'>User ID</a> here.",
|
||||||
|
"inviteExistUser": "Invite Existing User",
|
||||||
|
"inviteByEmail": "Invite friends by email. If they join via your email, they'll automatically be invited to this group.",
|
||||||
|
"byColon": "By:",
|
||||||
|
"inviteNewUsers": "Invite New User(s)",
|
||||||
|
"inviteAlertInfo2": "Or share this link (copy/paste):"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
script(type='text/ng-template', id='modals/invite-friends.html')
|
script(type='text/ng-template', id='modals/invite-friends.html')
|
||||||
.modal-header
|
.modal-header
|
||||||
h4 Invite Friends
|
h4=env.t('inviteFriends')
|
||||||
.modal-body
|
.modal-body
|
||||||
p.alert.alert-info Invite friends by <a href='http://habitrpg.wikia.com/wiki/API_Options' target='_blank'>User ID</a> here.
|
p.alert.alert-info!=env.t('inviteAlertInfo')
|
||||||
|
|
||||||
form.form-inline(ng-submit='invite()')
|
form.form-inline(ng-submit='invite()')
|
||||||
//-.alert.alert-danger(ng-show='_groupError') {{_groupError}}
|
//-.alert.alert-danger(ng-show='_groupError') {{_groupError}}
|
||||||
.form-group
|
.form-group
|
||||||
input.form-control(type='text', placeholder=env.t('userId'), ng-model='invitee')
|
input.form-control(type='text', placeholder=env.t('userId'), ng-model='invitee')
|
||||||
|
|
|
|
||||||
button.btn.btn-primary(type='submit') Invite Existing User
|
button.btn.btn-primary(type='submit')=env.t('inviteExistUser')
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
p.alert.alert-info Invite friends by email. If they join via your email, they'll automatically be invited to this group.
|
p.alert.alert-info=env.t('inviteByEmail')
|
||||||
|
|
||||||
form.form-horizontal(ng-submit='inviteEmails()')
|
form.form-horizontal(ng-submit='inviteEmails()')
|
||||||
table.table.table-striped
|
table.table.table-striped
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th Name
|
th=env.t('name')
|
||||||
th Email
|
th=env.t('email')
|
||||||
tbody
|
tbody
|
||||||
tr(ng-repeat='email in emails')
|
tr(ng-repeat='email in emails')
|
||||||
td
|
td
|
||||||
|
|
@ -33,16 +33,16 @@ script(type='text/ng-template', id='modals/invite-friends.html')
|
||||||
i.glyphicon.glyphicon-plus
|
i.glyphicon.glyphicon-plus
|
||||||
tr
|
tr
|
||||||
td.form-group(colspan=2)
|
td.form-group(colspan=2)
|
||||||
label.col-sm-1.control-label By:
|
label.col-sm-1.control-label=env.t('byColon')
|
||||||
.col-sm-7
|
.col-sm-7
|
||||||
input.form-control(type='text', ng-model='inviter')
|
input.form-control(type='text', ng-model='inviter')
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
button.btn.btn-primary(type='submit') Invite New User(s)
|
button.btn.btn-primary(type='submit')=env.t('inviteNewUsers')
|
||||||
//-
|
//-
|
||||||
hr
|
hr
|
||||||
p.alert.alert-info Or share this link (copy/paste):
|
p.alert.alert-info=env.t('inviteAlertInfo2')
|
||||||
input.form-control(type='text', ng-value='inviteLink({id: party._id, inviter: user._id, name: party.name})')
|
input.form-control(type='text', ng-value='inviteLink({id: party._id, inviter: user._id, name: party.name})')
|
||||||
|
|
||||||
.modal-footer
|
.modal-footer
|
||||||
button.btn.btn-default(ng-click='$close()') Close
|
button.btn.btn-default(ng-click='$close()')=env.t('close')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue