diff options
| author | Gabor Kelemen <kelemeng@ubuntu.com> | 2017-04-22 09:18:10 +0200 |
|---|---|---|
| committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-04-25 22:29:41 +0200 |
| commit | c67a0d0f7ddd8ababa3197d86998979c1ce725d0 (patch) | |
| tree | 501e603db69693a664eef2e5e6e0252eced5e9e3 | |
| parent | aa6a9bbd66beb234c54d8f881b56da6d8753c423 (diff) | |
tdf#101055 Translate default name of bookmarks
Change-Id: I9dd5ab006c7b7e7da7c4c2705925bbf264b58b60
Reviewed-on: https://gerrit.libreoffice.org/36813
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
| -rw-r--r-- | sw/inc/globals.hrc | 2 | ||||
| -rw-r--r-- | sw/source/ui/app/app.src | 5 | ||||
| -rw-r--r-- | sw/source/ui/misc/bookmark.cxx | 2 | ||||
| -rw-r--r-- | sw/source/uibase/inc/bookmark.hxx | 1 |
4 files changed, 7 insertions, 3 deletions
diff --git a/sw/inc/globals.hrc b/sw/inc/globals.hrc index 748cd8b811c1..e8cd8d3f9653 100644 --- a/sw/inc/globals.hrc +++ b/sw/inc/globals.hrc @@ -93,7 +93,7 @@ #define STR_CENTER_BASE (RC_GLOBALS_BEGIN + 33) // free - +#define STR_BOOKMARK_DEF_NAME (RC_GLOBALS_BEGIN + 35) #define STR_BOOKMARK_NAME (RC_GLOBALS_BEGIN + 36) #define STR_BOOKMARK_TEXT (RC_GLOBALS_BEGIN + 37) diff --git a/sw/source/ui/app/app.src b/sw/source/ui/app/app.src index c79806f71e0d..84ba7d3b33b0 100644 --- a/sw/source/ui/app/app.src +++ b/sw/source/ui/app/app.src @@ -220,6 +220,11 @@ String STR_REMOVE_WARNING Text [ en-US ] = "The following characters are not valid and have been removed: "; }; +String STR_BOOKMARK_DEF_NAME +{ + Text [ en-US ] = "Bookmark"; +}; + String STR_BOOKMARK_NAME { Text [ en-US ] = "Name"; diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx index 4a52dd50f184..64e95a14b3b1 100644 --- a/sw/source/ui/misc/bookmark.cxx +++ b/sw/source/ui/misc/bookmark.cxx @@ -40,7 +40,6 @@ using namespace ::com::sun::star; const OUString BookmarkTable::aForbiddenChars("/\\@*?\",#"); const char BookmarkTable::cSeparator(';'); -const OUString BookmarkTable::sDefaultBookmarkName("Bookmark"); // callback to modify EditBox IMPL_LINK_NOARG(SwInsertBookmarkDlg, ModifyHdl, Edit&, void) @@ -429,6 +428,7 @@ void BookmarkTable::SelectByName(const OUString& sName) OUString BookmarkTable::GetNameProposal() { + OUString sDefaultBookmarkName = SW_RES(STR_BOOKMARK_DEF_NAME); sal_Int32 nHighestBookmarkId = 0; SvTreeListEntry* pEntry = First(); while (pEntry) diff --git a/sw/source/uibase/inc/bookmark.hxx b/sw/source/uibase/inc/bookmark.hxx index d1ea987d474c..ac20eaa59b31 100644 --- a/sw/source/uibase/inc/bookmark.hxx +++ b/sw/source/uibase/inc/bookmark.hxx @@ -43,7 +43,6 @@ public: OUString GetNameProposal(); static const OUString aForbiddenChars; - static const OUString sDefaultBookmarkName; static const char cSeparator; }; |
