Skip to content

Add support for generating localization resource bundles to the CSS compiler #3632

@shai-almog

Description

@shai-almog

Currently the CSS compiler generates a resource file with a theme only. Ideally it should read Java property files from the directory hierarchy and convert them to a resource bundle in the resulting res file so we can localize applications easily.

This is a relatively isolated task that should be easy to implement since it doesn't require deep knowledge of Codename One and can be implemented in Java SE code.

The starting point is here: https://github.com/codenameone/CodenameOne/blob/master/CodenameOneDesigner/src/com/codename1/designer/css/CN1CSSCLI.java#L604

One would need to add an argument to parse a directory with standard Java resource bundle property files. The code around here should then set the content of the resource bundles into a localization bundle so it can be saved to the resulting resource file.

The final task would be adding this to the maven plugin. I'm guessing @shannah would have insight on that.

Sub-issues

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions