| |
|
|
- Page 1 - |
|
 Stephan Sonneborn | Hello together,
has someone of you Experience with Multilanguage-DLLs? I have in a Program the yet with complete unterschiedlichen DLLs resolved (means a with Texten in german, a in english, a in ...) This is by the management since very costly. into DLLs can Yes a Language mitgeben. How can I The then in the program zuordnen? i think, is windows automatically make: one englisches windows becomes then The english Texts reading. but there's Yes alone for english x different Language Settings, which ought to one into DLL to put?
Can too in a german windows english Texts use? |
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 10/04/11 ▲ |
|
|
|
 |
« this Posting watts as Solution marked. » |
|
 Andreas Miethe
 | the Umstellen on another Language is really right simply. thereafter is the loading the Resources always same, alike which Language.
here time an example (functions only on NT-Systemen )
Download |
|
|
| Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...]  | 10/15/11 ▲ |
|
|
 |
|
|
 | Yes, Multi-Language-Strings read goes z.B. with the API FindResourceEx. an further Possibility (Enum) shows this Code me: [...] 
with the LemonEd exists since new The Possibility, too multi-language-Strings directly in The Own Exe incorporate, by RC-Script or compiled as RES. |
|
|
| |
|
|
|
 Stephan Sonneborn | Hello Frank,
thanks for your response and your example. so must I time something accurate keep busy...
is it because fundamentally so, that one The Strings then once with the english Sprachcode and once with the german Sprachcode under of/ one ID in the DLL take off can? |
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 10/05/11 ▲ |
|
|
|
|
 | i think Yes, made have I it yourself not yet. but Versioninfos and icons I had testweise in several Languages installed, the works correct. for my editor I had tested, one the XProfanicons To supplant and me gewundert, that it in the Exe still still the originale Icon displayed has. To me noticed is, that with Nichtangabe of/ one Language in the Scriptfile german installed becomes, during the Profanicon neutral installed is. having then nachgesehen and the Icon twice vorgefunden. as i as Language then neutral taken having, klappte it correctly. and the Icon watts supplant. so becomes the too with the Stringresourcen his, otherwise would The whole Language-distinction Yes futile his. You can The Texts in many Languages at the same time install and at Abrufen later with the Language-ID to determine, in which Language the String loaded becomes. |
|
|
| |
|
|
|
 H.Brill | goes it here only therefore, Menüeinträge or Buttons on The jeweilige Language To Change ? If not To many Entries are, would I it simply with reaches# and Franks XProfan_Datengenerator make. one can Yes a Menüeintrag to Umstellung german/english make. because it me too interested, have I time a german.txt and a english.txt with the editor laid out and the Generator Translated. The strings get one Yes slight again : CompileMarkSeparationCls
