Ferran writes in to ask:
I would like to know how to develop a UI using JClient/Swing that supports internationalization for a multi-language user interface.
As far a localized prompts, tooltips, format masks, etc., ADF Business Components and JClient cooperate to provide that support for your Swing applications out of the box. We do this by automatically saving these so-called "UI Hints" in locale-specific Java message bundle files. The ADF BC wizards manage the default message bundle file for you, and then you need to manually provide the translated versions.
For example, if you define the prompts, tooltips, and format masks as the entity object level, then for an example entity object named com.yourcompany.hr.Employee you would end up having a com.yourcompany.hr.common.EmployeeImplMsgBundle class with your strings in it. You edit the strings through the Entity Object wizard's panels for "Control Hints" on each attribute, but we under the covers save the information for you in this resource bundle.
Let's say that your customer uses Spanish as the default locale, they will type in prompts and tooltips and format masks that make sense for Spain. If they also need to support Portugese, or English, they would create a message bundle file com.yourcompany.hr.common.EmployeeImplMsgBundle_pt or com.yourcompany.hr.common.EmployeeImplMsgBundle_en that extends the base message bundle and adds the strings that need to be translated.
If you download not-yet-documented example application # 23 from my blog samples page, you can experiment with setting the locale between US and IT to see english prompts and italian prompts in a JClient panel to make the ideas here more concrete.
11:57:27 AM
|
|