bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: windres language problem


From: Hartmut Birr
Subject: RE: windres language problem
Date: Sun, 15 Jul 2001 19:00:41 +0200

Windres has a bug in the LANGUAGE macro.
The definition of language ids is (SUBLANG_XXX << 10) + LANG_XXX.
Windres uses (SUBLANG_XXX << 8) + LANG_XXX. 

- Hartmut
  
> In a resource file are to statements with different languages:
> 
> ID_MAIN MENU
> LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
> BEGIN
>       POPUP "&Datei"
> ...
> END
> 
> ID_MAIN MENU
> LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
> BEGIN
>       POPUP "&File"
> ...
> END
> 
> Compiled with M$VS 6.0, the application loads under german winnt the "Datei" 
> menu. 
> When I set the language to english (with control panel), the application 
> loads the "File" menu. 
> 
> Compiled with gcc and windres, it loads the "Datei" menu. The control panel 
> settings has no effect.
> The version of windres is 2.11.90.
> 
> What's wrong?
> 
> Best regards 
> Hartmut Birr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]