summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorRadhey Parekh <radhey.parekh@gmail.com>2023-01-16 02:13:53 +0530
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2023-01-17 09:35:31 +0000
commitf7d4efc02118a92a3f3cb17ea131674e88907a7b (patch)
treed26ee274dd25bcad8f1494888fb62bc27b4f066d /framework
parent5ed9bb8bdcb1bee63d89909eed82110da31edfe5 (diff)
tdf#146638 In a titlebar, separator is changed from a hyphen to an emdash
Change-Id: Ibf79dfd4c3e2f44ba4564567cd5e3f3650095719 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145542 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/strings.hrc1
-rw-r--r--framework/source/fwe/helper/titlehelper.cxx5
2 files changed, 5 insertions, 1 deletions
diff --git a/framework/inc/strings.hrc b/framework/inc/strings.hrc
index 18b372915b9b..182c3cf120ac 100644
--- a/framework/inc/strings.hrc
+++ b/framework/inc/strings.hrc
@@ -36,6 +36,7 @@
#define STR_CLEAR_RECENT_FILES NC_("STR_CLEAR_RECENT_FILES", "Clear List")
#define STR_CLEAR_RECENT_FILES_HELP NC_("STR_CLEAR_RECENT_FILES_HELP", "Clears the list with the most recently opened files. This action can not be undone.")
#define STR_REMOTE_TITLE NC_("STR_REMOTE_TITLE", " (Remote)")
+#define STR_EMDASH_SEPARATOR NC_("STR_EMDASH_SEPARATOR", " — ")
#define STR_SAFEMODE_TITLE NC_("STR_SAFEMODE_TITLE", " (Safe Mode)")
#define STR_TOOLBAR_TITLE_ADDON NC_("STR_TOOLBAR_TITLE_ADDON", "Add-On %num%")
#define STR_FULL_DISC_RETRY_BUTTON NC_("STR_FULL_DISC_RETRY_BUTTON", "Retry" )
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx
index aa4e8f0b2010..51025f71e4a5 100644
--- a/framework/source/fwe/helper/titlehelper.cxx
+++ b/framework/source/fwe/helper/titlehelper.cxx
@@ -536,7 +536,10 @@ void TitleHelper::impl_appendProductName (OUStringBuffer& sTitle)
if (!name.isEmpty())
{
if (!sTitle.isEmpty())
- sTitle.append(" - ");
+ {
+ OUString separator (FwkResId (STR_EMDASH_SEPARATOR));
+ sTitle.append(separator);
+ }
sTitle.append(name);
}
}