feedback for language used

This commit is contained in:
ansuz 2017-07-10 10:59:32 +02:00
parent 086e5909dd
commit 52eb8e307c
2 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ define(req, function($, Default, Language) {
}
messages._languages = map;
messages._languageUsed = language;
messages._checkTranslationState = function (cb) {
if (typeof(cb) !== "function") { return; }

View File

@ -188,6 +188,9 @@ define([
var w = window.innerWidth;
feedback('DIMENSIONS:' + h + 'x' + w);
};
common.reportLanguage = function () {
feedback('LANG_' + Messages._languageUsed);
};
common.getUid = function () {
if (store && store.getProxy() && store.getProxy().proxy) {
@ -1722,6 +1725,7 @@ define([
}
common.reportScreenDimensions();
common.reportLanguage();
$(function() {
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify