Merge pull request #1471 from ONLYOFFICE/fix/bug-54851

[SSE] Bug 54851
This commit is contained in:
Julia Radzhabova 2022-01-13 19:59:26 +03:00 committed by GitHub
commit f53869dd77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View file

@ -276,6 +276,7 @@
<script type="text/javascript" src="../../common/locale.js"></script>
<script type="text/javascript" src="../../common/Gateway.js"></script>
<script type="text/javascript" src="../../common/Analytics.js"></script>
<script type="text/javascript" src="../../common/main/lib/util/LanguageInfo.js"></script>
<script type="text/javascript" src="../../common/embed/lib/util/LocalStorage.js"></script>
<script type="text/javascript" src="../../common/embed/lib/util/utils.js"></script>
<script type="text/javascript" src="../../common/embed/lib/view/LoadMask.js"></script>

View file

@ -343,6 +343,7 @@
<script type="text/javascript" src="../../common/locale.js"></script>
<script type="text/javascript" src="../../common/Gateway.js"></script>
<script type="text/javascript" src="../../common/Analytics.js"></script>
<script type="text/javascript" src="../../common/main/lib/util/LanguageInfo.js"></script>
<script type="text/javascript" src="../../common/embed/lib/util/LocalStorage.js"></script>
<script type="text/javascript" src="../../common/embed/lib/util/utils.js"></script>
<script type="text/javascript" src="../../common/embed/lib/view/LoadMask.js"></script>

View file

@ -88,6 +88,13 @@ SSE.ApplicationController = new(function(){
config.canBackToFolder = (config.canBackToFolder!==false) && config.customization && config.customization.goback &&
(config.customization.goback.url || config.customization.goback.requestClose && config.canRequestClose);
var reg = (typeof (config.region) == 'string') ? config.region.toLowerCase() : config.region;
reg = Common.util.LanguageInfo.getLanguages().hasOwnProperty(reg) ? reg : Common.util.LanguageInfo.getLocalLanguageCode(reg);
if (reg!==null)
reg = parseInt(reg);
else
reg = (config.lang) ? parseInt(Common.util.LanguageInfo.getLocalLanguageCode(config.lang)) : 0x0409;
api.asc_setLocale(reg);
}
function loadDocument(data) {

View file

@ -346,6 +346,7 @@
"../apps/common/locale.js",
"../apps/common/Gateway.js",
"../apps/common/Analytics.js",
"../apps/common/main/lib/util/LanguageInfo.js",
"../apps/common/embed/lib/util/LocalStorage.js",
"../apps/common/embed/lib/util/utils.js",
"../apps/common/embed/lib/view/LoadMask.js",