From 6ad09bbfcdbb1e184bfbafcfc9bbe5af73ef1ae4 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sat, 22 Nov 2014 19:49:14 +0100 Subject: fdo#86517 make predefined palette names localizable Change-Id: I3930757c02f9f976fb52cd75c9edab7cf75078c6 (cherry picked from commit 08d876b6b0b52d882350aa64eda784da56856166) --- svx/source/tbxctrls/PaletteManager.cxx | 11 ++++------- svx/source/tbxctrls/tbcontrl.src | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 8 deletions(-) (limited to 'svx') diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx index b6d3cb7a3f8a..33f346e24840 100644 --- a/svx/source/tbxctrls/PaletteManager.cxx +++ b/svx/source/tbxctrls/PaletteManager.cxx @@ -23,14 +23,11 @@ #include #include #include +#include #include #include #include -#define STR_DEFAULT_PAL "Default palette" -#define STR_DOC_COLORS "Document colors" -#define STR_DOC_COLOR_PREFIX "Document Color " - PaletteManager::PaletteManager() : mnMaxRecentColors(Application::GetSettings().GetStyleSettings().GetColorValueSetColumnCount()), mnNumOfPalettes(2), @@ -110,7 +107,7 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet) std::vector aColors = pDocSh->GetDocColors(); mnColorCount = aColors.size(); rColorSet.Clear(); - rColorSet.addEntriesForColorVector(aColors, STR_DOC_COLOR_PREFIX ); + rColorSet.addEntriesForColorVector(aColors, SVX_RESSTR( RID_SVXSTR_DOC_COLOR_PREFIX ) + " " ); } else { @@ -135,7 +132,7 @@ std::vector PaletteManager::GetPaletteList() { std::vector aPaletteNames; - aPaletteNames.push_back( STR_DEFAULT_PAL ); + aPaletteNames.push_back( SVX_RESSTR( RID_SVXSTR_DEFAULT_PAL ) ); for( boost::ptr_vector::iterator it = maPalettes.begin(); it != maPalettes.end(); @@ -144,7 +141,7 @@ std::vector PaletteManager::GetPaletteList() aPaletteNames.push_back( (*it).GetName() ); } - aPaletteNames.push_back( STR_DOC_COLORS ); + aPaletteNames.push_back( SVX_RESSTR ( RID_SVXSTR_DOC_COLORS ) ); return aPaletteNames; } diff --git a/svx/source/tbxctrls/tbcontrl.src b/svx/source/tbxctrls/tbcontrl.src index 0e250c3ad8f7..6e0add7d9ae8 100644 --- a/svx/source/tbxctrls/tbcontrl.src +++ b/svx/source/tbxctrls/tbcontrl.src @@ -21,7 +21,7 @@ #include /* - * Bitmaps f"ur SvxFrameWindow + * Bitmaps for SvxFrameWindow */ #define MASKCOLOR MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; }; @@ -207,4 +207,19 @@ String RID_SVXSTR_CHARFONTNAME_NOTAVAILABLE Text [ en-US ] = "Font Name. The current font is not available and will be substituted."; }; +String RID_SVXSTR_DEFAULT_PAL +{ + Text [ en-US ] = "Default palette"; +}; + +String RID_SVXSTR_DOC_COLORS +{ + Text [ en-US ] = "Document colors"; +}; + +String RID_SVXSTR_DOC_COLOR_PREFIX +{ + Text [ en-US ] = "Document Color"; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3