[Libreoffice-commits] core.git: sw/inc sw/source
Gabor Kelemen (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 6 08:04:42 UTC 2019
sw/inc/strings.hrc | 2 ++
sw/source/ui/misc/bookmark.cxx | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 960eb45ad2e21fdaec9ef39a6b83e752e95088ca
Author: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Tue Aug 6 07:57:19 2019 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Aug 6 10:03:45 2019 +0200
Translate bookmark state indicator strings
Just stumbled upon these in the Insert - Bookmarks window
Change-Id: Ieb9b6ad3e15790e1124851480dfe764e7d43153b
Reviewed-on: https://gerrit.libreoffice.org/76996
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 1164c8daeb16..33778069c4fa 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -244,6 +244,8 @@
#define STR_BOOKMARK_TEXT NC_("STR_BOOKMARK_TEXT", "Text")
#define STR_BOOKMARK_HIDDEN NC_("STR_BOOKMARK_HIDDEN", "Hidden")
#define STR_BOOKMARK_CONDITION NC_("STR_BOOKMARK_CONDITION", "Condition")
+#define STR_BOOKMARK_YES NC_("STR_BOOKMARK_YES", "Yes")
+#define STR_BOOKMARK_NO NC_("STR_BOOKMARK_NO", "No")
#define SW_STR_NONE NC_("SW_STR_NONE", "[None]")
#define STR_CAPTION_BEGINNING NC_("STR_CAPTION_BEGINNING", "Start")
#define STR_CAPTION_END NC_("STR_CAPTION_END", "End")
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index d7d891558abf..e690d8b10bcd 100644
--- a/sw/source/ui/misc/bookmark.cxx
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -424,9 +424,9 @@ void BookmarkTable::InsertBookmark(sw::mark::IMark* pMark)
else if (bPulling && !bPulledAll)
sBookmarkNodeText = "..." + sBookmarkNodeText;
- OUString sHidden = "No";
+ OUString sHidden = SwResId(STR_BOOKMARK_NO);
if (pBookmark->IsHidden())
- sHidden = "Yes";
+ sHidden = SwResId(STR_BOOKMARK_YES);
const OUString& sHideCondition = pBookmark->GetHideCondition();
OUString sPageNum = OUString::number(SwPaM(pMark->GetMarkStart()).GetPageNum());
int nRow = m_xControl->n_children();
More information about the Libreoffice-commits
mailing list