mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added translations in
This commit is contained in:
parent
e2819c3bc6
commit
03311311dd
1 changed files with 25 additions and 24 deletions
|
@ -1,18 +1,17 @@
|
||||||
extends ../layout
|
extends ../layout
|
||||||
block scripts
|
block scripts
|
||||||
|
|
||||||
|
script(src="https://js.recurly.com/v3/recurly.js")
|
||||||
|
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
window.recomendedCurrency = '#{currency}'
|
window.recomendedCurrency = '#{currency}'
|
||||||
window.plan_code = '#{plan_code}'
|
window.plan_code = '#{plan_code}'
|
||||||
|
|
||||||
window.recurlyCreds = { apiKey : "sc-GVdZOe7akgWbZRIFPllOx9", apiUrl:""}
|
window.recurlyCreds = { apiKey : "sc-GVdZOe7akgWbZRIFPllOx9", apiUrl:""}
|
||||||
|
|
||||||
|
|
||||||
block content
|
block content
|
||||||
- locals.supressDefaultJs = true
|
- locals.supressDefaultJs = true
|
||||||
script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
|
script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
|
||||||
script(src="https://js.recurly.com/v3/recurly.js")
|
|
||||||
|
|
||||||
|
|
||||||
.content.content-alt
|
.content.content-alt
|
||||||
|
@ -40,16 +39,18 @@ block content
|
||||||
.row
|
.row
|
||||||
.col-md-9
|
.col-md-9
|
||||||
h2 {{planName}}
|
h2 {{planName}}
|
||||||
span First {{trialLength}} days free
|
span !{translate("first_few_days_free", {trialLen:'{{trialLen}}'})}
|
||||||
|
|
||||||
|
|
||||||
.col-md-3
|
.col-md-3
|
||||||
h2.pull-right {{price}}
|
h2.pull-right {{price}}
|
||||||
span.pull-right every {{billingCycleType}}
|
span.pull-right #{translate("every")} {{billingCycleType}}
|
||||||
hr
|
hr
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.form-group
|
.form-group
|
||||||
label.radio-inline Credit Card
|
label.radio-inline #{translate("credit_card")}
|
||||||
input(type="radio",value="credit_card", ng-model="paymentMethod")
|
input(type="radio",value="credit_card", ng-model="paymentMethod")
|
||||||
label.radio-inline Paypal
|
label.radio-inline Paypal
|
||||||
input(type="radio", value="paypal", ng-model="paymentMethod")
|
input(type="radio", value="paypal", ng-model="paymentMethod")
|
||||||
|
@ -61,32 +62,32 @@ block content
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.form-group
|
.form-group
|
||||||
div(ng-hide="validation.correctCvv") invalid cvv
|
div(ng-hide="validation.correctCvv") #{translate("invalid")} CVV
|
||||||
div(ng-hide="validation.correctCardNumber") invalid card number
|
div(ng-hide="validation.correctCardNumber") #{translate("invalid")} #{translate("credit_card_number")}
|
||||||
.col-md-9
|
.col-md-9
|
||||||
.form-group(ng-class="validation.correctCardNumber ? '' : 'has-error' ")
|
.form-group(ng-class="validation.correctCardNumber ? '' : 'has-error' ")
|
||||||
input.form-control(ng-model='data.number', ng-blur="validateCardNumber()", placeholder='Credit Card Number')
|
input.form-control(ng-model='data.number', ng-blur="validateCardNumber()", placeholder="#{translate('credit_card_number')}")
|
||||||
.col-md-3
|
.col-md-3
|
||||||
.form-group(ng-class="validation.correctCvv ? '' : 'has-error' ")
|
.form-group(ng-class="validation.correctCvv ? '' : 'has-error' ")
|
||||||
input.form-control(ng-model='data.cvv', ng-blur="validateCvv()")
|
input.form-control(ng-model='data.cvv', ng-blur="validateCvv()", placeholder="CVV")
|
||||||
.row
|
.row
|
||||||
div(ng-hide="validation.correctExpiry") invalid expiry
|
div(ng-hide="validation.correctExpiry") #{translate("invalid")} #{translate("expiry")}
|
||||||
.col-md-5
|
.col-md-5
|
||||||
.form-group(ng-class="validation.correctExpiry ? '' : 'has-error' ")
|
.form-group(ng-class="validation.correctExpiry ? '' : 'has-error' ")
|
||||||
label #{translate("month")}
|
label #{translate("month")}
|
||||||
select.form-control(data-recurly='month', ng-change="validateExpiry()", ng-model='data.month')
|
select.form-control(data-recurly='month', ng-change="validateExpiry()", ng-model='data.month')
|
||||||
option(value="01") 01 January
|
option(value="01") 01 #{translate("january")}
|
||||||
option(value="02") 02 February
|
option(value="02") 02 #{translate("february")}
|
||||||
option(value="03") 03 March
|
option(value="03") 03 #{translate("march")}
|
||||||
option(value="04") 04 April
|
option(value="04") 04 #{translate("april")}
|
||||||
option(value="05") 05 May
|
option(value="05") 05 #{translate("may")}
|
||||||
option(value="06") 06 June
|
option(value="06") 06 #{translate("june")}
|
||||||
option(value="07") 07 July
|
option(value="07") 07 #{translate("july")}
|
||||||
option(value="08") 08 August
|
option(value="08") 08 #{translate("august")}
|
||||||
option(value="09") 09 September
|
option(value="09") 09 #{translate("september")}
|
||||||
option(value="10") 10 October
|
option(value="10") 10 #{translate("october")}
|
||||||
option(value="11") 11 November
|
option(value="11") 11 #{translate("november")}
|
||||||
option(value="12") 12 December
|
option(value="12") 12 #{translate("december")}
|
||||||
.col-md-5
|
.col-md-5
|
||||||
.form-group(ng-class="validation.correctExpiry ? '' : 'has-error' ")
|
.form-group(ng-class="validation.correctExpiry ? '' : 'has-error' ")
|
||||||
label #{translate("year")}
|
label #{translate("year")}
|
||||||
|
@ -132,7 +133,7 @@ block content
|
||||||
mixin countries_options()
|
mixin countries_options()
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
label #{translate("Coupon")}
|
label #{translate("coupon")}
|
||||||
input.form-control(type='text', ng-blur="applyCoupon()", ng-model="data.coupon")
|
input.form-control(type='text', ng-blur="applyCoupon()", ng-model="data.coupon")
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
|
@ -198,7 +199,7 @@ block content
|
||||||
|
|
||||||
|
|
||||||
mixin countries_options()
|
mixin countries_options()
|
||||||
option(value='-') Select Country
|
option(value='-') #{translate("country")}
|
||||||
option(value='-') --------------
|
option(value='-') --------------
|
||||||
option(value='AF') Afghanistan
|
option(value='AF') Afghanistan
|
||||||
option(value='AL') Albania
|
option(value='AL') Albania
|
||||||
|
|
Loading…
Reference in a new issue