Skip to content

Commit

Permalink
Merge pull request 'fix mobile app translations loading' (#100) from …
Browse files Browse the repository at this point in the history
…fix/mobile-translations into hotfix/v8.2.1

Bug 66234
  • Loading branch information
Julia Radzhabova committed Oct 25, 2024
2 parents ff26b4c + ca3fdbf commit af1adbf
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 33 deletions.
3 changes: 2 additions & 1 deletion apps/documenteditor/mobile/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@
"uploadDocSizeMessage": "Maximum document size limit exceeded.",
"uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB."
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"textOk": "OK"
},
"LongActions": {
"applyChangesTextText": "Loading data...",
Expand Down
4 changes: 2 additions & 2 deletions apps/documenteditor/mobile/src/controller/ContextMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ContextMenu extends ContextMenuController {
<span class="right-text">${_t.textDoNotShowAgain}</span>
</div>`,
buttons: [{
text: 'OK',
text: _t.textOk,
onClick: () => {
const dontShow = $$('input[name="checkbox-show"]').prop('checked');
if (dontShow) LocalStorage.setItem("de-hide-copy-cut-paste-warning", 1);
Expand Down Expand Up @@ -199,7 +199,7 @@ class ContextMenu extends ContextMenuController {
text: _t.menuCancel
},
{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
const size = picker.value;
Expand Down
2 changes: 1 addition & 1 deletion apps/documenteditor/mobile/src/controller/Error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const ErrorController = inject('storeAppOptions','storeDocumentInfo')(({storeApp
text : config.msg,
buttons: [
{
text: 'OK',
text: _t.textOk,
onClick: config.callback
}
]
Expand Down
6 changes: 3 additions & 3 deletions apps/documenteditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ class MainController extends Component {
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text : _t.errorOpensource,
buttons: [{text: 'OK'}]
buttons: [{ text: _t.textOk }]
}).open();
}
Common.Notifications.trigger('toolbar:activatecontrols');
Expand All @@ -694,11 +694,11 @@ class MainController extends Component {
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text : _t.warnLicenseAnonymous,
buttons: [{text: 'OK'}]
buttons: [{ text: _t.textOk }]
}).open();
} else if (this._state.licenseType) {
let license = this._state.licenseType;
let buttons = [{text: 'OK'}];
let buttons = [{ text: _t.textOk }];
if ((appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
(license === Asc.c_oLicenseResult.SuccessLimit ||
appOptions.permissionsLicense === Asc.c_oLicenseResult.SuccessLimit)
Expand Down
2 changes: 1 addition & 1 deletion apps/documenteditor/mobile/src/controller/add/AddTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AddTableController extends Component {
text: _t.textCancel
},
{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
const size = picker.value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const onAdvancedOptions = (type, _t, isDocReady, canRequestClose, isDRM) => {
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], -256, true);

const buttons = [{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
const password = document.getElementById('modal-password').value;
Expand All @@ -121,7 +121,7 @@ const onAdvancedOptions = (type, _t, isDocReady, canRequestClose, isDRM) => {
f7.dialog.create({
text: _t.txtIncorrectPwd,
buttons : [{
text: 'OK',
text: _t.textOk,
bold: true,
}]
}).open();
Expand Down
6 changes: 4 additions & 2 deletions apps/presentationeditor/mobile/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
"warnLicenseUsersExceeded": "You've reached the user limit for %1 editors. Contact your administrator to learn more.",
"warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only. Contact %1 sales team for personal upgrade terms.",
"warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
"warnProcessRightsChange": "You don't have permission to edit the file."
"warnProcessRightsChange": "You don't have permission to edit the file.",
"textOk": "Ok"
}
},
"Error": {
Expand Down Expand Up @@ -230,7 +231,8 @@
"unknownErrorText": "Unknown error.",
"uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB."
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"textOk": "OK"
},
"LongActions": {
"applyChangesTextText": "Loading data...",
Expand Down
4 changes: 2 additions & 2 deletions apps/presentationeditor/mobile/src/controller/ContextMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ContextMenu extends ContextMenuController {
<span class="right-text">${_t.textDoNotShowAgain}</span>
</div>`,
buttons: [{
text: 'OK',
text: _t.textOk,
onClick: () => {
const dontShow = $$('input[name="checkbox-show"]').prop('checked');
if (dontShow) LocalStorage.setItem("pe-hide-copy-cut-paste-warning", 1);
Expand Down Expand Up @@ -159,7 +159,7 @@ class ContextMenu extends ContextMenuController {
text: _t.menuCancel
},
{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
const size = picker.value;
Expand Down
2 changes: 1 addition & 1 deletion apps/presentationeditor/mobile/src/controller/Error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const ErrorController = inject('storeAppOptions','storePresentationInfo')(({stor
text : config.msg,
buttons: [
{
text: 'OK',
text: _t.textOk,
onClick: config.callback
}
]
Expand Down
10 changes: 5 additions & 5 deletions apps/presentationeditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ class MainController extends Component {
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text : _t.errorOpensource,
buttons: [{text: 'OK'}]
buttons: [{ text: _t.textOk }]
}).open();
}
Common.Notifications.trigger('toolbar:activatecontrols');
Expand All @@ -673,11 +673,11 @@ class MainController extends Component {
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text : _t.warnLicenseAnonymous,
buttons: [{text: 'OK'}]
buttons: [{ text: _t.textOk }]
}).open();
} else if (this._state.licenseType) {
let license = this._state.licenseType;
let buttons = [{text: 'OK'}];
let buttons = [{ text: _t.textOk }];
if ((appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
(license === Asc.c_oLicenseResult.SuccessLimit ||
appOptions.permissionsLicense === Asc.c_oLicenseResult.SuccessLimit)
Expand Down Expand Up @@ -790,7 +790,7 @@ class MainController extends Component {
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], this.LoadingDocument, true);

const buttons = [{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: () => {
const password = document.getElementById('modal-password').value;
Expand All @@ -806,7 +806,7 @@ class MainController extends Component {
f7.dialog.create({
text: _t.txtIncorrectPwd,
buttons : [{
text: 'OK',
text: _t.textOk,
bold: true,
}]
}).open();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AddOtherController extends Component {
text: _t.textCancel
},
{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
const size = picker.value;
Expand Down
6 changes: 3 additions & 3 deletions apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ContextMenu extends ContextMenuController {
title: t('ContextMenu.notcriticalErrorTitle'),
text: t('ContextMenu.errorInvalidLink'),
buttons:[
{text: 'OK'}
{ text: t('ContextMenu.textOk') }
]
}).open();
}
Expand Down Expand Up @@ -166,7 +166,7 @@ class ContextMenu extends ContextMenuController {
text: t('ContextMenu.menuCancel')
},
{
text: 'OK',
text: t('ContextMenu.textOk'),
onClick: () => {
api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge);
}
Expand All @@ -193,7 +193,7 @@ class ContextMenu extends ContextMenuController {
<span class="right-text">${_t.textDoNotShowAgain}</span>
</div>`,
buttons: [{
text: 'OK',
text: _t.textOk,
onClick: () => {
const dontShow = $$('input[name="checkbox-show"]').prop('checked');
if (dontShow) LocalStorage.setItem("sse-hide-copy-cut-paste-warning", 1);
Expand Down
6 changes: 3 additions & 3 deletions apps/spreadsheeteditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ class MainController extends Component {
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text : _t.errorOpensource,
buttons: [{text: 'OK'}]
buttons: [{ text: _t.textOk }]
}).open();
}
Common.Notifications.trigger('toolbar:activatecontrols');
Expand All @@ -874,11 +874,11 @@ class MainController extends Component {
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text : _t.warnLicenseAnonymous,
buttons: [{text: 'OK'}]
buttons: [{ text: _t.textOk }]
}).open();
} else if (this._state.licenseType) {
let license = this._state.licenseType;
let buttons = [{text: 'OK'}];
let buttons = [{ text: _t.textOk }];
if ((appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
(license === Asc.c_oLicenseResult.SuccessLimit ||
appOptions.permissionsLicense === Asc.c_oLicenseResult.SuccessLimit)
Expand Down
2 changes: 1 addition & 1 deletion apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const Statusbar = inject('storeWorksheets', 'storeAppOptions', 'users')(observer
'<div class="item-content item-input" style="margin-top: 15px; position: relative; padding-bottom: 10px;"><div class="item-inner"><div class="item-input-wrap" style="min-height: initial; width: 100%;"><input type="text" style="width: 100%;" name="modal-sheet-name" value="' + current + '" maxlength="31" placeholder="' + _t.textSheetName + '" /></div></div></div>',
buttons: [
{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
let s = $$('input[name="modal-sheet-name"]').val(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const onAdvancedOptions = (type, _t, isDocReady, canRequestClose, isDRM) => {
Common.Notifications.trigger('preloader:close');
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], -256, true);
const buttons = [{
text: 'OK',
text: _t.textOk,
bold: true,
onClick: function () {
const password = document.getElementById('modal-password').value;
Expand All @@ -80,7 +80,7 @@ const onAdvancedOptions = (type, _t, isDocReady, canRequestClose, isDRM) => {
f7.dialog.create({
text: _t.txtIncorrectPwd,
buttons : [{
text: 'OK',
text: _t.textOk,
bold: true,
}]
}).open();
Expand Down
4 changes: 1 addition & 3 deletions apps/spreadsheeteditor/mobile/src/view/FilterOptions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ const FilterOptions = inject('storeAppOptions')(observer(props => {
title: _t.textErrorTitle,
text: _t.textErrorMsg,
buttons: [
{
text: 'OK',
}
{ text: _t.textOk }
]
}).open();
}
Expand Down

0 comments on commit af1adbf

Please sign in to comment.