Updates to translation serialization
Fix issues with incorrect spacing on missing translations
diff --git a/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SheetHeaderUtil.java b/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SheetHeaderUtil.java
index 9e12f45..ae0308d 100644
--- a/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SheetHeaderUtil.java
+++ b/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SheetHeaderUtil.java
@@ -352,7 +352,7 @@
row1.createCell(offset++).setCellValue(replaceSpace(prefix + " Translation 2 Location"));
row1.getSheet().setColumnHidden(offset - 1, hideColumns);
- row1.createCell(offset++).setCellValue(replaceSpace(prefix + " Translation 2 Text"));
+ row1.createCell(offset++).setCellValue(replaceSpace(prefix + " Translation 3 Text"));
row1.createCell(offset++).setCellValue(replaceSpace(prefix + " Translation 3 Display Name"));
row1.createCell(offset++).setCellValue(replaceSpace(prefix + " Translation 3 Code"));
row1.getSheet().setColumnHidden(offset - 1, hideColumns);
diff --git a/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SpreadsheetSerializer.java b/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SpreadsheetSerializer.java
index fd3caa4..2b16516 100644
--- a/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SpreadsheetSerializer.java
+++ b/cda/plugins/org.eclipse.mdht.cda.xml.ui/src/org/eclipse/mdht/cda/xml/ui/handlers/SpreadsheetSerializer.java
@@ -2540,6 +2540,7 @@
row.createCell(offset++).setCellValue("");
row.createCell(offset++).setCellValue("");
row.createCell(offset++).setCellValue("");
+ row.createCell(offset++).setCellValue("");
}
if (cd.getTranslations().size() >= 2) {
offset = SpreadsheetSerializer.appendCode(row, offset, section, cd.getTranslations().get(1), null);
@@ -2549,6 +2550,7 @@
row.createCell(offset++).setCellValue("");
row.createCell(offset++).setCellValue("");
row.createCell(offset++).setCellValue("");
+ row.createCell(offset++).setCellValue("");
}
if (cd.getTranslations().size() >= 3) {
offset = SpreadsheetSerializer.appendCode(row, offset, section, cd.getTranslations().get(2), null);
@@ -2558,6 +2560,7 @@
row.createCell(offset++).setCellValue("");
row.createCell(offset++).setCellValue("");
row.createCell(offset++).setCellValue("");
+ row.createCell(offset++).setCellValue("");
}
return offset;
}