Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Locale settings in proe

apilikov

New member
Hi all and here is my problem.


I'm from Russia and I'm very interested that my protoolkit app could speak with end user in russian. But when I'm trying to add my menus in proe UI I can see only bad looking symbols. And proe tells for this only that


!%CDPro/ENGINEER could not initialize the specified locale "CYRILLIC" and has reverted to running in English.


This info I have read in trail.txt. My app doesn't perfom any action to turn the proe in cyrillic mode and I have no idea where proe has got info about cyrillic locale settings. Please explain me how can I make proe to understand the my locale settings.


Thanks.


Anatoly
 
apilikov,


Here is the documentation for resource files and their location. The same holds true for message files:
<A name=55></A>A resource file must be called dialog_name.res where dialog_name is the name of the dialog. Resource files used by the Pro/TOOLKIT application must be stored under the "text" directory referred to by the "text_dir" statement in the Pro/TOOLKIT registry file. If the application uses language specific directories, such as "usascii" for english, the resource file must be located in text/<language>/resource. There must be one resource file for each language supported by the application. If the application supports only one language, it may be located in text/resource.
 
williaps said:
apilikov,


Here is the documentation for resource files and their location. The same holds true for message files:
<A name=55></A>A resource file must be called dialog_name.res where dialog_name is the name of the dialog. Resource files used by the Pro/TOOLKIT application must be stored under the "text" directory referred to by the "text_dir" statement in the Pro/TOOLKIT registry file. If the application uses language specific directories, such as "usascii" for english, the resource file must be located in text/<language>/resource. There must be one resource file for each language supported by the application. If the application supports only one language, it may be located in text/resource.


ok but this chapter in documentation describes the dialog programming. I don't create dialogs. Now I'm only trying to localize my menus which are th same as as "File" and so on.
 
apilikov,


You are correct that this documentation is for dialog programming but (as I stated in my previous post) the same concept holds true for message files. You must have a language specific directory with your language specific message file.
 
williaps said:
apilikov,


You are correct that this documentation is for dialog programming but (as I stated in my previous post) the same concept holds true for message files. You must have a language specific directory with your language specific message file.


Ok and how can I refer from my message file to resource file. Or this reference should be made in my protoolkit code?
 
You should make this reference in the code. If I were you I would name all the language files the same and let Pro/E select which one to load based on it's locale setting. That way you don't have to determine which res file to load. I don't even think it is possible to get the locale setting in Pro/TOOLKIT. If you want more information I would create a ticket with PTC tech support.
 
williaps said:
You should make this reference in the code. If I were you I would name all the language files the same and let Pro/E select which one to load based on it's locale setting. That way you don't have to determine which res file to load. I don't even think it is possible to get the locale setting in Pro/TOOLKIT. If you want more information I would create a ticket with PTC tech support.


williaps, I'll explain you what I really want.


I'm developing protoolkit app which is the part of large COM library, which gives the easy unified VB access to most popular CADs. And as one of the functions I must implement the proe menu adding as a library function. And of course I need as more info as it possible. And if it is not a problem for you to get required info it would be a big luck for me.
 
Read the API Wizard under User's Guide->Menus->Menu Bar Buttons and Menus. That section will explain how to create menus in the menubar.
 
williaps said:
Read the API Wizard under User's Guide->Menus->Menu Bar Buttons and Menus. That section will explain how to create menus in the menubar.


What is the ticket you are talking about in your previous message?
 
Hi,
If i understood correctly, you wants menus to appear in russian. First of all, to get locale, you can use win32 apis like getLocale.
proe determines language from LANG environment variable. If you need proe in a particular lang, you should install corresponding language packs while installing proe.
You can write your application to supports MBCS(Multi byte character support) and use string tables to load strings in runtime. The resource specific Dll can contain these string tables. These way, you can support multiple languages.
 

Sponsor

Back
Top