include/sfx2/strings.hrc | 1 + sfx2/source/dialog/backingwindow.cxx | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)
New commits: commit a200d9580b36ab11a4d21285dd5a723db091afac Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Tue Aug 27 11:01:52 2024 +0200 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Wed Aug 28 11:06:34 2024 +0200 Resolves tdf#162615 - Long label must not overside sidebar in start center Change-Id: Ia8205dd32ee7fd3f67ae2c3f6fec4366c2c4d4f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172455 Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Tested-by: Jenkins diff --git a/include/sfx2/strings.hrc b/include/sfx2/strings.hrc index 35997819573d..d8e1de9ae66c 100644 --- a/include/sfx2/strings.hrc +++ b/include/sfx2/strings.hrc @@ -259,6 +259,7 @@ #define STR_GET_INVOLVED_TEXT NC_("STR_GET_INVOLVED_TEXT", "Help us make %PRODUCTNAME even better!") #define STR_GET_INVOLVED_BUTTON NC_("STR_GET_INVOLVED_BUTTON", "Get involved") #define STR_DONATE_TEXT NC_("STR_DONATE_TEXT", "Your donations support our worldwide community.") +// Translators: text will be abbreviated at >8 characters, eg. "Please D..." #define STR_DONATE_BUTTON NC_("STR_DONATE_BUTTON", "Donate") #define STR_WHATSNEW_TEXT NC_("STR_WHATSNEW", "You are running version %PRODUCTVERSION of %PRODUCTNAME for the first time. Do you want to learn what's new?") #define STR_WHATSNEW_BUTTON NC_("STR_WHATSNEW_BUTTON", "Release Notes") diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 009c1acea6bc..3c90d1ea2ade 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -197,7 +197,13 @@ BackingWindow::BackingWindow(vcl::Window* i_pParent) if (officecfg::Office::Common::Misc::ShowDonation::get()) { mxExtensionsButton->set_from_icon_name(BMP_DONATE); // icon first needed on gtk3 to apply the label - mxExtensionsButton->set_label(SfxResId(STR_DONATE_BUTTON)); + OUString sDonate(SfxResId(STR_DONATE_BUTTON)); + if (sDonate.getLength() > 8) + { + mxExtensionsButton->set_tooltip_text(sDonate); + sDonate = OUString::Concat(sDonate.subView(0, 7)) + "..."; + } + mxExtensionsButton->set_label(sDonate); } mxDropTarget = mxAllRecentThumbnails->GetDropTarget();