When you create a unit, the Unit Information window provides
a list that allows you to select a specific language for the unit.
The default language for a new unit is the language of its owner unit.
Procedure
- Right-click the unit in the browser, and
then select .
- When the Unit Information window is displayed,
select the language from the list.
- Click OK.
- When you are asked to confirm the change,
click Yes.
Results
If you are changing the language of a unit
that contains subunits, IBM® Rational® Rhapsody® asks
you if you also would like to change the language of all the contained
subunits.
Note: As is the case for project migration,
if you change the language of a unit, you do not permanently lose
any language-specific features of the unit. These language-specific
characteristics arel not displayed, and any code generation is in
the new language. However, the product maintains this information.
If, at a later stage, you switch the unit back to the original language,
you will once again see these language-specific characteristics.
When you move units of one language to a package of
another language, the product informs you that they are different
languages and asks you to confirm the move.
If
you try to add a unit that is associated with another language, Rational Rhapsody asks
you to confirm the addition of the unit. You are also prompted for
confirmation if you add "by reference" a unit that is associated with
another language.