Skip to content

Commit

Permalink
[PDF] Refactoring. Add translation
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Mar 29, 2024
1 parent f76e106 commit 13b0ded
Show file tree
Hide file tree
Showing 10 changed files with 1,163 additions and 210 deletions.
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/controller/InsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ define([
}
}
if (in_text && type=='slidenum') {
this.api.asc_addSlideNumber();
this.api.asc_addPageNumber();
} else if (in_text && type=='datetime') {
//insert date time
var me = this;
Expand Down
1 change: 0 additions & 1 deletion apps/pdfeditor/main/app/controller/RightMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ define([
},

UpdateThemeColors: function() {
// this.rightmenu.slideSettings.UpdateThemeColors();
// this.rightmenu.tableSettings.UpdateThemeColors();
// this.rightmenu.shapeSettings.UpdateThemeColors();
// this.rightmenu.textartSettings.UpdateThemeColors();
Expand Down
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/template/ImageSettings.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</tr>
<tr>
<td class="padding-small" colspan=2>
<button type="button" class="btn btn-text-default" id="image-button-fit-slide" style="min-width:100px;width: auto;" data-hint="1" data-hint-direction="bottom" data-hint-offset="big"><%= scope.textFitSlide %></button>
<button type="button" class="btn btn-text-default" id="image-button-fit-slide" style="min-width:100px;width: auto;" data-hint="1" data-hint-direction="bottom" data-hint-offset="big"><%= scope.textFitPage %></button>
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/view/ChartSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ define([
(new PE.Views.ChartSettingsAdvanced(
{
chartProps: elValue,
slideSize: PE.getController('Toolbar').currentPageSize,
slideSize: {width: me.api.get_PageWidth(), height: me.api.get_PageHeight()},
handler: function(result, value) {
if (result == 'ok') {
if (me.api) {
Expand Down
4 changes: 1 addition & 3 deletions apps/pdfeditor/main/app/view/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2159,9 +2159,7 @@ define([
textCropFill: 'Fill',
textCropFit: 'Fit',
textFromStorage: 'From Storage',
textEditPoints: 'Edit Points',
txtInsImage: 'Insert image from File',
txtInsImageUrl: 'Insert image from URL'
textEditPoints: 'Edit Points'

}, PDFE.Views.DocumentHolder || {}));
});
4 changes: 2 additions & 2 deletions apps/pdfeditor/main/app/view/ImageSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ define([
},

setFitSlide: function() {
this.api && this.api.asc_FitImagesToSlide();
this.api && this.api.asc_FitImagesToPage();
this.fireEvent('editcomplete', this);
},

Expand Down Expand Up @@ -551,7 +551,7 @@ define([
textCrop: 'Crop',
textCropFill: 'Fill',
textCropFit: 'Fit',
textFitSlide: 'Fit to Slide',
textFitPage: 'Fit to page',
textCropToShape: 'Crop to shape',
textFromStorage: 'From Storage',
textRecentlyUsed: 'Recently Used'
Expand Down
6 changes: 3 additions & 3 deletions apps/pdfeditor/main/app/view/InsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ define([
this.btnInsertTextArt.updateHint(this.tipInsertTextArt);
// this.btnEditHeader.updateHint(this.tipEditHeaderFooter);
// this.btnInsDateTime.updateHint(this.tipDateTime);
// this.btnInsSlideNum.updateHint(this.tipSlideNum);
// this.btnInsSlideNum.updateHint(this.tipPageNum);
this.btnAddPage.updateHint(this.tipAddPage);
/*
this.btnInsertChart.setMenu( new Common.UI.Menu({
Expand Down Expand Up @@ -761,9 +761,9 @@ define([
capAddPage: 'Add Page',
tipAddPage: 'Add page',
tipInsertChart: 'Insert Chart',
tipSlideNum: 'Insert slide number',
tipPageNum: 'Insert page number',
tipDateTime: 'Insert current date and time',
capBtnSlideNum: 'Slide Number',
capBtnPageNum: 'Page Number',
capBtnDateTime: 'Date & Time',
capBtnInsSymbol: 'Symbol',
capBtnInsSmartArt: 'SmartArt',
Expand Down
1 change: 0 additions & 1 deletion apps/pdfeditor/main/app/view/RightMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ define([
txtTableSettings: 'Table Settings',
txtShapeSettings: 'Shape Settings',
txtTextArtSettings: 'Text Art Settings',
txtSlideSettings: 'Slide Settings',
txtChartSettings: 'Chart Settings',
txtSignatureSettings: 'Signature Settings'
}, PDFE.Views.RightMenu || {}));
Expand Down
28 changes: 2 additions & 26 deletions apps/pdfeditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ define([
arr.push(this.btnColumns);

this.mniAlignToSlide = new Common.UI.MenuItem({
caption: this.txtSlideAlign,
caption: this.txtPageAlign,
checkable: true,
toggleGroup: 'slidealign',
value: -1
Expand Down Expand Up @@ -1356,30 +1356,6 @@ define([
me.mnuHighlightColorPicker = arr[0];
me.mnuHighlightTransparent = arr[1];
}

// me.btnInsertText && me.btnInsertText.setMenu(new Common.UI.Menu({
// items: [
// {
// caption: me.tipInsertHorizontalText,
// checkable: true,
// checkmark: false,
// iconCls : 'menu__icon btn-text',
// toggleGroup: 'textbox',
// value: 'textRect',
// iconClsForMainBtn: 'btn-big-text'
// },
// {
// caption: me.tipInsertVerticalText,
// checkable: true,
// checkmark: false,
// iconCls : 'menu__icon btn-text-vertical',
// toggleGroup: 'textbox',
// value: 'textRectVertical',
// iconClsForMainBtn: 'btn-big-text-vertical'
// },
// ]
// }));

});
},

Expand Down Expand Up @@ -1804,7 +1780,7 @@ define([
textTabInsert: 'Insert',
capBtnEditText: 'Edit Text',
tipEditText: 'Edit text',
txtSlideAlign: 'Align to Page',
txtPageAlign: 'Align to Page',
txtObjectsAlign: 'Align Selected Objects',
tipShapeAlign: 'Align Shape',
tipShapeArrange: 'Arrange Shape',
Expand Down
Loading

0 comments on commit 13b0ded

Please sign in to comment.