Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note in the image above that the "Resource Bundle 'X'" elements are synthetic containers created by IntelliJ (IDE) to group together bundles of the same text in the different languages. 

Looking at the (expanded) 'Action' bundle, it can be seen that there is a default bundle (Action.properties) which has text in English, along with translations into Spanish (es), Italian (it), Korean (ko), Traditional Chinese (zh_CN) and Taiwanese (zh_TW).

A "top level" directory -- core -- contains three directories:

  • common – for bundles of words and phrases that will appear in many places in the UI
  • fw - for bundles relating to text appearing in "UI framework" code
  • view - for bundles relating to specific "UI views" code

It is expected that a second top level directory – apps -- will be created in the future, for bundles relating to the ONOS Apps that are included in the distribution.

Looking at the (expanded) 'Action' bundle, it can be seen that there is a default bundle (Action.properties) which has text in English, along with translations into Spanish (es), Italian (it), Korean (ko), Traditional Chinese (zh_CN) and Taiwanese (zh_TW).

In the IDE, selecting the actual file will allow the developer to edit the text of the file, as you would expect:

Image Added

However, selecting the "bundle" provides an edit mode where each localization key can be selected to display all translations for that specific key:

Image Added

LionBundles

A flat structure for a specific UI element

...