1*8e0a7b1bSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*8e0a7b1bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*8e0a7b1bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*8e0a7b1bSAndrew Rist * distributed with this work for additional information 6*8e0a7b1bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*8e0a7b1bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*8e0a7b1bSAndrew Rist * "License"); you may not use this file except in compliance 9*8e0a7b1bSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*8e0a7b1bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*8e0a7b1bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*8e0a7b1bSAndrew Rist * software distributed under the License is distributed on an 15*8e0a7b1bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*8e0a7b1bSAndrew Rist * KIND, either express or implied. See the License for the 17*8e0a7b1bSAndrew Rist * specific language governing permissions and limitations 18*8e0a7b1bSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*8e0a7b1bSAndrew Rist *************************************************************/ 21*8e0a7b1bSAndrew Rist 22*8e0a7b1bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#include "dlgresid.hrc" 25cdf0e10cSrcweir#include "managelang.hrc" 26cdf0e10cSrcweir#include "helpid.hrc" 27cdf0e10cSrcweir 28cdf0e10cSrcweirModalDialog RID_DLG_MANAGE_LANGUAGE 29cdf0e10cSrcweir{ 30cdf0e10cSrcweir HelpId = HID_BASICIDE_MANAGE_LANGUAGE ; 31cdf0e10cSrcweir OutputSize = TRUE ; 32cdf0e10cSrcweir Size = MAP_APPFONT ( MANAGE_DLG_WIDTH , MANAGE_DLG_HEIGHT ) ; 33cdf0e10cSrcweir Moveable = TRUE ; 34cdf0e10cSrcweir Closeable = TRUE ; 35cdf0e10cSrcweir Text [ en-US ] = "Manage User Interface Languages [$1]" ; 36cdf0e10cSrcweir FixedText FT_LANGUAGE 37cdf0e10cSrcweir { 38cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW1 ) ; 39cdf0e10cSrcweir Size = MAP_APPFONT ( MANAGE_LB_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ; 40cdf0e10cSrcweir Text [ en-US ] = "Present Languages" ; 41cdf0e10cSrcweir }; 42cdf0e10cSrcweir ListBox LB_LANGUAGE 43cdf0e10cSrcweir { 44cdf0e10cSrcweir HelpID = "basctl:ListBox:RID_DLG_MANAGE_LANGUAGE:LB_LANGUAGE"; 45cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW2 ) ; 46cdf0e10cSrcweir Size = MAP_APPFONT ( MANAGE_LB_WIDTH , MANAGE_LB_HEIGHT ) ; 47cdf0e10cSrcweir Border = TRUE; 48cdf0e10cSrcweir AutoHScroll = TRUE ; 49cdf0e10cSrcweir }; 50cdf0e10cSrcweir PushButton PB_ADD_LANG 51cdf0e10cSrcweir { 52cdf0e10cSrcweir HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_ADD_LANG"; 53cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW2 ) ; 54cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 55cdf0e10cSrcweir TabStop = TRUE ; 56cdf0e10cSrcweir Text [ en-US ] = "Add..." ; 57cdf0e10cSrcweir }; 58cdf0e10cSrcweir PushButton PB_DEL_LANG 59cdf0e10cSrcweir { 60cdf0e10cSrcweir HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_DEL_LANG"; 61cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW3 ) ; 62cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 63cdf0e10cSrcweir TabStop = TRUE ; 64cdf0e10cSrcweir Text [ en-US ] = "Delete" ; 65cdf0e10cSrcweir }; 66cdf0e10cSrcweir PushButton PB_MAKE_DEFAULT 67cdf0e10cSrcweir { 68cdf0e10cSrcweir HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_MAKE_DEFAULT"; 69cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW4 ) ; 70cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 71cdf0e10cSrcweir TabStop = TRUE ; 72cdf0e10cSrcweir Text [ en-US ] = "Default" ; 73cdf0e10cSrcweir }; 74cdf0e10cSrcweir FixedText FT_INFO 75cdf0e10cSrcweir { 76cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW5 ) ; 77cdf0e10cSrcweir Size = MAP_APPFONT ( MANAGE_DLG_WIDTH - 2*RSC_SP_FLGR_INNERBORDER_LEFT, INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT ) ; 78cdf0e10cSrcweir WordBreak = TRUE ; 79cdf0e10cSrcweir Text [ en-US ] = "The default language is used if no localization for a user interface locale is present. Furthermore all strings from the default language are copied to resources of newly added languages." ; 80cdf0e10cSrcweir }; 81cdf0e10cSrcweir FixedLine FL_BUTTONS 82cdf0e10cSrcweir { 83cdf0e10cSrcweir Pos = MAP_APPFONT ( 0 , MANAGE_ROW6 ) ; 84cdf0e10cSrcweir Size = MAP_APPFONT ( MANAGE_DLG_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ; 85cdf0e10cSrcweir }; 86cdf0e10cSrcweir HelpButton PB_HELP 87cdf0e10cSrcweir { 88cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL2 , MANAGE_ROW7 ) ; 89cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 90cdf0e10cSrcweir TabStop = TRUE ; 91cdf0e10cSrcweir }; 92cdf0e10cSrcweir OKButton PB_CLOSE 93cdf0e10cSrcweir { 94cdf0e10cSrcweir Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW7 ) ; 95cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 96cdf0e10cSrcweir TabStop = TRUE ; 97cdf0e10cSrcweir DefButton = TRUE ; 98cdf0e10cSrcweir Text [ en-US ] = "~Close" ; 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir String STR_DEF_LANG 101cdf0e10cSrcweir { 102cdf0e10cSrcweir Text [ en-US ] = "[Default Language]" ; 103cdf0e10cSrcweir }; 104cdf0e10cSrcweir String STR_DELETE 105cdf0e10cSrcweir { 106cdf0e10cSrcweir Text [ en-US ] = "~Delete" ; 107cdf0e10cSrcweir }; 108cdf0e10cSrcweir String STR_CREATE_LANG 109cdf0e10cSrcweir { 110cdf0e10cSrcweir Text [ en-US ] = "<Press 'Add' to create language resources>" ; 111cdf0e10cSrcweir }; 112cdf0e10cSrcweir}; 113cdf0e10cSrcweir 114cdf0e10cSrcweirQueryBox RID_QRYBOX_LANGUAGE 115cdf0e10cSrcweir{ 116cdf0e10cSrcweir Title [ en-US ] = "Delete Language Resources" ; 117cdf0e10cSrcweir Message [ en-US ] = "You are about to delete the resources for the selected language(s). All user interface strings for this language(s) will be deleted.\n\nDo you want to delete the resources of the selected language(s)?"; 118cdf0e10cSrcweir BUTTONS = WB_OK_CANCEL ; 119cdf0e10cSrcweir DEFBUTTON = WB_DEF_CANCEL ; 120cdf0e10cSrcweir}; 121cdf0e10cSrcweir 122cdf0e10cSrcweirModalDialog RID_DLG_SETDEF_LANGUAGE 123cdf0e10cSrcweir{ 124cdf0e10cSrcweir HelpId = HID_BASICIDE_SETDEFAULT_LANGUAGE ; 125cdf0e10cSrcweir OutputSize = TRUE ; 126cdf0e10cSrcweir Size = MAP_APPFONT ( SETDEF_DLG_WIDTH , SETDEF_DLG_HEIGHT ) ; 127cdf0e10cSrcweir Moveable = TRUE ; 128cdf0e10cSrcweir Closeable = TRUE ; 129cdf0e10cSrcweir Text [ en-US ] = "Set Default User Interface Language" ; 130cdf0e10cSrcweir FixedText FT_DEF_LANGUAGE 131cdf0e10cSrcweir { 132cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW1 ) ; 133cdf0e10cSrcweir Size = MAP_APPFONT ( SETDEF_LB_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ; 134cdf0e10cSrcweir Text [ en-US ] = "Default language" ; 135cdf0e10cSrcweir }; 136cdf0e10cSrcweir ListBox LB_DEF_LANGUAGE 137cdf0e10cSrcweir { 138cdf0e10cSrcweir HelpID = "basctl:ListBox:RID_DLG_SETDEF_LANGUAGE:LB_DEF_LANGUAGE"; 139cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW2 ) ; 140cdf0e10cSrcweir Size = MAP_APPFONT ( SETDEF_LB_WIDTH , SETDEF_LB_HEIGHT ) ; 141cdf0e10cSrcweir Border = TRUE; 142cdf0e10cSrcweir AutoHScroll = TRUE ; 143cdf0e10cSrcweir }; 144cdf0e10cSrcweir Control LB_ADD_LANGUAGE 145cdf0e10cSrcweir { 146cdf0e10cSrcweir HelpId = HID_BASICIDE_ADDNEW_CONTROL ; 147cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW2 ) ; 148cdf0e10cSrcweir Size = MAP_APPFONT ( SETDEF_LB_WIDTH , SETDEF_LB_HEIGHT ) ; 149cdf0e10cSrcweir }; 150cdf0e10cSrcweir FixedText FT_DEF_INFO 151cdf0e10cSrcweir { 152cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW3 ) ; 153cdf0e10cSrcweir Size = MAP_APPFONT ( SETDEF_LB_WIDTH, INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT ) ; 154cdf0e10cSrcweir WordBreak = TRUE ; 155cdf0e10cSrcweir Text [ en-US ] = "Select a language to define the default user interface language. All currently present strings will be assigned to the resources created for the selected language." ; 156cdf0e10cSrcweir }; 157cdf0e10cSrcweir FixedLine FL_DEF_BUTTONS 158cdf0e10cSrcweir { 159cdf0e10cSrcweir Pos = MAP_APPFONT ( 0 , SETDEF_ROW4 ) ; 160cdf0e10cSrcweir Size = MAP_APPFONT ( SETDEF_DLG_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ; 161cdf0e10cSrcweir }; 162cdf0e10cSrcweir OKButton PB_DEF_OK 163cdf0e10cSrcweir { 164cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL2 , SETDEF_ROW5 ) ; 165cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 166cdf0e10cSrcweir TabStop = TRUE ; 167cdf0e10cSrcweir DefButton = TRUE ; 168cdf0e10cSrcweir }; 169cdf0e10cSrcweir CancelButton PB_DEF_CANCEL 170cdf0e10cSrcweir { 171cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL3 , SETDEF_ROW5 ) ; 172cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 173cdf0e10cSrcweir TabStop = TRUE ; 174cdf0e10cSrcweir }; 175cdf0e10cSrcweir HelpButton PB_DEF_HELP 176cdf0e10cSrcweir { 177cdf0e10cSrcweir Pos = MAP_APPFONT ( SETDEF_COL4 , SETDEF_ROW5 ) ; 178cdf0e10cSrcweir Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 179cdf0e10cSrcweir TabStop = TRUE ; 180cdf0e10cSrcweir }; 181cdf0e10cSrcweir String STR_ADDLANG_TITLE 182cdf0e10cSrcweir { 183cdf0e10cSrcweir Text [ en-US ] = "Add User Interface Languages" ; 184cdf0e10cSrcweir }; 185cdf0e10cSrcweir String STR_ADDLANG_LABEL 186cdf0e10cSrcweir { 187cdf0e10cSrcweir Text [ en-US ] = "Available Languages" ; 188cdf0e10cSrcweir }; 189cdf0e10cSrcweir String STR_ADDLANG_INFO 190cdf0e10cSrcweir { 191cdf0e10cSrcweir Text [ en-US ] = "Select languages to be added. Resources for these languages will be created in the library. Strings of the current default user interface language will be copied to these new resources by default." ; 192cdf0e10cSrcweir }; 193cdf0e10cSrcweir}; 194cdf0e10cSrcweir 195cdf0e10cSrcweir// ----------------------------------------------------------------------- 196