translate alertify button messages

pull/1/head
ansuz 9 years ago
parent 868c84095a
commit ff74a67a09

@ -38,6 +38,9 @@ define(function () {
out.tryIt = 'Try it out!'; out.tryIt = 'Try it out!';
out.recentPads = 'Your recent pads (stored only in your browser)'; out.recentPads = 'Your recent pads (stored only in your browser)';
out.okButton = 'OK (enter)';
out.cancelButton = 'Cancel (esc)';
out.initialState = [ out.initialState = [
'<p>', '<p>',
'This is <strong>CryptPad</strong>, the zero knowledge realtime collaborative editor.', 'This is <strong>CryptPad</strong>, the zero knowledge realtime collaborative editor.',

@ -1,8 +1,9 @@
define([ define([
'/customize/messages.js',
'/bower_components/chainpad-crypto/crypto.js', '/bower_components/chainpad-crypto/crypto.js',
'/bower_components/alertifyjs/dist/js/alertify.js', '/bower_components/alertifyjs/dist/js/alertify.js',
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
], function (Crypto, Alertify) { ], function (Messages, Crypto, Alertify) {
/* This file exposes functionality which is specific to Cryptpad, but not to /* This file exposes functionality which is specific to Cryptpad, but not to
any particular pad type. This includes functions for committing metadata any particular pad type. This includes functions for committing metadata
about pads to your local storage for future use and improved usability. about pads to your local storage for future use and improved usability.
@ -253,8 +254,8 @@ define([
Alertify Alertify
.defaultValue(def || '') .defaultValue(def || '')
.okBtn(opt.ok || 'OK') .okBtn(opt.ok || Messages.okButton || 'OK')
.cancelBtn(opt.cancel || 'Cancel') .cancelBtn(opt.cancel || Messages.cancelButton || 'Cancel')
.prompt(msg, function (val, ev) { .prompt(msg, function (val, ev) {
cb(val, ev); cb(val, ev);
stopListening(keyHandler); stopListening(keyHandler);
@ -274,8 +275,8 @@ define([
}); });
Alertify Alertify
.okBtn(opt.ok || 'OK') .okBtn(opt.ok || Messages.okButton || 'OK')
.cancelBtn(opt.cancel || 'Cancel') .cancelBtn(opt.cancel || Messages.cancelButton || 'Cancel')
.confirm(msg, function () { .confirm(msg, function () {
cb(true); cb(true);
stopListening(keyHandler); stopListening(keyHandler);

Loading…
Cancel
Save