diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-11 12:38:03 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-11 20:14:16 +0000 |
commit | e610e5f28e4b2b774a897ee7cf6d8098ade30a7f (patch) | |
tree | 0c093c6d598fbc8ef55879b3ac7516526c2d9a37 /sc | |
parent | 89cb169b49de363ac290c23cb228675d022f5cda (diff) |
Resolves: fdo#58865 hard-coded LibreOffice strings
Change-Id: Ie03106c3089f6d1bc0172a2e2c702b5725e55acf
Reviewed-on: https://gerrit.libreoffice.org/1656
Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/src/globstr.src | 2 | ||||
-rw-r--r-- | sc/source/ui/src/optdlg.src | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 2c35c018358b..a2073b968f3a 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -102,6 +102,7 @@ #include <officecfg/Office/Calc.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/string.hxx> +#include <unotools/configmgr.hxx> #include "uiitems.hxx" #include "cellsuno.hxx" #include "dpobject.hxx" @@ -438,7 +439,8 @@ sal_Bool ScDocShell::LoadXML( SfxMedium* pLoadMedium, const ::com::sun::star::un bool bHardRecalc = false; if (nRecalcMode == RECALC_ASK) { - if (aDocument.IsUserInteractionEnabled() && xDocProps->getGenerator().indexOf("LibreOffice") == -1) + OUString sProductName(utl::ConfigManager::getProductName()); + if (aDocument.IsUserInteractionEnabled() && xDocProps->getGenerator().indexOf(sProductName) == -1) { // Generator is not LibreOffice. Ask if the user wants to perform // full re-calculation. diff --git a/sc/source/ui/src/globstr.src b/sc/source/ui/src/globstr.src index a5ac8b2a4e4c..9f9b259d2c67 100644 --- a/sc/source/ui/src/globstr.src +++ b/sc/source/ui/src/globstr.src @@ -1953,7 +1953,7 @@ Resource RID_GLOBSTR String STR_QUERY_FORMULA_RECALC_ONLOAD_ODS { - Text [ en-US ] = "This document was last saved by application other than LibreOffice. Some formula cells may produce different results when recalculated.\n\nDo you want to recalculate all formula cells in this document now?"; + Text [ en-US ] = "This document was last saved by an application other than %PRODUCTNAME. Some formula cells may produce different results when recalculated.\n\nDo you want to recalculate all formula cells in this document now?"; }; String STR_QUERY_FORMULA_RECALC_ONLOAD_XLS diff --git a/sc/source/ui/src/optdlg.src b/sc/source/ui/src/optdlg.src index 4f6f5ab0e16a..9004396c6e26 100644 --- a/sc/source/ui/src/optdlg.src +++ b/sc/source/ui/src/optdlg.src @@ -317,7 +317,7 @@ TabPage RID_SCPAGE_FORMULA { Pos = MAP_APPFONT ( 21, 165 ); Size = MAP_APPFONT ( 120, 8 ); - Text [ en-US ] = "ODF Spreadsheet (not saved by LibreOffice)"; + Text [ en-US ] = "ODF Spreadsheet (not saved by %PRODUCTNAME)"; }; ListBox LB_ODF_RECALC |