How to read the configuration options in the Management Client

I need to read the configuration data in the Administration environment so that I can set the language for my plugin according to it in all three environments (Service, Administration and SmartClient). I tried many options but none worked. Please… Help

I believe you are looking for a bit of configuration data that does not exist. Let me explain. In XProtect you do not have a “system language”, you can have one Smart Client running in one language, the next Smart Client running another language and so on.. The same is true for the Manangement Application / Management Client. Right now there is 12 supported languages in the “Manager” and 29 supported languages in the Smart Client. Any of these clients can change the language very quickly and without causing any chnage in the averall system.

If you are developing a plugin and want to detect which language is currently used please see this knowledge base article. (https://force.milestonesys.com/support/MccRedir?art=000001166&lang=en_US)

That makes sense. However, I still see a problem. I’m using all SmartClient, Administration and Service environments, and when it comes to displaying the context menus for the elemements on the Milestone maps this configuration is taken from the Service thread, whose language does not necesarily correspond to the language used at the SmartClient where it is being displayed. How could I make both languages to be consistent? It is not nice to have part of the UI in one language and the rest in another.

The Smart Client plugin could when communicating with the Event Server plugin include the information about the language it is currently using.

¿How can the Smart Client plugin communicate with the Event Server plugin? As you said, there can be many SmartClients but only one Event Server. Even if I implemented a system to do such communication ¿How will I know on which SmartClient it is showing the context menus on the map?

When implementing multi-language on my plugin I have two problems: one is that with the context menus on the map, and the other is related to the itemManagers labels on the Administration Client beacuse when I create them the language configuration does not seem to have been accomplished yet, and the info on the tree nodes of the Administration Client are shown in the default language. I can more or less deal with the second part changing those label after the environment is completely loaded and the configuration is ready, but I have no clue how to dinamically change the language on the context menus over the map according to the language selected by the SmartClient user.

You are right. When using map and the context menus there is no language support in MIP. I was not considering the map use when I was optimistically trying to outline use of language.

I think language support here would make very much sense, it is a very good idea. I will approach Milestone Product Managment with a request for an enhancement to put this in the wish list for future development, that Milestone should support languages in MIP items in maps.