Authors: Américo José Melo <mmodem00@netvisao.pt>, Francois Gouget <fgouget@codeweave...
[wine] / programs / progman / license.c
1 /*
2  * Copyright 1996 Ulrich Schmid
3  * Copyright 2002 Sylvain Petreolle
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #include "windows.h"
21 #include "license.h"
22
23 #if 0
24 static LICENSE* SelectLanguage(LPCSTR Language)
25 {
26   if (!lstrcmp(Language, "Cz")) return(&WineLicense_Cz);
27   if (!lstrcmp(Language, "Da")) return(&WineLicense_Da);
28   if (!lstrcmp(Language, "De")) return(&WineLicense_De);
29   if (!lstrcmp(Language, "En")) return(&WineLicense_En);
30   if (!lstrcmp(Language, "Eo")) return(&WineLicense_Eo);
31   if (!lstrcmp(Language, "Es")) return(&WineLicense_Es);
32   if (!lstrcmp(Language, "Fi")) return(&WineLicense_Fi);
33   if (!lstrcmp(Language, "Fr")) return(&WineLicense_Fr);
34   if (!lstrcmp(Language, "Hu")) return(&WineLicense_Hu);
35   if (!lstrcmp(Language, "It")) return(&WineLicense_It);
36   if (!lstrcmp(Language, "Ko")) return(&WineLicense_Ko);
37   if (!lstrcmp(Language, "No")) return(&WineLicense_No);
38   if (!lstrcmp(Language, "Pl")) return(&WineLicense_Pl);
39   if (!lstrcmp(Language, "Po")) return(&WineLicense_Po);
40   if (!lstrcmp(Language, "Va")) return(&WineLicense_Va);
41   return(&WineLicense_En);
42 }
43 #endif
44
45 VOID WineLicense(HWND Wnd)
46 {
47 /*  LICENSE *License = SelectLanguage(Language); */
48 LICENSE *License = &WineLicense_En;
49
50   MessageBox(Wnd, License->License, License->LicenseCaption,
51              MB_ICONINFORMATION | MB_OK);
52 }
53
54 VOID WineWarranty(HWND Wnd)
55 {
56 /*  LICENSE *License = SelectLanguage(Language); */
57 LICENSE *License = &WineLicense_En;
58
59   MessageBox(Wnd, License->Warranty, License->WarrantyCaption,
60              MB_ICONEXCLAMATION | MB_OK);
61 }