mirror of https://github.com/xwiki-labs/cryptpad
feedback for language used
This commit is contained in:
parent
086e5909dd
commit
52eb8e307c
|
@ -46,6 +46,7 @@ define(req, function($, Default, Language) {
|
||||||
}
|
}
|
||||||
|
|
||||||
messages._languages = map;
|
messages._languages = map;
|
||||||
|
messages._languageUsed = language;
|
||||||
|
|
||||||
messages._checkTranslationState = function (cb) {
|
messages._checkTranslationState = function (cb) {
|
||||||
if (typeof(cb) !== "function") { return; }
|
if (typeof(cb) !== "function") { return; }
|
||||||
|
|
|
@ -188,6 +188,9 @@ define([
|
||||||
var w = window.innerWidth;
|
var w = window.innerWidth;
|
||||||
feedback('DIMENSIONS:' + h + 'x' + w);
|
feedback('DIMENSIONS:' + h + 'x' + w);
|
||||||
};
|
};
|
||||||
|
common.reportLanguage = function () {
|
||||||
|
feedback('LANG_' + Messages._languageUsed);
|
||||||
|
};
|
||||||
|
|
||||||
common.getUid = function () {
|
common.getUid = function () {
|
||||||
if (store && store.getProxy() && store.getProxy().proxy) {
|
if (store && store.getProxy() && store.getProxy().proxy) {
|
||||||
|
@ -1722,6 +1725,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
common.reportScreenDimensions();
|
common.reportScreenDimensions();
|
||||||
|
common.reportLanguage();
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
|
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
|
||||||
|
|
Loading…
Reference in New Issue