From c376b2428718a48ce4283fe002c0d493bfe1232e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Aug 2021 10:20:28 +0200 Subject: fix --enable-online-update after commit 14cfff500e93f0d6cbf8412065feea85c01ea81d Pass context and resource string down to boost::locale separately Change-Id: I10336d0081c03090d63f48636ee8283b327304aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120058 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/update/check/updatehdl.cxx | 4 ++-- extensions/source/update/check/updatehdl.hxx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx index 2f54e60dfd32..9374aec98a0b 100644 --- a/extensions/source/update/check/updatehdl.cxx +++ b/extensions/source/update/check/updatehdl.cxx @@ -585,7 +585,7 @@ void UpdateHandler::updateState( UpdateState eState ) } OUString UpdateHandler::loadString(const std::locale& rLocale, - const char* pResourceId) + TranslateId pResourceId) { return Translate::get(pResourceId, rLocale); } @@ -642,7 +642,7 @@ void UpdateHandler::loadStrings() msResumeBtn = loadString( loc, RID_UPDATE_BTN_RESUME ); msCancelBtn = loadString( loc, RID_UPDATE_BTN_CANCEL ); - std::pair RID_UPDATE_BUBBLE[] = + std::pair RID_UPDATE_BUBBLE[] = { { RID_UPDATE_BUBBLE_UPDATE_AVAIL, RID_UPDATE_BUBBLE_T_UPDATE_AVAIL }, { RID_UPDATE_BUBBLE_UPDATE_NO_DOWN, RID_UPDATE_BUBBLE_T_UPDATE_NO_DOWN }, diff --git a/extensions/source/update/check/updatehdl.hxx b/extensions/source/update/check/updatehdl.hxx index 12ed917a76b4..6597176468bd 100644 --- a/extensions/source/update/check/updatehdl.hxx +++ b/extensions/source/update/check/updatehdl.hxx @@ -36,6 +36,7 @@ #include #include #include +#include #include #include "actionlistener.hxx" @@ -142,7 +143,7 @@ private: void setDownloadBtnLabel( bool bAppendDots ); void loadStrings(); static OUString loadString(const std::locale& rLocale, - const char* pResourceId); + TranslateId pResourceId); OUString substVariables( const OUString &rSource ) const; static void insertControlModel( css::uno::Reference< css::awt::XControlModel > const & rxDialogModel, OUString const & rServiceName, -- cgit