Incorrect template generated Java files due to whitespaces in "untitled" wildcard translation.
OS : Linux Ubuntu 10.04 (Lucid Lynx)
Geany version : 0.18 (original one from Ubuntu repositories)
Geany (extended) version : geany 0.18 (construit le Aug 24 2009 avec GTK 2.17.7, GLib 2.21.4)
The problem concerns at least :
- JAVA generated files using templates,
- and FRENCH locale translation of Geany.
It may affect other programming languages and other locale translations.
With French locale translation, "untitled" wildcard is replaced by "sans titre". So, Java generated files using templates contain a whitespace in their file names "sans titre.java" (and obviously in their class names "sans titre") which is not correct.
Suggested solution :
The suggested solution is to remove any whitespace in locale translations of "untitled" wildcard, and to CamelCase the translation according to removed whitespaces in order to keep a good lisibility.
With this policy, the previous example would give the correct "sansTitre" as the translation of "untitled" instead of the incorrect one "sans titre".
Thank you for Geany ;)
Log in to post a comment.