Jean-Claude Batista
[wine/multimedia.git] / programs / progman / license.c
blobb781b653c2822d99413543f8c876c0fc5b56a4a4
1 #include "windows.h"
2 #include "license.h"
4 static LICENSE* SelectLanguage(LPCSTR Language)
6 #if 0
7 if (!lstrcmp(Language, "Cz")) return(&WineLicense_Cz);
8 if (!lstrcmp(Language, "Da")) return(&WineLicense_Da);
9 if (!lstrcmp(Language, "De")) return(&WineLicense_De);
10 if (!lstrcmp(Language, "En")) return(&WineLicense_En);
11 if (!lstrcmp(Language, "Eo")) return(&WineLicense_Eo);
12 if (!lstrcmp(Language, "Es")) return(&WineLicense_Es);
13 if (!lstrcmp(Language, "Fi")) return(&WineLicense_Fi);
14 if (!lstrcmp(Language, "Fr")) return(&WineLicense_Fr);
15 if (!lstrcmp(Language, "Hu")) return(&WineLicense_Hu);
16 if (!lstrcmp(Language, "It")) return(&WineLicense_It);
17 if (!lstrcmp(Language, "Ko")) return(&WineLicense_Ko);
18 if (!lstrcmp(Language, "No")) return(&WineLicense_No);
19 if (!lstrcmp(Language, "Pl")) return(&WineLicense_Pl);
20 if (!lstrcmp(Language, "Po")) return(&WineLicense_Po);
21 if (!lstrcmp(Language, "Va")) return(&WineLicense_Va);
22 #endif
23 return(&WineLicense_En);
26 VOID WineLicense(HWND Wnd, LPCSTR Language)
28 LICENSE *License = SelectLanguage(Language);
30 MessageBox(Wnd, License->License, License->LicenseCaption,
31 MB_ICONINFORMATION | MB_OK);
34 VOID WineWarranty(HWND Wnd, LPCSTR Language)
36 LICENSE *License = SelectLanguage(Language);
38 MessageBox(Wnd, License->Warranty, License->WarrantyCaption,
39 MB_ICONEXCLAMATION | MB_OK);