Blame SOURCES/0020-fdo-72078-make-status-bar-text-localizable.patch

f0633d
From 3b6ac4f3416b2542208745033aaecb3c7a520656 Mon Sep 17 00:00:00 2001
f0633d
From: Andras Timar <andras.timar@collabora.com>
f0633d
Date: Mon, 2 Dec 2013 12:11:10 +0100
f0633d
Subject: [PATCH 020/109] fdo#72078 make status bar text localizable
f0633d
MIME-Version: 1.0
f0633d
Content-Type: text/plain; charset=UTF-8
f0633d
Content-Transfer-Encoding: 8bit
f0633d
f0633d
2nd try to get it right on libreoffice-4-1
f0633d
f0633d
Change-Id: I66ebc292231069cca708eb56ad876f56829e78f5
f0633d
Reviewed-on: https://gerrit.libreoffice.org/6894
f0633d
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
f0633d
Tested-by: Caolán McNamara <caolanm@redhat.com>
f0633d
---
f0633d
 sc/source/filter/oox/workbookhelper.cxx | 7 +++----
f0633d
 1 file changed, 3 insertions(+), 4 deletions(-)
f0633d
f0633d
diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx
f0633d
index 09c6947..691887a 100644
f0633d
--- a/sc/source/filter/oox/workbookhelper.cxx
f0633d
+++ b/sc/source/filter/oox/workbookhelper.cxx
f0633d
@@ -71,6 +71,7 @@
f0633d
 #include "dbdata.hxx"
f0633d
 #include "datauno.hxx"
f0633d
 #include "globalnames.hxx"
f0633d
+#include "globstr.hrc"
f0633d
 
f0633d
 #include "formulabuffer.hxx"
f0633d
 #include "vcl/mapmod.hxx"
f0633d
@@ -572,8 +573,7 @@ void WorkbookGlobals::initialize( bool bWorkbookFile )
f0633d
         if( xLockable.is() )
f0633d
             xLockable->addActionLock();
f0633d
 
f0633d
-        //! TODO: localize progress bar text
f0633d
-        mxProgressBar.reset( new SegmentProgressBar( mrBaseFilter.getStatusIndicator(), "Loading..." ) );
f0633d
+        mxProgressBar.reset( new SegmentProgressBar( mrBaseFilter.getStatusIndicator(), ScGlobal::GetRscString(STR_LOAD_DOC) ) );
f0633d
         mxFmlaParser.reset( new FormulaParser( *this ) );
f0633d
 
f0633d
         //prevent unnecessary broadcasts and "half way listeners" as
f0633d
@@ -582,8 +582,7 @@ void WorkbookGlobals::initialize( bool bWorkbookFile )
f0633d
     }
f0633d
     else if( mrBaseFilter.isExportFilter() )
f0633d
     {
f0633d
-        //! TODO: localize progress bar text
f0633d
-        mxProgressBar.reset( new SegmentProgressBar( mrBaseFilter.getStatusIndicator(), "Saving..." ) );
f0633d
+        mxProgressBar.reset( new SegmentProgressBar( mrBaseFilter.getStatusIndicator(), ScGlobal::GetRscString(STR_SAVE_DOC) ) );
f0633d
     }
f0633d
     // filter specific
f0633d
     switch( getFilterType() )
f0633d
-- 
f0633d
1.8.4.2
f0633d