2017-02-02 10:27:08 +00:00
|
|
|
define([
|
|
|
|
'/bower_components/jquery/dist/jquery.min.js',
|
|
|
|
'/common/cryptpad-common.js',
|
|
|
|
], function (jQuery, Cryptpad) {
|
|
|
|
var $ = window.jQuery;
|
|
|
|
|
|
|
|
var $body = $('body');
|
|
|
|
|
|
|
|
var pre = function (text, opt) {
|
|
|
|
return $('<pre>', opt).text(text);
|
|
|
|
};
|
|
|
|
|
2017-02-20 17:29:06 +00:00
|
|
|
var todo = function (missing) {
|
|
|
|
if (missing.length) {
|
|
|
|
$body.append(pre(missing.map(function (msg) {
|
|
|
|
return '* ' + msg;
|
|
|
|
}).join('\n')));
|
|
|
|
} else {
|
|
|
|
$body.text('All keys are present in all translations');
|
|
|
|
}
|
|
|
|
};
|
|
|
|
Cryptpad.Messages._checkTranslationState(todo);
|
2017-02-02 10:27:08 +00:00
|
|
|
});
|