Make Invite-friends-to-group dialog translatable

UI strings of the dialog of invitation to the group made translatable
This commit is contained in:
GihHubSphinx 2015-05-23 02:44:32 +05:00
parent 2440b312a2
commit fe2e0618b8
2 changed files with 17 additions and 11 deletions

View file

@ -103,5 +103,11 @@
"msgPreviewHeading": "Message Preview",
"leaderOnlyChallenges": "Only group leader can create challenges",
"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):"
}

View file

@ -1,26 +1,26 @@
script(type='text/ng-template', id='modals/invite-friends.html')
.modal-header
h4 Invite Friends
h4=env.t('inviteFriends')
.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()')
//-.alert.alert-danger(ng-show='_groupError') {{_groupError}}
.form-group
input.form-control(type='text', placeholder=env.t('userId'), ng-model='invitee')
|&nbsp;
button.btn.btn-primary(type='submit') Invite Existing User
button.btn.btn-primary(type='submit')=env.t('inviteExistUser')
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()')
table.table.table-striped
thead
tr
th Name
th Email
th=env.t('name')
th=env.t('email')
tbody
tr(ng-repeat='email in emails')
td
@ -33,16 +33,16 @@ script(type='text/ng-template', id='modals/invite-friends.html')
i.glyphicon.glyphicon-plus
tr
td.form-group(colspan=2)
label.col-sm-1.control-label By:
label.col-sm-1.control-label=env.t('byColon')
.col-sm-7
input.form-control(type='text', ng-model='inviter')
.col-sm-4
button.btn.btn-primary(type='submit') Invite New User(s)
button.btn.btn-primary(type='submit')=env.t('inviteNewUsers')
//-
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})')
.modal-footer
button.btn.btn-default(ng-click='$close()') Close
button.btn.btn-default(ng-click='$close()')=env.t('close')