From 68f067fecf589ad0637229ce4a2e1185f140465a Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 14 Mar 2014 21:31:42 +0000 Subject: LangMan: - all langpacks stored in Languages folders - langpacks from root will be moved in Languages folders - added langpack changing at runtime - added langpack loading on miranda start git-svn-id: http://svn.miranda-ng.org/main/trunk@8607 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/LangMan/res/resource.rc | 209 +++++++++++++--------------------------- 1 file changed, 66 insertions(+), 143 deletions(-) (limited to 'plugins/LangMan/res') diff --git a/plugins/LangMan/res/resource.rc b/plugins/LangMan/res/resource.rc index a5a527d59d..ac2d4a14c2 100644 --- a/plugins/LangMan/res/resource.rc +++ b/plugins/LangMan/res/resource.rc @@ -1,4 +1,4 @@ -//Microsoft Developer Studio generated resource script. +// Microsoft Visual C++ generated resource script. // #include "..\src\resource.h" @@ -13,179 +13,100 @@ #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// -// Englisch (GB) resources +// Neutral resources -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK -#pragma code_page(1252) -#endif //_WIN32 +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU) +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +#pragma code_page(1251) -#ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // -// TEXTINCLUDE +// Dialog // -1 TEXTINCLUDE +IDD_OPT_LANG DIALOGEX 0, 0, 301, 232 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD +EXSTYLE WS_EX_CONTROLPARENT +FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN - "..\\src\\resource.h\0" + CONTROL "",IDC_LANGLIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_GROUP | WS_TABSTOP,2,43,299,61 + GROUPBOX "",IDC_LANGINFOFRAME,2,108,298,95,WS_GROUP + RTEXT "Author(s):",IDC_LANGAUTHORSLABEL,5,118,76,9,SS_NOPREFIX + EDITTEXT IDC_LANGAUTHORS,86,118,208,18,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL + RTEXT "E-mail:",IDC_LANGEMAILLABEL,5,139,76,8,SS_NOPREFIX + CONTROL "",IDC_LANGEMAIL,"Hyperlink",WS_TABSTOP,86,139,208,10 + RTEXT "Last modified using:",IDC_LANGMODUSINGLABEL,9,152,72,9,SS_NOPREFIX + EDITTEXT IDC_LANGMODUSING,86,152,196,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + RTEXT "Date:",IDC_LANGDATELABEL,5,165,76,9,SS_NOPREFIX + EDITTEXT IDC_LANGDATE,86,165,66,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER + RTEXT "Version:",IDC_LANGVERSIONLABEL,161,165,39,9,SS_NOPREFIX | NOT WS_VISIBLE + EDITTEXT IDC_LANGVERSION,205,165,77,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_VISIBLE | NOT WS_BORDER + RTEXT "Locale:",IDC_LANGLOCALELABEL,5,177,76,9,SS_NOPREFIX + EDITTEXT IDC_LANGLOCALE,86,177,196,12,ES_READONLY | NOT WS_BORDER + CONTROL "Download more Language Packs",IDC_MORELANG,"Hyperlink",WS_GROUP | WS_TABSTOP | 0x1,2,207,299,10 + CTEXT "Please restart Miranda NG for your changes to take full effect.",IDC_RESTART,5,218,296,9,SS_NOPREFIX | NOT WS_VISIBLE + LTEXT "Static",IDC_LANGROOTFOLDER,7,10,277,25 + GROUPBOX "Langpack root folder",IDC_STATIC,2,0,299,39 END -2 TEXTINCLUDE -BEGIN - "#include \r\n" - "\0" -END -3 TEXTINCLUDE +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO BEGIN - "\r\n" - "\0" + IDD_OPT_LANG, DIALOG + BEGIN + VERTGUIDE, 2 + VERTGUIDE, 81 + VERTGUIDE, 86 + VERTGUIDE, 282 + VERTGUIDE, 294 + BOTTOMMARGIN, 227 + END END - #endif // APSTUDIO_INVOKED +#endif // Neutral resources ///////////////////////////////////////////////////////////////////////////// -// -// Icon -// -IDI_RELOAD ICON "reload.ico" +///////////////////////////////////////////////////////////////////////////// +// English (United Kingdom) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK +#pragma code_page(1252) + +#ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // -// Dialog +// TEXTINCLUDE // -/*IDD_UPDATENOTIFY DIALOGEX 0, 0, 259, 115 -STYLE DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | - WS_CAPTION | WS_SYSMENU -CAPTION "Language Pack Update Now Available" -FONT 8, "MS Shell Dlg", 0, 0, 0x1 +1 TEXTINCLUDE BEGIN - LTEXT "A new version of a Language Pack is now available. Click the install button to download and install this new update.", - IDC_STATIC, 8, 7, 243, 21, SS_NOPREFIX - CONTROL "Language:", IDC_LANGUAGELABEL, "Static", SS_SIMPLE | - SS_NOPREFIX | WS_GROUP, 8, 29, 65, 8 - EDITTEXT IDC_LANGUAGE, 78, 29, 173, 8, ES_AUTOHSCROLL | ES_READONLY | - NOT WS_BORDER - CONTROL "Current:", IDC_STATIC, "Static", SS_SIMPLE | SS_NOPREFIX | - WS_GROUP, 8, 43, 65, 8 - EDITTEXT IDC_CURRENTVERSION, 78, 43, 173, 8, ES_AUTOHSCROLL | - ES_READONLY | NOT WS_BORDER - CONTROL "New:", IDC_NEWVERSIONLABEL, "Static", SS_SIMPLE | - SS_NOPREFIX | WS_GROUP, 8, 58, 65, 8 - EDITTEXT IDC_NEWVERSION, 78, 58, 173, 8, ES_AUTOHSCROLL | ES_READONLY | - NOT WS_BORDER - PUSHBUTTON "&Install Now", IDOK, 7, 73, 66, 15, WS_GROUP - CONTROL "", IDC_STATIC, "Static", SS_ETCHEDHORZ, 7, 92, 245, 1 - DEFPUSHBUTTON "Close", IDCANCEL, 202, 96, 50, 15 + "..\\src\\resource.h\0" END -IDD_DOWNLOADLANG DIALOG DISCARDABLE 0, 0, 200, 126 -STYLE DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | - WS_CAPTION | WS_SYSMENU -CAPTION "Select your language" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "Miranda NG is available in many languages.\nHere is a list of all available languages of the file listing, please select your native &language:", - IDC_STATIC, 5, 5, 189, 26 - COMBOBOX IDC_LANGCOMBO, 46, 36, 106, 126, CBS_DROPDOWNLIST | - CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP - CONTROL "Download &all languages", IDC_DOWNLOADALL, "Button", - BS_AUTOCHECKBOX | WS_TABSTOP, 46, 53, 148, 10 - LTEXT "Note: This will download and install the newest language pack available for the selected language. There might be language packs from other authors available on the file listing.", - IDC_STATIC, 5, 69, 189, 34, SS_NOPREFIX | WS_DISABLED - CTEXT "", IDC_LOADING, 1, 109, 86, 8, SS_NOPREFIX | SS_CENTERIMAGE | - NOT WS_VISIBLE - PUSHBUTTON "OK", IDOK, 89, 106, 50, 14, WS_DISABLED - DEFPUSHBUTTON "Cancel", IDCANCEL, 144, 106, 50, 15 -END*/ - -IDD_OPT_LANG DIALOGEX 0, 0, 301, 227 -STYLE DS_FIXEDSYS | WS_CHILD -EXSTYLE WS_EX_CONTROLPARENT -FONT 8, "MS Shell Dlg" +2 TEXTINCLUDE BEGIN - CONTROL "", IDC_LANGLIST, "SysListView32", LVS_REPORT | - LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | - WS_BORDER | WS_GROUP | WS_TABSTOP, 2, 3, 299, 61 - GROUPBOX "", IDC_LANGINFOFRAME, 2, 68, 298, 119, WS_GROUP - RTEXT "Author(s):", IDC_LANGAUTHORSLABEL, 5, 78, 66, 9, SS_NOPREFIX - EDITTEXT IDC_LANGAUTHORS, 74, 78, 220, 18, ES_MULTILINE | - ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | - WS_VSCROLL - RTEXT "E-mail:", IDC_LANGEMAILLABEL, 5, 99, 66, 8, SS_NOPREFIX - CONTROL "", IDC_LANGEMAIL, "Hyperlink", WS_TABSTOP, 76, 99, 207, 10 - RTEXT "Last modified using:", IDC_LANGMODUSINGLABEL, 5, 112, 66, 9, - SS_NOPREFIX - EDITTEXT IDC_LANGMODUSING, 75, 112, 207, 12, ES_AUTOHSCROLL | - ES_READONLY | NOT WS_BORDER - RTEXT "Date:", IDC_LANGDATELABEL, 5, 125, 66, 9, SS_NOPREFIX - EDITTEXT IDC_LANGDATE, 75, 125, 66, 12, ES_AUTOHSCROLL | ES_READONLY | - NOT WS_BORDER - RTEXT "Version:", IDC_LANGVERSIONLABEL, 150, 125, 39, 9, SS_NOPREFIX | - NOT WS_VISIBLE - EDITTEXT IDC_LANGVERSION, 194, 125, 88, 12, ES_AUTOHSCROLL | - ES_READONLY | NOT WS_VISIBLE | NOT WS_BORDER - RTEXT "Locale:", IDC_LANGLOCALELABEL, 5, 137, 66, 9, SS_NOPREFIX - EDITTEXT IDC_LANGLOCALE, 75, 137, 207, 12, ES_READONLY | NOT WS_BORDER - /* RTEXT "Not included:", IDC_LANGNOTINCLUDEDLABEL, 5, 150, 66, 10, - SS_NOPREFIX - LISTBOX IDC_LANGNOTINCLUDED, 75, 150, 219, 33, NOT LBS_NOTIFY | - LBS_SORT | LBS_HASSTRINGS | LBS_USETABSTOPS | - LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | NOT - WS_BORDER | WS_VSCROLL | WS_TABSTOP, WS_EX_TRANSPARENT*/ - CONTROL "Download more Language Packs", IDC_MORELANG, "Hyperlink", - WS_GROUP | WS_TABSTOP | 0x1, 2, 189, 299, 10 - CTEXT "Please restart Miranda NG for your changes to take effect.", - IDC_RESTART, 5, 200, 296, 9, SS_NOPREFIX | NOT WS_VISIBLE - /* CONTROL "Check for new &versions of Language Packs periodically", - IDC_ENABLEAUTOUPDATES, "Button", BS_AUTOCHECKBOX | - WS_GROUP | WS_TABSTOP, 2, 214, 209, 10 - PUSHBUTTON "&Download Language", IDC_DOWNLOADLANG, 213, 213, 86, 14, - WS_GROUP*/ + "#include \r\n" + "\0" END -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO MOVEABLE PURE +3 TEXTINCLUDE BEGIN - /* IDD_UPDATENOTIFY, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 252 - VERTGUIDE, 74 - TOPMARGIN, 7 - END - - IDD_DOWNLOADLANG, DIALOG - BEGIN - VERTGUIDE, 5 - VERTGUIDE, 46 - VERTGUIDE, 194 - HORZGUIDE, 106 - HORZGUIDE, 121 - END*/ - - IDD_OPT_LANG, DIALOG - BEGIN - VERTGUIDE, 2 - VERTGUIDE, 70 - VERTGUIDE, 75 - VERTGUIDE, 282 - VERTGUIDE, 294 - HORZGUIDE, 160 - END + "\r\n" + "\0" END + #endif // APSTUDIO_INVOKED -#endif // Englisch (GB) resources +#endif // English (United Kingdom) resources ///////////////////////////////////////////////////////////////////////////// @@ -196,5 +117,7 @@ END // Generated from the TEXTINCLUDE 3 resource. // + ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED + -- cgit v1.2.3