Skip to main content

​With the usoft-zero template default, a multi-language application can be started automatically in the desired language. English and Dutch have been predefined. When browsing the UI, pass one of these query parameters in the URL, for English and Dutch respectively:

language=en
language=nl

You can add more languages as appropriate by populating the Language section in Definer.

The following table shows 3 different ways to set or switch the application language in an application based on usoft-zero. They take precedence in the order shown:

language switch The usoft-zero UI comes with a language switch button on the menu and on the cover page. Click to switch the language.
URL query parameter The application can be browsed with a language query parameter as explained in the text above this table.
extension property You can add a "language” extension property in Definer and then assign a user-specific language setting to each runtime user in Authorizer. This is explained in the text below this table.

At development time, USoft Definer allows you to declare extension properties for your application. At runtime, in USoft Authorizer, for each extension property, you can assign a user-specific value for each runtime user.

For details, see Schemas and extension properties.

Here is a quick way to create an extension property called "language” in USoft Definer:

invoke xml.import with
select '<Extension_Properties documentName="Extension Properties">
<T_EXTENSION_PROP NAME="language" CONTEXT="U" DEFAULT_VALUE="en" DESCRIPTION="" ACTIVE="Y"/>
</Extension_Properties>';
commit;

 

Be the first to reply!

Reply