Rules and Standards

CAA V5 NLS Compliance Rules

Standard NLS rules for CAA V5 applications

Technical Article

Abstract

Messages in V5 code should support multiple languages (National Language Support, or NLS), including Double-Byte encoded languages such as Japanese or Korean. For this to happen, strings are externalized in so-called PII files, named *.CATNls and *_en.properties depending on the underlying V5 infrastructure. Here is the set of rules that the developer should comply with in order for externalization to work properly.


NLS Dependent Data

NLS-dependent data should never be stored as such in any model, except if it was entered manually by the user. In case of NLS-dependent strings made from different parts, the string should not be stored as result, and it should be dynamically computed. It is safe to store NLS keys, allowing to retrieve dynamically the associated language-dependent string.

As a result of this rule, do not use the SetName() method for a feature which would store a language-dependent name in the model for the concerned feature factory.

[Top]

Strings in Code

[Top]

Resource File Contents


History

Version: 1.0 [Dec 2004] Document created
[Top]

Copyright © 1994-2004, Dassault Systèmes. All rights reserved.