summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/inc/spsupp/spsuppStrings.hrc2
-rw-r--r--shell/source/win32/spsupp/spsuppHelper.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/inc/spsupp/spsuppStrings.hrc b/shell/inc/spsupp/spsuppStrings.hrc
index dc96fbb89459..a6ad2933c5fa 100644
--- a/shell/inc/spsupp/spsuppStrings.hrc
+++ b/shell/inc/spsupp/spsuppStrings.hrc
@@ -10,7 +10,7 @@
#ifndef INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC
#define INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC
-#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
+#define NC_(Context, String) TranslateId(Context, reinterpret_cast<char const *>(u8##String))
#define RID_STR_SP_VIEW_OR_EDIT_TITLE NC_("RID_STR_SP_VIEW_OR_EDIT_TITLE", "Open Document")
#define RID_STR_SP_VIEW_OR_EDIT_MESSAGE NC_("RID_STR_SP_VIEW_OR_EDIT_MESSAGE", "You are opening document\n\n %DOCNAME\n\nDo you want to open it to view or to edit?")
diff --git a/shell/source/win32/spsupp/spsuppHelper.cxx b/shell/source/win32/spsupp/spsuppHelper.cxx
index 3f6c9f787961..595128ca7479 100644
--- a/shell/source/win32/spsupp/spsuppHelper.cxx
+++ b/shell/source/win32/spsupp/spsuppHelper.cxx
@@ -43,7 +43,7 @@ const OUString& GetSofficeExe()
return s_sPath;
}
-OUString GetString(const char* pResId)
+OUString GetString(TranslateId pResId)
{
static const std::locale s_pLocale = [] {
// Initialize soffice bootstrap: see getIniFileName_Impl for reference