Declare Deutsch#, Englisch#,Eintrag$, position%, pos2%
Dim Deutsch#,32
Dim Englisch#,24
Clear Deutsch#
Clear Englisch#
Long Deutsch#,0=1702125892,1725332585,1852141158,1701860220,1701340009,1232891506,225404526,10
Long Englisch#,0=1701603654,1701859196,1632861294,1216111990,1869376613,2573
Print String$(Deutsch#,0)
Print String$(Englisch#, 0)
Waitkey
Dispose Deutsch#, Englisch#
Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 10/06/11 ▲ | |
|
|
|
|
 | disadvantage is, that The Texe so not any more slight editierbar are...
Have the time tested, its no trouble, Strings mehrsprachig into Own Exe incorporate. my Testscript (RC) to:
LANGUAGE 0, SUBLANG_NEUTRAL STRINGTABLE { 1000, "Good morning" 1001, "How are you?" }
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN STRINGTABLE { 1000, "Guten Morgen" 1001, "Wie goes it to you?" }
|
|
|
| |
|
|
|
 Stephan Sonneborn | I Key me time slow ran: If I a defined Language take on wants, must I through FindResourceEx the lever on The DLL, a Zeiger on the ResourcenTyp, a Zeiger on The ID inside the Resourcentyps and the Language mitgeben. means altogether 4 Parameter: CompileMarkSeparation but in which system-DLL find I The FindResourceEx-function?
around the Language as ID To transfer, power The function MakeLangID() from whom Klartexten (z.B. "LANG_GERMAN" and "SUBLANG_GERMAN") a ID. CompileMarkSeparation too position the question: which system-DLL position The MakeLangID available? |
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 10/09/11 ▲ |
|
|
|
|
 Detlef Jagolski | in the Kernel32. CompileMarkSeparation from the API Help:
The MAKELANGID macro creates a language identifier from a primary language identifier and a sublanguage identifier.
WORD MAKELANGID(
USHORT usPrimaryLanguage,// primary language identifier USHORT usSubLanguage// sublanguage identifier );
Parameters
usPrimaryLanguage
Specifies the primary language identifier. Diese parameter can be one of the following values:
LANG_AFRIKAANSLANG_ICELANDIC LANG_ALBANIANLANG_INDONESIAN LANG_ARABICLANG_ITALIAN LANG_BASQUELANG_JAPANESE LANG_BELARUSIANLANG_KOREAN LANG_BULGARIANLANG_LATVIAN LANG_CATALANLANG_LITHUANIAN LANG_CHINESELANG_NEUTRAL LANG_CROATIANLANG_NORWEGIAN LANG_CZECHLANG_POLISH LANG_DANISHLANG_PORTUGUESE LANG_DUTCHLANG_ROMANIAN LANG_ENGLISHLANG_RUSSIAN LANG_ESTONIANLANG_SERBIAN LANG_FAEROESELANG_SLOVAK LANG_FARSILANG_SLOVENIAN LANG_FINNISHLANG_SPANISH LANG_FRENCHLANG_SWEDISH LANG_GERMANLANG_THAI LANG_GREEKLANG_TURKISH LANG_HEBREWLANG_UKRANIAN LANG_HUNGARIANLANG_VIETNAMESE
For a user-defined language, usPrimaryLanguage can be a value in the brat 0x0200 to 0x03FF. All other values are reserved for system use.
usSubLanguage
Specifies the sublanguage identifier. Diese parameter can be one of the following values:
SUBLANG_ARABIC_SAUDI_ARABIASUBLANG_GERMAN SUBLANG_ARABIC_IRAQSUBLANG_GERMAN_SWISS SUBLANG_ARABIC_EGYPTSUBLANG_GERMAN_AUSTRIAN SUBLANG_ARABIC_LIBYASUBLANG_GERMAN_LUXEMBOURG SUBLANG_ARABIC_ALGERIASUBLANG_GERMAN_LIECHTENSTEIN SUBLANG_ARABIC_MOROCCOSUBLANG_ITALIAN SUBLANG_ARABIC_TUNISIASUBLANG_ITALIAN_SWISS SUBLANG_ARABIC_OMANSUBLANG_KOREAN SUBLANG_ARABIC_YEMENSUBLANG_KOREAN_JOHAB SUBLANG_ARABIC_SYRIASUBLANG_NEUTRAL SUBLANG_ARABIC_JORDANSUBLANG_NORWEGIAN_BOKMAL SUBLANG_ARABIC_LEBANONSUBLANG_NORWEGIAN_NYNORSK SUBLANG_ARABIC_KUWAITSUBLANG_PORTUGUESE SUBLANG_ARABIC_UAESUBLANG_PORTUGUESE_BRAZILIAN SUBLANG_ARABIC_BAHRAINSUBLANG_SERBIAN_LATIN SUBLANG_ARABIC_QATARSUBLANG_SERBIAN_CYRILLIC SUBLANG_CHINESE_TRADITIONALSUBLANG_SPANISH SUBLANG_CHINESE_SIMPLIFIEDSUBLANG_SPANISH_MEXICAN SUBLANG_CHINESE_HONGKONGSUBLANG_SPANISH_MODERN SUBLANG_CHINESE_SINGAPORESUBLANG_SPANISH_GUATEMALA SUBLANG_DEFAULTSUBLANG_SPANISH_COSTA_RICA SUBLANG_DUTCHSUBLANG_SPANISH_PANAMA SUBLANG_DUTCH_BELGIANSUBLANG_SPANISH_DOMINICAN_ REPUBLIC SUBLANG_ENGLISH_USSUBLANG_SPANISH_VENEZUELA SUBLANG_ENGLISH_UKSUBLANG_SPANISH_COLOMBIA SUBLANG_ENGLISH_AUSSUBLANG_SPANISH_PERU SUBLANG_ENGLISH_CANSUBLANG_SPANISH_ARGENTINA SUBLANG_ENGLISH_NZSUBLANG_SPANISH_ECUADOR SUBLANG_ENGLISH_EIRESUBLANG_SPANISH_CHILE SUBLANG_ENGLISH_SOUTH_ AFRICASUBLANG_SPANISH_URUGUAY SUBLANG_ENGLISH_JAMAICASUBLANG_SPANISH_PARAGUAY SUBLANG_ENGLISH_CARIBBEANSUBLANG_SPANISH_BOLIVIA SUBLANG_ENGLISH_BELIZESUBLANG_SPANISH_EL_SALVADOR SUBLANG_ENGLISH_TRINIDADSUBLANG_SPANISH_HONDURAS SUBLANG_FRENCHSUBLANG_SPANISH_NICARAGUA SUBLANG_FRENCH_BELGIANSUBLANG_SPANISH_PUERTO_RICO SUBLANG_FRENCH_CANADIANSUBLANG_SWEDISH SUBLANG_FRENCH_SWISSSUBLANG_SWEDISH_FINLAND SUBLANG_FRENCH_LUXEMBOURGSUBLANG_SYS_DEFAULT
For a user-defined sublanguage, usSubLanguage can be a value in the brat 0x20 to 0x3F. All other values are reserved for system use.
Return Values
The return value is a language identifier.
Remarks
The following three combinations of usPrimaryLanguage and usSubLanguage have special meaning:
Primary language IDSublanguage IDMeaning LANG_NEUTRALSUBLANG_NEUTRALLanguage neutral LANG_NEUTRALSUBLANG_DEFAULTUser default language LANG_NEUTRALSUBLANG_SYS_DEFAULTsystem default language
The MAKELANGID macro is defined as follows:
#define MAKELANGID(p, s) ((((WORD) (s)) << 10) | (WORD) (p)) CompileMarkSeparation |
|
|
| XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11 | 10/09/11 ▲ |
|
|
|
|
 Andreas Miethe
 | |
|
| Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...]  | 10/09/11 ▲ |
|
|
|
|
 Detlef Jagolski | what about me thought The Solution of Andreas declared itself through
The MAKELANGID macro is defined as follows:
#define MAKELANGID(p, s) ((((WORD) (s)) << 10) | (WORD) (p))
from alone. |
|
|
| |
|
|
|
 Stephan Sonneborn | Hello Detlef, Hello Andreas, many Thanks for Your Help, but somehow stand I still aufm Hose: I Have a DLL gebastelt with of/ one STRING-Resource into Sprachcodes neutral, GERMAN and ENGLISH.
In all dreien have I Texts hinterlegt: 100,Neutral; 100,Deutsch; 100,English
Through CompileMarkSeparationFindResourceEX(DllName&, ~RT_STRING, PointerAufID, MAKELANGID(~Neutral, ~SUBLANG_Neutral))
FindResourceEX(DllName&, ~RT_STRING, PointerAufID, MAKELANGID(~German, ~SUBLANG_German))
FindResourceEX(DllName&, ~RT_STRING, PointerAufID, MAKELANGID(~English, ~SUBLANG_English_US))re> wished I then on The Texts grab.How should because the Pointer "PointerAufID" looks? |
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 10/10/11 ▲ |
|
|
|
|
 Detlef Jagolski | from the API Using FindResourceEX:
Points to a zero-terminated string specifying the name of the resource. For more information, sea the Remarks section.
CompileMarkSeparation Greeting
Detlef |
|
|
| XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11 | 10/11/11 ▲ |
|
|
|