diff --git a/services/web/app/views/layout.jade b/services/web/app/views/layout.jade index 47cc832bfa..53f70c3eca 100644 --- a/services/web/app/views/layout.jade +++ b/services/web/app/views/layout.jade @@ -4,11 +4,11 @@ html(itemscope, itemtype='http://schema.org/Product') head - - if (typeof(priority_title) !== "undefined" && priority_title) - title= title + ' - Online LaTeX Editor ShareLaTeX' + title= title + ' - '+ translate("online_latex_editor") - else - title= 'Online LaTeX Editor ShareLaTeX - ' +title + title= translate("online_latex_editor") +' ShareLaTeX - ' +title + link(rel="icon", href="/favicon.ico") link(rel='stylesheet', href='/stylesheets/style.css?fingerprint='+fingerprint('/stylesheets/style.css')) link(href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css",rel="stylesheet") diff --git a/services/web/app/views/referal/bonus.jade b/services/web/app/views/referal/bonus.jade index 1bcc874d20..3439e4694e 100644 --- a/services/web/app/views/referal/bonus.jade +++ b/services/web/app/views/referal/bonus.jade @@ -10,12 +10,12 @@ block content .row .col-md-12 .page-header - h1 Help us spread the word about ShareLaTeX. + h1 #{translate("help_us_spread_word")}. .row .col-md-10.col-md-offset-1 - h2 Share ShareLaTeX with your friends and colleagues and unlock the rewards below + h2 #{translate("share_sl_to_get_rewards")} .row .col-md-8.col-md-offset-2.bonus-banner @@ -29,31 +29,31 @@ block content .row .col-md-8.col-md-offset-2.bonus-banner .title - a(href='#', onclick='postToFeed(); return false;').facebook Post on Facebook + a(href='#', onclick='postToFeed(); return false;').facebook #{translate("post_on_facebook")} .row .col-md-8.col-md-offset-2.bonus-banner .title - a(href="https://plus.google.com/share?url=#{encodeURIComponent(buildReferalUrl('gp'))}", onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;").google-plus Share us on Google+ + a(href="https://plus.google.com/share?url=#{encodeURIComponent(buildReferalUrl('gp'))}", onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;").google-plus #{translate("share_us_on_googleplus")} .row .col-md-8.col-md-offset-2.bonus-banner .title - a(href='mailto:?subject=Online LaTeX editor you may like &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. #{encodeURIComponent(buildReferalUrl("e"))}', title='Share by Email').email Email us to your friends + a(href='mailto:?subject=Online LaTeX editor you may like &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. #{encodeURIComponent(buildReferalUrl("e"))}', title='Share by Email').email #{translate("email_us_to_your_friends")} .row .col-md-8.col-md-offset-2.bonus-banner .title - a(href='#link-modal', data-toggle="modal", ng-click="openLinkToUsModal()").link Link to us from your website + a(href='#link-modal', data-toggle="modal", ng-click="openLinkToUsModal()").link #{translate("link_to_us")} .row .col-md-10.col-md-offset-1.bonus-banner - h2.direct-link Direct Link + h2.direct-link #{translate("direct_link")} pre.text-centered #{buildReferalUrl("d")} .row.ab-bonus .col-md-10.col-md-offset-1.bonus-banner - p.thanks When someone starts using ShareLaTeX after your recommendation we'll give you some free stuff to say thanks! Check your progress below. + p.thanks #{translate("sl_gives_you_free_stuff_see_progress_below")} .row.ab-bonus .col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 30px; margin-top: 20px;") - for (var i = 0; i <= 10; i++) { @@ -67,24 +67,24 @@ block content .col-md-10.col-md-offset-1.bonus-banner .progress - if (refered_user_count == 0) - div(style="text-align: center; padding: 4px;") Spread the word and fill this bar up + div(style="text-align: center; padding: 4px;") #{translate("spread_the_word_and_fill_bar")} .progress-bar.progress-bar-info(style="width: #{refered_user_count}0%") .row.ab-bonus .col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 70px;") - .perk(style="left: 10%;", class = refered_user_count >= 1 ? "active" : "") One free collaborator - .perk(style="left: 30%;", class = refered_user_count >= 3 ? "active" : "") Three free collaborators - .perk(style="left: 60%;", class = refered_user_count >= 6 ? "active" : "") Free Dropbox and History - .perk(style="left: 90%;", class = refered_user_count >= 9 ? "active" : "") Free Professional account + .perk(style="left: 10%;", class = refered_user_count >= 1 ? "active" : "") #{translate("one_free_collab")} + .perk(style="left: 30%;", class = refered_user_count >= 3 ? "active" : "") #{translate("three_free_collab")} + .perk(style="left: 60%;", class = refered_user_count >= 6 ? "active" : "") #{translate("free_dropbox_and_history")} + .perk(style="left: 90%;", class = refered_user_count >= 9 ? "active" : "") #{translate("free_prof_account")} .row.ab-bonus .col-md-10.col-md-offset-1.bonus-banner - if (refered_user_count == 0) - p.thanks You've not introduced anyone to ShareLaTeX yet. Get sharing! + p.thanks #{translate("you_not_introed_anyone_to_sl")} - else if (refered_user_count == 1) - p.thanks You've introduced #{refered_user_count} person to ShareLaTeX. Good job, but can you get some more? + p.thanks #{translate("you_introed_small_number", {numberOfPeople:"#{refered_user_count}"})} - else - p.thanks You've introduced #{refered_user_count} people to ShareLaTeX. Good job! + p.thanks #{translate("you_introed_high_number", {numberOfPeople:"#{refered_user_count}"})} script(type="text/ng-template", id="BonusLinkToUsModal") .modal-header @@ -93,22 +93,22 @@ block content data-dismiss="modal" ng-click="cancel()" ) × - h3 Link to ShareLaTeX + h3 #{translate("link_to_sl")} .modal-body.modal-body-share.link-modal - p You can link to ShareLaTeX with the following HTML: + p #{translate("can_link_to_sl_with_html")} p textarea.col-md-12(readonly=true) Online LaTeX Editor ShareLaTeX - p Thanks! + p #{translate("thanks")}! .modal-footer() button.btn.btn-default( ng-click="cancel()", ) - span Close + span #{translate("close")} diff --git a/services/web/app/views/subscriptions/dashboard.jade b/services/web/app/views/subscriptions/dashboard.jade index 7b5bc077b1..39bb5087d1 100644 --- a/services/web/app/views/subscriptions/dashboard.jade +++ b/services/web/app/views/subscriptions/dashboard.jade @@ -9,14 +9,14 @@ mixin printPlan(plan) strong #{plan.name} td -if (plan.annual) - | $#{plan.price / 100} / year + | $#{plan.price / 100} / #{translate("year")} -else - | $#{plan.price / 100} / month + | $#{plan.price / 100} / #{translate("month")} td -if (subscription.state == "free-trial") - a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success Subscribe to this plan + a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success #{translate("subscribe_to_this_plan")} -else if (plan.planCode == subscription.planCode) - button.btn.disabled Your plan + button.btn.disabled #{translate("your_plan")} -else form(action="/user/subscription/update",method="post") input(type="hidden", name="_csrf", value=csrfToken) @@ -34,44 +34,44 @@ block content .col-md-8.col-md-offset-2 .card .page-header - h1 Your Subscription + h1 #{translate("your_subscription")} case subscription.state when "free-trial" - p You are currently using a free trial which expires on #{subscription.expiresAt}. - p Choose a plan below to subscribe to. + p #{translate("on_free_trial_expiring_at", {expiresAt:"#{subscription.expiresAt}"})} + p #{translate("choose_a_plan_below")} when "active" - p You are currently subscribed to the #{subscription.name} plan. - a(href, ng-click="changePlan = true") Change Plan. - p The next payment of #{subscription.price} will be collected on #{subscription.nextPaymentDueAt} + p #{translate("currently_subscribed_to_plan", {planName:"#{subscription.name}"})} + a(href, ng-click="changePlan = true") #{translate("change_plan")}. + p #{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"#{subscription.price}", collectionDate:"#{subscription.nextPaymentDueAt}"})} p.pull-right p: form(action="/user/subscription/cancel",method="post") input(type="hidden", name="_csrf", value=csrfToken) - a(href="/user/subscription/billing-details/edit").btn.btn-info Update your billing details + a(href="/user/subscription/billing-details/edit").btn.btn-info #{translate("update_your_billing_details")} |   input(type="submit", value="Cancel your subscription").btn.btn-primary#cancelSubscription when "canceled" - p You are currently subscribed to the #{subscription.name} plan. - p Your subscription has been canceled and will terminate on #{subscription.nextPaymentDueAt}. No further payments will be taken. + p #{translate("currently_subscribed_to_plan", {planName:"#{subscription.name}"})} + p #{translate("subscription_canceled_and_terminate_on_x", {terminateDate:"#{subscription.nextPaymentDueAt}"})} p: form(action="/user/subscription/reactivate",method="post") input(type="hidden", name="_csrf", value=csrfToken) input(type="submit",value="Reactivate your subscription").btn.btn-success when "expired" - p Your subscription has expired. - a(href="/user/subscription/plans") Create New Subscription + p #{translate("your_subscription_has_expired")} + a(href="/user/subscription/plans") #{translate("create_new_subscription")} default - p There is a problem with your subscription. Please contact us for more information. + p #{translate("problem_with_subscription_contact_us")} -if(subscription.groupPlan) - a(href="/subscription/group").btn.btn-success Manage Group + a(href="/subscription/group").btn.btn-success #{translate("manage_group")} div(ng-show="changePlan", ng-cloak) hr - h2 Change plan + h2 #{translate("change_plan")} p: table.table tr - th Name - th Price + th #{translate("name")} + th #{translate("price")} th mixin printPlans(plans.studentAccounts) mixin printPlans(plans.individualMonthlyPlans) diff --git a/services/web/app/views/subscriptions/edit-billing-details.jade b/services/web/app/views/subscriptions/edit-billing-details.jade index b3fa4114d9..bc47efb4cb 100644 --- a/services/web/app/views/subscriptions/edit-billing-details.jade +++ b/services/web/app/views/subscriptions/edit-billing-details.jade @@ -11,8 +11,8 @@ block content .col-md-6.col-md-offset-3 .card .page-header - h1.text-centered Update Your Billing Details - #billingDetailsForm Loading billing details form... + h1.text-centered #{translate("update_your_billing_details")} + #billingDetailsForm #{translate("loading_billing_form")}... script(type="text/javascript"). diff --git a/services/web/app/views/subscriptions/group_admin.jade b/services/web/app/views/subscriptions/group_admin.jade index d75f93d1e9..ca3dec0478 100644 --- a/services/web/app/views/subscriptions/group_admin.jade +++ b/services/web/app/views/subscriptions/group_admin.jade @@ -8,13 +8,13 @@ block content .card(ng-controller="GroupMembersController") .page-header .pull-right(ng-cloak) - small(ng-show="selectedUsers.length == 0") You have added {{ users.length }} of {{ groupSize }} available members + small(ng-show="selectedUsers.length == 0") #{translate("you_have_added_x_of_group_size_y", {addedUsersSize:"{{ users.length }}", groupSize:"{{ groupSize }}"})} a.btn.btn-danger( href, ng-show="selectedUsers.length > 0" ng-click="removeMembers()" - ) Remove from group - h1 Group Account + ) #{translate("remove_from_group")} + h1 #{translate("group_account")} .row-spaced-small ul.list-unstyled.structured-list( @@ -28,11 +28,11 @@ block content select-all, type="checkbox" ) - span.header Email + span.header #{translate("email")} .col-md-5 - span.header Name + span.header #{translate("name")} .col-md-2 - span.header Registered + span.header #{translate("registered")} li.container-fluid( ng-repeat="user in users | orderBy:'email':true", ng-controller="GroupMemberListItemController" @@ -57,12 +57,12 @@ block content ) .row .col-md-12.text-centered - small No members + small #{translate("no_members")} div(ng-if="users.length < groupSize", ng-cloak) hr p - .small Add more members + .small #{translate("add_more_members")} form.form .row .col-xs-6 @@ -74,7 +74,7 @@ block content on-enter="addMembers()" ) .col-xs-6 - button.btn.btn-primary(ng-click="addMembers()") Add + button.btn.btn-primary(ng-click="addMembers()") #{translate("add")} script(type="text/javascript"). window.users = !{JSON.stringify(users)}; diff --git a/services/web/app/views/subscriptions/new.jade b/services/web/app/views/subscriptions/new.jade index 9852db25f8..0e6ea577c7 100644 --- a/services/web/app/views/subscriptions/new.jade +++ b/services/web/app/views/subscriptions/new.jade @@ -11,8 +11,8 @@ block content .col-md-6.col-md-offset-3 .card .page-header - h1.text-centered New Subscription - #subscribeForm Loading subscription form... + h1.text-centered #{translate("new_subscription")} + #subscribeForm #{translate("loading_billing_form")}... script(type="text/javascript") ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}") diff --git a/services/web/app/views/subscriptions/successful_subscription.jade b/services/web/app/views/subscriptions/successful_subscription.jade index 1e1fd24b3e..86d9484480 100644 --- a/services/web/app/views/subscriptions/successful_subscription.jade +++ b/services/web/app/views/subscriptions/successful_subscription.jade @@ -7,23 +7,22 @@ block content .col-md-8.col-md-offset-2 .card .page-header - h2 Thanks for subscribing! + h2 #{translate("thanks_for_subscribing")} .alert.alert-success - p Your card will be charged soon. - p The next payment of #{subscription.price} will be collected on #{subscription.nextPaymentDueAt}. - p If you do not want to be charged again - a(href="/user/subscription") click here to cancel. + p #{translate("your_card_will_be_charged_soon")} + p #{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"#{subscription.price}", collectionDate:"#{subscription.nextPaymentDueAt}"})} + p #{translate("if_you_dont_want_to_be_charged")} + a(href="/user/subscription") #{translate("click_here_to_cancel")}. p - if (subscription.groupPlan == true) - a.btn.btn-success.btn-large(href="/subscription/group") Add your first group members now + a.btn.btn-success.btn-large(href="/subscription/group") #{translate("add_your_first_group_member_now")} p.letter-from-founders - p Thank you for subscribing to the #{subscription.name} plan. It's support from people like yourself that allows ShareLaTeX to continue to grow and improve. - - p If there is anything you ever need please feel free to contact us directly at + p #{translate("thanks_for_subscribing_you_help_sl", {planName:subscription.name})} + p #{translate("need_anything_contact_us_at")} a(href='mailto:support@sharelatex.com') support@sharelatex.com - | . It goes straight to both our inboxes. - p Regards, + | . #{translate("goes_straight_to_our_inboxes")}. + p #{translate("regards")}, br | Henry and James .portraits @@ -33,4 +32,4 @@ block content span.img-circle img(src="/img/about/james_allen.jpg") p - a.btn.btn-primary(href="/project") < Back to your projects + a.btn.btn-primary(href="/project") < #{translate("back_to_your_projects")} diff --git a/services/web/app/views/templates/index.jade b/services/web/app/views/templates/index.jade index feade78f51..3965732f94 100644 --- a/services/web/app/views/templates/index.jade +++ b/services/web/app/views/templates/index.jade @@ -7,7 +7,7 @@ block content .col-md-2 h2 - a(href="/templates") Templates + a(href="/templates") #{translate("templates")} .col-md-8 form.project-search.form-horizontal(role="form") .form-group.has-feedback.has-feedback-left.col-md-12 diff --git a/services/web/app/views/templates/tag.jade b/services/web/app/views/templates/tag.jade index 2ac601a596..4ee7e70b76 100644 --- a/services/web/app/views/templates/tag.jade +++ b/services/web/app/views/templates/tag.jade @@ -6,7 +6,7 @@ block content .row .page-header h2 - a(href="/templates") Templates + a(href="/templates") #{translate("templates")} | › a(href=tag.tagPagePath) #{tag.name} .row diff --git a/services/web/app/views/templates/template.jade b/services/web/app/views/templates/template.jade index 50c2db74fb..d403bfa576 100644 --- a/services/web/app/views/templates/template.jade +++ b/services/web/app/views/templates/template.jade @@ -6,7 +6,7 @@ block content .row .page-header h2 - a(href="/templates") Templates + a(href="/templates") #{translate("templates")} | › - if(tag) a(href=tag.tagPagePath) #{tag.name} @@ -22,7 +22,7 @@ block content .col-md-6 .template-details-section - h3 About + h3 #{translate("about")} div !{template.description} div(ng-controller="openInSlController").download-buttons a.btn.btn-primary.btn-large(href=template.open_in_sharelatex_url, ng-click='open()', ng-disabled="isDisabled", rel='nofollow') {{openInSlText}} @@ -47,7 +47,7 @@ block content a.addthis_button_compact script(type='text/javascript', src='//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-517c16586439faa7') - h3 Comment + h3 #{translate("comment")} #disqus_thread script(type='text/javascript'). /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ diff --git a/services/web/app/views/user/restricted.jade b/services/web/app/views/user/restricted.jade index 4c4ebcd52a..99d9099e23 100644 --- a/services/web/app/views/user/restricted.jade +++ b/services/web/app/views/user/restricted.jade @@ -6,8 +6,8 @@ block content .row .col-md-8.col-md-offset-2.text-center .page-header - h2 Restricted, sorry you don't have permission to load this page. + h2 #{translate("restricted_no_permission")} p a(href="/") i.fa.fa-arrow-circle-o-left - | Take me home! \ No newline at end of file + | #{translate("take_me_home")} \ No newline at end of file