Updated i18n functionality requires FarCry 4.1.

Overview

The webtop and COAPI (meaning all forms that use formtools) have been updated so that every label is translated.

Webtop

Previously the webtop was translated by setting the label attribute in the xml to a variable (refering to the resource bundle struct in memory). With the refactoring, the label attribute is used to specify the DEFAULT VALUE. If the menu item has no corresponding resource, the default will be used. If it does it will be translated. This process also applies to the Inline Documentation feature.

By default the menu item is mapped to a resource key in the format webtop.sectionid.subsectionid etc. The attribute is then added to this base key to differentiate it from other translated attributes. e.g. webtop.sectionid.subsectionid@label.

The base key used for a menu item can be overridden by setting the rbkey attribute. This means that if you have an equivelent item in two places on your webtop you can override one to refer to the other. NOTE: this is not recommended - context is a significant factor when translating.

COAPI

Translations of type, rule, and form text can currently be accessed through various i18n methods. In most cases these won't be necessary as all formtool tags are now automatically translated.

RBManage plugin

The default behaviour of the new resource bundle manager is to simply return default values if a key isn't found. This plugin extends this functionality with logging. When installed on your dev machine (DO NOT INSTALL ON A PRODUCTION BOX) you gain access to reports on the status of i18n requests in your application.

The reports provided at the moment are:

Generating the resource bundles is as simple as selecting the bundle (core, plugin or project) and locale indicating if the keys should be marked as translated in the bundle and clicking update.

If you are creating resource bundles for an extended type, remember to add them to your project/plugin, not to the origonal