1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28#include "dlgresid.hrc" 29#include "managelang.hrc" 30#include "helpid.hrc" 31 32ModalDialog RID_DLG_MANAGE_LANGUAGE 33{ 34 HelpId = HID_BASICIDE_MANAGE_LANGUAGE ; 35 OutputSize = TRUE ; 36 Size = MAP_APPFONT ( MANAGE_DLG_WIDTH , MANAGE_DLG_HEIGHT ) ; 37 Moveable = TRUE ; 38 Closeable = TRUE ; 39 Text [ en-US ] = "Manage User Interface Languages [$1]" ; 40 FixedText FT_LANGUAGE 41 { 42 Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW1 ) ; 43 Size = MAP_APPFONT ( MANAGE_LB_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ; 44 Text [ en-US ] = "Present Languages" ; 45 }; 46 ListBox LB_LANGUAGE 47 { 48 HelpID = "basctl:ListBox:RID_DLG_MANAGE_LANGUAGE:LB_LANGUAGE"; 49 Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW2 ) ; 50 Size = MAP_APPFONT ( MANAGE_LB_WIDTH , MANAGE_LB_HEIGHT ) ; 51 Border = TRUE; 52 AutoHScroll = TRUE ; 53 }; 54 PushButton PB_ADD_LANG 55 { 56 HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_ADD_LANG"; 57 Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW2 ) ; 58 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 59 TabStop = TRUE ; 60 Text [ en-US ] = "Add..." ; 61 }; 62 PushButton PB_DEL_LANG 63 { 64 HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_DEL_LANG"; 65 Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW3 ) ; 66 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 67 TabStop = TRUE ; 68 Text [ en-US ] = "Delete" ; 69 }; 70 PushButton PB_MAKE_DEFAULT 71 { 72 HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_MAKE_DEFAULT"; 73 Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW4 ) ; 74 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 75 TabStop = TRUE ; 76 Text [ en-US ] = "Default" ; 77 }; 78 FixedText FT_INFO 79 { 80 Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW5 ) ; 81 Size = MAP_APPFONT ( MANAGE_DLG_WIDTH - 2*RSC_SP_FLGR_INNERBORDER_LEFT, INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT ) ; 82 WordBreak = TRUE ; 83 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." ; 84 }; 85 FixedLine FL_BUTTONS 86 { 87 Pos = MAP_APPFONT ( 0 , MANAGE_ROW6 ) ; 88 Size = MAP_APPFONT ( MANAGE_DLG_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ; 89 }; 90 HelpButton PB_HELP 91 { 92 Pos = MAP_APPFONT ( MANAGE_COL2 , MANAGE_ROW7 ) ; 93 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 94 TabStop = TRUE ; 95 }; 96 OKButton PB_CLOSE 97 { 98 Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW7 ) ; 99 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 100 TabStop = TRUE ; 101 DefButton = TRUE ; 102 Text [ en-US ] = "~Close" ; 103 }; 104 String STR_DEF_LANG 105 { 106 Text [ en-US ] = "[Default Language]" ; 107 }; 108 String STR_DELETE 109 { 110 Text [ en-US ] = "~Delete" ; 111 }; 112 String STR_CREATE_LANG 113 { 114 Text [ en-US ] = "<Press 'Add' to create language resources>" ; 115 }; 116}; 117 118QueryBox RID_QRYBOX_LANGUAGE 119{ 120 Title [ en-US ] = "Delete Language Resources" ; 121 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)?"; 122 BUTTONS = WB_OK_CANCEL ; 123 DEFBUTTON = WB_DEF_CANCEL ; 124}; 125 126ModalDialog RID_DLG_SETDEF_LANGUAGE 127{ 128 HelpId = HID_BASICIDE_SETDEFAULT_LANGUAGE ; 129 OutputSize = TRUE ; 130 Size = MAP_APPFONT ( SETDEF_DLG_WIDTH , SETDEF_DLG_HEIGHT ) ; 131 Moveable = TRUE ; 132 Closeable = TRUE ; 133 Text [ en-US ] = "Set Default User Interface Language" ; 134 FixedText FT_DEF_LANGUAGE 135 { 136 Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW1 ) ; 137 Size = MAP_APPFONT ( SETDEF_LB_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ; 138 Text [ en-US ] = "Default language" ; 139 }; 140 ListBox LB_DEF_LANGUAGE 141 { 142 HelpID = "basctl:ListBox:RID_DLG_SETDEF_LANGUAGE:LB_DEF_LANGUAGE"; 143 Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW2 ) ; 144 Size = MAP_APPFONT ( SETDEF_LB_WIDTH , SETDEF_LB_HEIGHT ) ; 145 Border = TRUE; 146 AutoHScroll = TRUE ; 147 }; 148 Control LB_ADD_LANGUAGE 149 { 150 HelpId = HID_BASICIDE_ADDNEW_CONTROL ; 151 Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW2 ) ; 152 Size = MAP_APPFONT ( SETDEF_LB_WIDTH , SETDEF_LB_HEIGHT ) ; 153 }; 154 FixedText FT_DEF_INFO 155 { 156 Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW3 ) ; 157 Size = MAP_APPFONT ( SETDEF_LB_WIDTH, INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT ) ; 158 WordBreak = TRUE ; 159 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." ; 160 }; 161 FixedLine FL_DEF_BUTTONS 162 { 163 Pos = MAP_APPFONT ( 0 , SETDEF_ROW4 ) ; 164 Size = MAP_APPFONT ( SETDEF_DLG_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ; 165 }; 166 OKButton PB_DEF_OK 167 { 168 Pos = MAP_APPFONT ( SETDEF_COL2 , SETDEF_ROW5 ) ; 169 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 170 TabStop = TRUE ; 171 DefButton = TRUE ; 172 }; 173 CancelButton PB_DEF_CANCEL 174 { 175 Pos = MAP_APPFONT ( SETDEF_COL3 , SETDEF_ROW5 ) ; 176 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 177 TabStop = TRUE ; 178 }; 179 HelpButton PB_DEF_HELP 180 { 181 Pos = MAP_APPFONT ( SETDEF_COL4 , SETDEF_ROW5 ) ; 182 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 183 TabStop = TRUE ; 184 }; 185 String STR_ADDLANG_TITLE 186 { 187 Text [ en-US ] = "Add User Interface Languages" ; 188 }; 189 String STR_ADDLANG_LABEL 190 { 191 Text [ en-US ] = "Available Languages" ; 192 }; 193 String STR_ADDLANG_INFO 194 { 195 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." ; 196 }; 197}; 198 199// ----------------------------------------------------------------------- 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238