Open shai-almog opened 2 years ago
Hey I am a first time contributor and would like to take a crack at this!
@shannah did you start work on this or can @cjmartinez217 take that?
@shai-almog i have not started work on this yet. Have at it @cjmartinez217
Hi! I am also a first time contributor interested in working on this, could I also give it a try?
@AnnaJones314 I have actually picked up another first time issue so you can go ahead and work on this one if that is okay with the moderators
We're good @cjmartinez217 & @AnnaJones314
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.