Removed obsolete references to the Languages array.

This commit is contained in:
Francois Gouget 2000-07-23 19:32:45 +00:00 committed by Alexandre Julliard
parent fea6d13bd8
commit d03a341797
3 changed files with 0 additions and 36 deletions

View File

@ -150,12 +150,6 @@ VOID LANGUAGE_SelectByNumber(UINT num)
if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
Globals.hMainMenu = hMainMenu;
#ifdef WINELIB
/* Update system menus */
for (i = 0; Languages[i].name && lstrcmp(szLanguage, Languages[i].name);) i++;
if (Languages[i].name) Options.language = i;
#endif
/* specific for Clock: */
LANGUAGE_UpdateMenuCheckmarks();
@ -180,10 +174,6 @@ VOID LANGUAGE_Init(VOID)
{
CHAR szBuffer[MAX_PATHNAME_LEN];
#ifdef WINELIB
Globals.lpszLanguage = (LPSTR)Languages[Options.language].name;
#endif
if (Globals.lpszLanguage == "En") {
PROFILE_GetWineIniString("programs", "language", "En", szBuffer,
sizeof(szBuffer));

View File

@ -127,13 +127,6 @@ VOID LANGUAGE_SelectByNumber(UINT num)
/* Destroy old menu */
if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
Globals.hMainMenu = hMainMenu;
#ifdef WINELIB
/* Update system menus */
for (i = 0; Languages[i].name && lstrcmp(lang, Languages[i].name);) i++;
if (Languages[i].name) Options.language = i;
#endif
}
VOID LANGUAGE_DefaultHandle(WPARAM wParam)
@ -145,9 +138,6 @@ VOID LANGUAGE_DefaultHandle(WPARAM wParam)
VOID LANGUAGE_Init(VOID)
{
#ifdef WINELIB
Globals.lpszLanguage = Languages[Options.language].name;
#else
CHAR buffer[MAX_PATHNAME_LEN], *p;
#ifndef LCC
@ -157,6 +147,5 @@ VOID LANGUAGE_Init(VOID)
Globals.lpszLanguage = p = LocalLock(LocalAlloc(LMEM_FIXED, lstrlen(buffer)+1));
strcpy(p, buffer);
/* hmemcpy(p, buffer, 1 + lstrlen(buffer)); */
#endif
}

View File

@ -70,7 +70,6 @@ VOID STRING_SelectLanguageByNumber(UINT num)
CHAR caption[MAX_STRING_LEN];
CHAR item[MAX_STRING_LEN];
HMENU hMainMenu;
HLOCAL hGroup;
/* Select string table */
Globals.wStringTableOffset = num * 0x100;
@ -119,20 +118,6 @@ VOID STRING_SelectLanguageByNumber(UINT num)
/* Destroy old menu */
if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
Globals.hMainMenu = hMainMenu;
#ifdef WINELIB
/* Update system menus */
for (i = 0; Languages[i].name && lstrcmp(lang, Languages[i].name);) i++;
if (Languages[i].name) Options.language = i;
GetSystemMenu(Globals.hMainWnd, TRUE);
for (hGroup = GROUP_FirstGroup(); hGroup;
hGroup = GROUP_NextGroup(hGroup))
{
GROUP *group = LocalLock(hGroup);
GetSystemMenu(group->hWnd, TRUE);
}
#endif
}
/* Local Variables: */