codenameone

L10N Localization res file being deleted in CN1 maven project


I have a L10N Localization res file and wonder where do people put it in their CN1 maven project. Docs are slim to non existant. When I put it in the common\target\classes folder of a netbean CN1 Maven project its included in the build but if I do a Clean and Build it keeps being erased.


Solution

  • To answer the question the right place is in the resources directory under the common hierarchy. However, Codename One 7.0.208 (and newer) includes the ability to implicitly add localization bundles into the main theme.

    This even includes a special tool that automatically generates a stub localization file for you in the simulator as you run the application when you enable "Auto Update Default Bundle". This too is poorly documented unfortunately...

    enter image description here