Commit 418b3393 authored by SergeyLuzyanin's avatar SergeyLuzyanin

ph translate

parent 93f1e40c
......@@ -43,7 +43,7 @@ var pHText = [];
pHText[0] = [];//rus "" ;
pHText[0][AscFormat.phType_body] = "Slide text"; //"Текст слайда" ; ;
pHText[0][AscFormat.phType_chart] = "Chart"; // "Диаграмма" ; ;
pHText[0][AscFormat.phType_clipArt] = "ClipArt";// "Текст слайда" ; //(Clip Art) ;
pHText[0][AscFormat.phType_clipArt] = "Clip Art";// "Текст слайда" ; //(Clip Art) ;
pHText[0][AscFormat.phType_ctrTitle] = "Slide title";// "Заголовок слайда" ; //(Centered Title) ;
pHText[0][AscFormat.phType_dgm] = "Diagram";// "Диаграмма";// (Diagram) ;
pHText[0][AscFormat.phType_dt] = "Date and time";// "Дата и время";// (Date and Time) ;
......@@ -579,8 +579,9 @@ CShape.prototype.recalculateContent2 = function()
return;
}
var text = typeof pHText[0][this.nvSpPr.nvPr.ph.type] === "string" && pHText[0][this.nvSpPr.nvPr.ph.type].length > 0 ? pHText[0][this.nvSpPr.nvPr.ph.type] : pHText[0][AscFormat.phType_body];
if (!this.txBody.content2)
this.txBody.content2 = AscFormat.CreateDocContentFromString(text, this.getDrawingDocument(), this.txBody);
if (!this.txBody.content2){
this.txBody.content2 = AscFormat.CreateDocContentFromString(AscCommon.translateManager.getValue(text), this.getDrawingDocument(), this.txBody);
}
else
{
this.txBody.content2.Recalc_AllParagraphs_CompiledPr();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment