Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2007.03.11;
Скачать: [xml.tar.bz2];

Вниз

Мультиязычный интерфейс с помощью translation manager   Найти похожие ветки 

 
karmax   (2007-01-16 12:06) [0]

С помощью translation manager в delphi 7 и 8 легко создал доролнительные языки но как их задействлвать нигде не написано.


 
Правильный Вася   (2007-01-16 12:32) [1]

это утверждение или вопрос?


 
DiamondShark ©   (2007-01-16 15:08) [2]


> это утверждение или вопрос?

Ни то, ни другое. Это грязная инсинуация.

Using resource DLLs
The executable, DLLs, and packages that make up your application contain all the necessary resources. However, to replace those resources by localized versions, you need only ship your application with localized resource DLLs that have the same name as your EXE, DLL, or BPL files.
When your application starts up, it checks the locale of the local system. If it finds any resource DLLs with the same name as the EXE, DLL, or BPL files it is using, it checks the extension on those DLLs. If the extension of the resource module matches the language and country of the system locale, your application will use the resources in that resource module instead of the resources in the executable, DLL, or package. If there is not a resource module that matches both the language and the country, your application will try to locate a resource module that matches just the language. If there is no resource module that matches the language, your application will use the resources compiled with the executable, DLL, or package.

Dynamic switching of resource DLLs
In addition to locating a resource DLL at application startup, it is possible to switch resource DLLs dynamically at runtime. To add this functionality to your own applications, you need to include the ReInit unit in your uses statement. (ReInit is located in the Richedit sample in the Demos directory.) To switch languages, you should call LoadResourceModule, passing the LCID for the new language, and then call ReinitializeForms.


 
karmax   (2007-01-17 12:47) [3]

Спасибо. В 8-ом Delphi reinit.pas не компилируется. В 7-ом Delphi example richedit компилится но язык в runtime не меняется. Мне нужно в 8-ом Delphi т.к. 7-ой не понимает нужный мне язык. Может проще будет менять все captionы из процедуры?



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2007.03.11;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.053 c
15-1170401592
boriskb
2007-02-02 10:33
2007.03.11
Пусть всегда будет солнце :)


10-1130156484
DimMih
2005-10-24 16:21
2007.03.11
В чём разница между COM и ActiveX?


15-1171365764
Ega23
2007-02-13 14:22
2007.03.11
как по-аглицки будет


2-1171789338
DTR
2007-02-18 12:02
2007.03.11
Ошибка!!! Word


4-1162292887
dmirror
2006-10-31 14:08
2007.03.11
ProcessMessages





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский