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