Kaydet (Commit) c67a0d0f authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Katarina Behrens

tdf#101055 Translate default name of bookmarks

Change-Id: I9dd5ab006c7b7e7da7c4c2705925bbf264b58b60
Reviewed-on: https://gerrit.libreoffice.org/36813Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst aa6a9bbd
......@@ -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)
......
......@@ -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";
......
......@@ -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)
......
......@@ -43,7 +43,6 @@ public:
OUString GetNameProposal();
static const OUString aForbiddenChars;
static const OUString sDefaultBookmarkName;
static const char cSeparator;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment