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