summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCsikós Tamás <csks.tomi@gmail.com>2013-07-01 12:28:21 +0200
committerPetr Mladek <pmladek@suse.cz>2013-07-02 11:45:45 +0000
commit4e3a02004f3fbab1996910d921294143a25334d4 (patch)
tree0e74cb77b31068b8d3f6fe5f6570d6f056362743 /wizards
parent73a5a251aec72b973bade8e668bd66ae4d9a49eb (diff)
fdo#64155 - fix unlocalized 'default' list entry
Change-Id: I3a8b706fe855e7fbff71f227b167a51d3a465be0 Reviewed-on: https://gerrit.libreoffice.org/4673 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
index 55615afb4189..f80da12728b3 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
@@ -55,6 +55,7 @@ import com.sun.star.wizards.report.IReportDocument;
import com.sun.star.wizards.report.ReportImplementationHelper;
import com.sun.star.wizards.report.ReportLayouter;
import com.sun.star.wizards.report.ReportWizard;
+import com.sun.star.wizards.ui.UIConsts;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -684,9 +685,22 @@ public class ReportBuilderImplementation extends ReportImplementationHelper
break;
}
}
+ exchangeLayoutTitlesWithLocalisedOnes(LayoutFiles);
return LayoutFiles;
}
+ private void exchangeLayoutTitlesWithLocalisedOnes(String[][] LayoutFiles)
+ {
+ for(int i = 0; i < LayoutFiles[0].length; ++i)
+ {
+ if( LayoutFiles[0][i] == null) { break;}
+ if( LayoutFiles[0][i].equals("default") )
+ {
+ LayoutFiles[0][i] = m_resource.getResText(UIConsts.RID_REPORT + 100);
+ }
+ }
+ }
+
public XReportDefinition getReportDefinition()
{
if (m_reportDocument == null)