Hi,
I've gotten clearance to put our code under the MIT license...so we can start to work on this.
Out current production library is Java, and I'll need to maintain compatibility there; however, I'm hoping to accomplish the following:
- Ability to use the library as it is in Java
- A Scala library wrapper on top of it that adds superior support to Scala
- An xgettext compiler plugin for scalac v2.10 and above for pulling out strings, and supports easy extension of the i18n methods it understands (like xgettext does)
- A module for using it in Lift (which is where I need it next)
The current library has some hard internal dependencies (on how the Locale is chosen at runtime), so I'll want to generalize that a bit, and it also has a few internal things like a "default" data format that is non standard that I'll need to continue to support as a setting.
Finally, the current library has a number of functions for helping embed in HTML...I think Scala's support for XML will encourage a better interface on these that output XML literals instead of strings.
I'll have the code up on GitHub soon. I want to come up with a decent name for the i18n stuff that can be promoted to the Java and Scala community...any thoughts? I was thinking something along the lines of Gettext-Wrapper...something that indicates a strong association with the GNU Gettext library (which is what I use underneath in Java) and the integration of Java i18n features (like DataFormat).
Do you want to keep the xgettext compiler plugin separate? That is doable...all that would need to happen is more general support for being able to tell it what functions are used for translation.
Also: Maven, or SBT?
Tony