diff options
author | David Tardon <dtardon@redhat.com> | 2012-01-20 09:41:59 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-01-20 11:09:21 +0100 |
commit | 1651cbac6bf5b1523db0c06df2146059c4d968c3 (patch) | |
tree | 6ca460cdb07a633d2448ac287e5d28e8d0f0a949 /cui | |
parent | ccc8753d7fc573db29159ab21492b8939f0ddab8 (diff) |
make these strings localizable again (fdo#44947)
Our translation tools read the src files literally, line by line, only
reacting on specific patterns (e.g., 'Text [en-US] = "...";'). Therefore
use of macros like this cannot work.
Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tabarea.src | 205 |
1 files changed, 148 insertions, 57 deletions
diff --git a/cui/source/tabpages/tabarea.src b/cui/source/tabpages/tabarea.src index b1117b11b303..6c830d07cbe4 100644 --- a/cui/source/tabpages/tabarea.src +++ b/cui/source/tabpages/tabarea.src @@ -682,51 +682,6 @@ TabPage RID_SVXPAGE_SHADOW }; }; -// Helper for creating the load / save / embed buttons in std. positions - -#define LOAD_BUTTON(hid,qhtxt) \ - ImageButton BTN_LOAD \ - { \ - HelpID = hid ; \ - Pos = MAP_APPFONT ( 197 , 104 ) ; \ - Size = MAP_APPFONT ( 16 , 16 ) ; \ - TabStop = TRUE ; \ - QuickHelpText [ en-US ] = qhtxt ; \ - ButtonImage = Image \ - { \ - ImageBitmap = Bitmap \ - { \ - File = "sc05501.bmp" ; \ - }; \ - }; \ - } \ - -#define SAVE_BUTTON(hid,qhtxt) \ - ImageButton BTN_SAVE \ - { \ - HelpID = hid ; \ - Pos = MAP_APPFONT ( 217 , 104 ) ; \ - Size = MAP_APPFONT ( 16 , 16 ) ; \ - TabStop = TRUE ; \ - QuickHelpText [ en-US ] = qhtxt ; \ - ButtonImage = Image \ - { \ - ImageBitmap = Bitmap \ - { \ - File = "sc05502.bmp" ; \ - }; \ - }; \ - } - -#define EMBED_BUTTON(hid,txt) \ - CheckBox BTN_EMBED \ - { \ - HelpID = hid ; \ - Pos = MAP_APPFONT ( 197 , 124 ) ; \ - Size = MAP_APPFONT ( 122 , 10 ) ; \ - Text [ en-US ] = txt ; \ - } - // ------------------------------------------------------ TabPage RID_SVXPAGE_HATCH { @@ -868,9 +823,43 @@ TabPage RID_SVXPAGE_HATCH TabStop = TRUE ; }; - LOAD_BUTTON( "cui:ImageButton:RID_SVXPAGE_HATCH:BTN_LOAD", "Load Hatches List" ); - SAVE_BUTTON( "cui:ImageButton:RID_SVXPAGE_HATCH:BTN_SAVE", "Save Hatches List" ); - EMBED_BUTTON( "cui:ImageButton:RID_SVXPAGE_HATCH:BTN_EMBED", "Embed" ); + ImageButton BTN_LOAD + { + HelpID = "cui:ImageButton:RID_SVXPAGE_HATCH:BTN_LOAD"; + Pos = MAP_APPFONT ( 197 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Load Hatches List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05501.bmp" ; + }; + }; + }; + ImageButton BTN_SAVE + { + HelpID = "cui:ImageButton:RID_SVXPAGE_HATCH:BTN_SAVE"; + Pos = MAP_APPFONT ( 217 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Save Hatches List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05502.bmp" ; + }; + }; + }; + CheckBox BTN_EMBED + { + HelpID = "cui:ImageButton:RID_SVXPAGE_HATCH:BTN_EMBED"; + Pos = MAP_APPFONT ( 197 , 124 ) ; + Size = MAP_APPFONT ( 122 , 10 ) ; + Text [ en-US ] = "Embed"; + }; }; // ------------------------------------------------------ @@ -983,9 +972,43 @@ TabPage RID_SVXPAGE_BITMAP TabStop = TRUE ; }; - LOAD_BUTTON( "cui:ImageButton:RID_SVXPAGE_BITMAP:BTN_LOAD", "Load Bitmap List" ); - SAVE_BUTTON( "cui:ImageButton:RID_SVXPAGE_BITMAP:BTN_SAVE", "Save Bitmap List" ); - EMBED_BUTTON( "cui:ImageButton:RID_SVXPAGE_BITMAP:BTN_EMBED", "Embed" ); + ImageButton BTN_LOAD + { + HelpID = "cui:ImageButton:RID_SVXPAGE_BITMAP:BTN_LOAD"; + Pos = MAP_APPFONT ( 197 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Load Bitmap List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05501.bmp" ; + }; + }; + }; + ImageButton BTN_SAVE + { + HelpID = "cui:ImageButton:RID_SVXPAGE_BITMAP:BTN_SAVE"; + Pos = MAP_APPFONT ( 217 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Save Bitmap List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05502.bmp" ; + }; + }; + } + CheckBox BTN_EMBED + { + HelpID = "cui:ImageButton:RID_SVXPAGE_BITMAP:BTN_EMBED"; + Pos = MAP_APPFONT ( 197 , 124 ) ; + Size = MAP_APPFONT ( 122 , 10 ) ; + Text [ en-US ] = "Embed"; + } }; // ------------------------------------------------------ @@ -1214,9 +1237,43 @@ TabPage RID_SVXPAGE_GRADIENT Text [ en-US ] = "~Delete..." ; TabStop = TRUE ; }; - LOAD_BUTTON( "cui:ImageButton:RID_SVXPAGE_GRADIENT:BTN_LOAD", "Load Gradients List" ); - SAVE_BUTTON( "cui:ImageButton:RID_SVXPAGE_GRADIENT:BTN_SAVE", "Save Gradients List" ); - EMBED_BUTTON( "cui:ImageButton:RID_SVXPAGE_GRADIENT:BTN_EMBED", "Embed" ); + ImageButton BTN_LOAD + { + HelpID = "cui:ImageButton:RID_SVXPAGE_GRADIENT:BTN_LOAD"; + Pos = MAP_APPFONT ( 197 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Load Gradients List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05501.bmp" ; + }; + }; + }; + ImageButton BTN_SAVE + { + HelpID = "cui:ImageButton:RID_SVXPAGE_GRADIENT:BTN_SAVE"; + Pos = MAP_APPFONT ( 217 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Save Gradients List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05502.bmp" ; + }; + }; + }; + CheckBox BTN_EMBED + { + HelpID = "cui:ImageButton:RID_SVXPAGE_GRADIENT:BTN_EMBED"; + Pos = MAP_APPFONT ( 197 , 124 ) ; + Size = MAP_APPFONT ( 122 , 10 ) ; + Text [ en-US ] = "Embed"; + }; }; // ------------------------------------------------------ @@ -1417,9 +1474,43 @@ TabPage RID_SVXPAGE_COLOR Text [ en-US ] = "~Modify" ; TabStop = TRUE ; }; - LOAD_BUTTON( "cui:ImageButton:RID_SVXPAGE_COLOR:BTN_LOAD", "Load Color List" ); - SAVE_BUTTON( "cui:ImageButton:RID_SVXPAGE_COLOR:BTN_SAVE", "Save Color List" ); - EMBED_BUTTON( "cui:ImageButton:RID_SVXPAGE_COLOR:BTN_EMBED", "Embed" ); + ImageButton BTN_LOAD + { + HelpID = "cui:ImageButton:RID_SVXPAGE_COLOR:BTN_LOAD"; + Pos = MAP_APPFONT ( 197 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Load Color List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05501.bmp" ; + }; + }; + }; + ImageButton BTN_SAVE + { + HelpID = "cui:ImageButton:RID_SVXPAGE_COLOR:BTN_SAVE"; + Pos = MAP_APPFONT ( 217 , 104 ) ; + Size = MAP_APPFONT ( 16 , 16 ) ; + TabStop = TRUE ; + QuickHelpText [ en-US ] = "Save Color List"; + ButtonImage = Image + { + ImageBitmap = Bitmap + { + File = "sc05502.bmp" ; + }; + }; + }; + CheckBox BTN_EMBED + { + HelpID = "cui:ImageButton:RID_SVXPAGE_COLOR:BTN_EMBED"; + Pos = MAP_APPFONT ( 197 , 124 ) ; + Size = MAP_APPFONT ( 122 , 10 ) ; + Text [ en-US ] = "Embed"; + }; }; // ------------------------------------------------------ |