From db111257f0e155df107b7f31bb965c4f24903ab3 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Wed, 2 Aug 2017 11:46:55 +0200 Subject: [PATCH] Add translations, remove useless functions --- customize.dist/pages.js | 101 ++------------------- customize.dist/translations/messages.es.js | 3 + customize.dist/translations/messages.fr.js | 2 + customize.dist/translations/messages.js | 2 + 4 files changed, 13 insertions(+), 95 deletions(-) diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 7c006b68e..5b53ee6a9 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -223,47 +223,6 @@ define([ ]); }; - - var userForm = function () { - return h('div#userForm.form-group.hidden', [ - h('input#name.form-control', { - name: 'name', - type: 'text', - placeholder: Msg.login_username - }), - h('input#password.form-control', { - name: 'password', - type: 'password', - placeholder: Msg.login_password - }), - h('div', { - style: { display: 'none' } - }, [ - h('span.remember.form-check', [ - h('label.form-check-label', { - 'for': 'rememberme', - placeholder: Msg.login_remember, - }, [ - h('input#rememberme.form-check-input', { - type: 'checkbox', - checked: true - }) - ]) - ]) - ]), - h('button.btn.btn-secondary.login.half.first', Msg.login_login), - h('button.btn.btn-success.register.half', Msg.login_register), - h('p.separator', Msg.login_orNoLogin), - h('p#buttons.buttons'), - h('p.driveLink', [ - h('a.gotodrive', { - href: '/drive/' - }, Msg.login_nologin) - ]) - ]); - }; - - var appButton = function (alt, h2, img, p, url, btn, id) { return h('div.app', [ h('center', [ @@ -284,50 +243,6 @@ define([ ]); }; - var tryIt = function () { - return [ - h('div.class.category#tryit', [ - h('center', [ - h('h1', Msg.tryIt) - ]) - ]), - h('div.page', [ - h('div.app-container', [ - h('div.app-row', [ - appButton("Rich Text application", - Msg.main_richText, - '/customize/images/pad.png?' + urlArgs, - Msg.main_richText_p, - '/pad/', - Msg.button_newpad, - 'create-pad'), - appButton('Code application', - Msg.main_code, - '/customize/images/code.png?' + urlArgs, - Msg.main_code_p, - '/code/', - Msg.button_newcode, - 'create-code'), - appButton('Slide application', - Msg.main_slide, - '/customize/images/slide.png?' + urlArgs, - Msg.main_slide_p, - '/slide/', - Msg.button_newslide, - 'create-slide'), - appButton('Poll application', - Msg.main_poll, - '/customize/images/poll.png?' + urlArgs, - Msg.main_poll_p, - '/poll/', - Msg.button_newpoll, - 'create-poll') - ]) - ]) - ]) - ]; - }; - var infopageTopbar = function () { return h('div.cp-topbar', h('div.navbar.navbar-toggleable-sm.navbar-light.navbar-inverse', @@ -337,23 +252,23 @@ define([ h('div.collapse.navbar-collapse#menuCollapse', [ h('ul.navbar-nav', [ h('li.nav-item', [ - h('a.nav-link', { href: '/what-is-cryptpad.html'}, 'What is CryptPad'), + h('a.nav-link', { href: '/what-is-cryptpad.html'}, Msg.topbar_whatIsCryptpad), ]), h('li.nav-item', [ - h('a.nav-link', { href: 'https://blog.cryptpad.fr/'}, 'Blog'), + h('a.nav-link', { href: 'https://blog.cryptpad.fr/'}, Msg.Blog), ]), h('li.nav-item', [ - h('a.nav-link', { href: '/contact.html'}, 'Contact'), + h('a.nav-link', { href: '/contact.html'}, Msg.contact), ]), h('li.nav-item', [ - h('a.nav-link', { href: '/about.html'}, 'About'), + h('a.nav-link', { href: '/about.html'}, Msg.about), ]), ]), ]), ), h('div.cp-right', - h('a.cp-register-btn', { href: '/register'}, 'Register'), - h('a.cp-login-btn', { href: '/login'}, 'Log in') + h('a.cp-register-btn', { href: '/register'}, Msg.login_register), + h('a.cp-login-btn', { href: '/login'}, Msg.login_login) ) ); } @@ -370,7 +285,6 @@ define([ h('h1', 'CryptPad'), h('p', Msg.main_catch_phrase) ]), - /*userForm(),*/ h('div.col-12.col-sm-6', [ [ [ 'pad', '/pad/', Msg.main_richTextPad, 'fa-file-word-o' ], @@ -413,10 +327,8 @@ define([ ]) ]) ]), - //h('footer.cp-more', "More") ]) ]; - //.concat(tryIt()); }; var loadingScreen = function () { @@ -513,7 +425,6 @@ define([ }), h('div.extra', [ h('button.btn.btn-primary.login.first', Msg.login_login), - h('span', Msg.login_notRegistered), h('button#register.btn.btn-success.register', Msg.login_register) ]) ]) diff --git a/customize.dist/translations/messages.es.js b/customize.dist/translations/messages.es.js index 987cb5261..d68643e0c 100644 --- a/customize.dist/translations/messages.es.js +++ b/customize.dist/translations/messages.es.js @@ -542,5 +542,8 @@ define(function () { out.settings_logoutEverywhereButton = "Cerar sesión"; out.upload_title = "Subir archivo"; + // 1.13.0 - Naiad + out.topbar_whatIsCryptpad = "Qué es CryptPad"; + return out; }); diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 1effcfca7..8ab586df7 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -508,6 +508,8 @@ define(function () { out.terms = "Conditions"; out.blog = "Blog"; + out.topbar_whatIsCryptpad = "Qu'est-ce que CryptPad"; + // privacy.html out.policy_title = 'Politique de confidentialité de CryptPad'; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index a4dcaf555..5c66303be 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -526,6 +526,8 @@ define(function () { out.terms = "ToS"; out.blog = "Blog"; + out.topbar_whatIsCryptpad = "What is CryptPad"; + // privacy.html out.policy_title = 'CryptPad Privacy Policy';