![]() |
Programm durch .dll Datei mehrsprachig machen
Hiho :)
ich habe gehört, dass man ein Programm mit einer *.dll Datei mehrsprachig machen kann. ich weiss, dass sowas auch nur einer ini geht, aber dort lönnte der Benuzter dann die Sprache ändern, was bei einer .dll Datei nicht geht, oder? Weiss wer, wie ich sowas angehen könnte ? |
Re: Programm durch .dll Datei mehrsprachig machen
Üblicherweise geht das über Ressourcen-DLLs. In Delphi gibt es aber noch eine andere Variante. Dort kannst du insbesondere Strings als Ressourcen-Strings in eine DLL einkompilieren, die danach nicht mehr die Endung DLL sondern ein Sprachkürzel hat. Dazu findet sich etwas in der OH. Ich kenne nur nicht das deutsche Stichwort.
Achso, echte reine Ressourcen-DLLs kannste mit Delphi sowieso vergessen. Möglicherweise kann der Linker das, aber es würde wiedermal erfordern die RTL umzuschreiben. Tip: Wenn du dein Programm richtig lokalisieren willst, solltest du komplett auf Unicode zurückgreifen. Und zwar sowohl in der GUI als auch in den Ressourcen. Hier noch schnell der Ausschnitt aus meiner OH - leider Englisch :-\ ... In der OH steht: The most obvious task in localizing an application is translating the strings that appear in the user interface. To create an application that can be translated without altering code everywhere, the strings in the user interface should be isolated into a single module. Delphi automatically creates a .DFM file that contains the resources for your menus, dialogs, and bitmaps. In addition to these obvious user interface elements, you will need to isolate any strings, such as error messages, that you present to the user. String resources are not included in the .DFM file. You can isolate them by declaring constants for them using the resourcestring keyword. For more information about resource string constants, see the Object Pascal Language Guide. It is best to include all resource strings in a single, separate unit. For information on using resource DLLs in your applications see "Creating resource DLLs” and "Using resource DLLs.” |
Re: Programm durch .dll Datei mehrsprachig machen
Schau dir mal
![]() |
Re: Programm durch .dll Datei mehrsprachig machen
Gut danke, ich werde es mir mal anschauen.
|
Re: Programm durch .dll Datei mehrsprachig machen
Zitat:
|
Re: Programm durch .dll Datei mehrsprachig machen
Zitat:
Fast 10 Jahre Delphi-Entwicklung und unermütliches Googeln. :coder2: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:47 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz