[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sd/source

Michael Meeks michael at kemper.freedesktop.org
Fri Jul 29 07:25:01 PDT 2011


 sd/source/ui/dlg/TemplateScanner.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 27757301e465102c72bd0be3d11836b6647aef04
Author: Peter Rabi <prabi at caesar.elte.hu>
Date:   Thu Jul 28 12:17:36 2011 +0200

    Clean-up of bugfix fdo#32895 for the -3-4 branch
    
    Contributed under license LGPLv3+/MPL.
    
    Signed-off-by: Michael Meeks <michael.meeks at novell.com>

diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx
index 360d9e6..a773d4d 100644
--- a/sd/source/ui/dlg/TemplateScanner.cxx
+++ b/sd/source/ui/dlg/TemplateScanner.cxx
@@ -37,6 +37,8 @@
 #include <tools/debug.hxx>
 #include <osl/mutex.hxx>
 #include <vcl/svapp.hxx>
+#include <sfx2/doctempl.hxx>
+#include <sfx2/templatelocnames.hrc>
 #include <com/sun/star/frame/XDocumentTemplates.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
@@ -263,7 +265,9 @@ TemplateScanner::State TemplateScanner::ScanEntry (void)
                     ||  (sContentType == IMPRESS_XML_TEMPLATE)
                     ||  (sContentType == IMPRESS_XML_TEMPLATE_B))
                 {
-                    mpLastAddedEntry = new TemplateEntry(sTitle, sTargetURL);
+                    ::rtl::OUString sLocalisedTitle = SfxDocumentTemplates::ConvertResourceString(
+                        STR_TEMPLATE_NAME1_DEF, STR_TEMPLATE_NAME1, NUM_TEMPLATE_NAMES, sTitle );
+                    mpLastAddedEntry = new TemplateEntry(sLocalisedTitle, sTargetURL);
                     mpTemplateDirectory->maEntries.push_back(mpLastAddedEntry);
                 }
             }


More information about the Libreoffice-commits mailing list