summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-15 23:06:48 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-15 23:30:31 +0200
commit18f3a1a71dfe76987ec8adaa41f6313b68fe2ed2 (patch)
tree8a99f17a419ce4a3a3aa401040f7e360e22addf8 /cui
parentsfx2: bring back resmgr (diff)
downloadcore-18f3a1a71dfe76987ec8adaa41f6313b68fe2ed2.tar.gz
core-18f3a1a71dfe76987ec8adaa41f6313b68fe2ed2.zip
InfoBox RID_SVX_MSGBOX_LANGUAGE_RESTART to String
Change-Id: Ideeb3ae8aa6493fc2d2a761d46f95baf0158c6e8
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/cuires.hrc2
-rw-r--r--cui/source/options/optgdlg.cxx4
-rw-r--r--cui/source/options/optgdlg.src6
3 files changed, 5 insertions, 7 deletions
diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc
index 7e2d0e203bb1..587857cc7edd 100644
--- a/cui/source/inc/cuires.hrc
+++ b/cui/source/inc/cuires.hrc
@@ -27,7 +27,7 @@
// RID_SVX_START + 0 unused
#define RID_SVX_MSGBOX_OPTIONS_RESTART (RID_SVX_START + 1)
-#define RID_SVX_MSGBOX_LANGUAGE_RESTART (RID_SVX_START + 2)
+#define RID_SVXSTR_LANGUAGE_RESTART (RID_SVX_START + 2)
#define RID_CUIIMG_HARDDISK (RID_SVX_START + 4)
#define RID_CUIIMG_LIB (RID_SVX_START + 5)
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index b083e68574fb..b80faa3bb3cc 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -27,7 +27,7 @@
#include <sfx2/viewfrm.hxx>
#include <sfx2/imgmgr.hxx>
#include <vcl/configsettings.hxx>
-#include <vcl/msgbox.hxx>
+#include <vcl/layout.hxx>
#include <vcl/mnemonic.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
@@ -1231,7 +1231,7 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
xProp->setPropertyValue(sUserLocaleKey, makeAny(aLangString));
Reference< XChangesBatch >(xProp, UNO_QUERY_THROW)->commitChanges();
// display info
- InfoBox aBox(this, CUI_RES(RID_SVX_MSGBOX_LANGUAGE_RESTART));
+ MessageDialog aBox(this, CUI_RES(RID_SVXSTR_LANGUAGE_RESTART), VCL_MESSAGE_INFO);
aBox.Execute();
// tell quickstarter to stop being a veto listener
diff --git a/cui/source/options/optgdlg.src b/cui/source/options/optgdlg.src
index 537c1505b7c5..206fb3af7567 100644
--- a/cui/source/options/optgdlg.src
+++ b/cui/source/options/optgdlg.src
@@ -20,11 +20,9 @@
#include <cuires.hrc>
#include "helpid.hrc"
-// *******************************************************************
-
-InfoBox RID_SVX_MSGBOX_LANGUAGE_RESTART
+String RID_SVXSTR_LANGUAGE_RESTART
{
- Message [ en-US ] = "The language setting of the user interface has been updated and will take effect the next time you start %PRODUCTNAME %PRODUCTVERSION";
+ Text [ en-US ] = "The language setting of the user interface has been updated and will take effect the next time you start %PRODUCTNAME %PRODUCTVERSION";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */