Hi,
In Java 8, '_' will become a reserved keyword for lambda expressions.
It's already generate compiler warning:
[WARNING] bootstrap class path not set in conjunction with -source 1.6
xxx:[28,35] '_' used as an identifier
[WARNING] (use of '_' as an identifier might not be supported in future releases)
I maybe be the time to think about _() method future...
--
Éric Chatellier - Code Lutin
Tel: 02.40.50.29.28 - http://www.codelutin.com
The I18n team is pleased to announce the i18n-3.4 release!
Nuiton i18n tools
Documentation of the project can be found here:
http://i18n.nuiton.org
Changes
-------
Changes in this version include:
New features:
o Use java 8 API to scan code Issue: 3880. Thanks to Tony Chemit. Resolved by tchemit.
o Clean javadoc for java 8 Issue: 3894. Thanks to Tony Chemit. Resolved by tchemit.
o Use maven 3 API Issue: 3893. Thanks to Tony Chemit. Resolved by tchemit.
Fixed Bugs:
o Fail to extract t( t( "string") ) Issue: 3449. Thanks to Éric Chatellier. Resolved by echatellier.
Changes:
o Update libs Issue: 3881. Thanks to Éric Chatellier. Resolved by echatellier.
Downloads
---------
No release file deployed. (all files are deployed in the maven repository)
Maven artifacts
---------------
Artifacts are deployed in Maven Central Repository
http://repo1.maven.org/maven2
Find us at
* http://search.maven.org/#artifactdetails|org.nuiton|i18n|3.4|jar
Have fun!
-I18n team
--
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
http://www.codelutin.com
email: chemit(a)codelutin.com
twitter: https://twitter.com/tchemit
Bonjour,
J'ai fait un petit parseur pour détecter les chaînes
I18n dans un code Java, mais basé sur la syntaxe Java (AST).
Par rapport au code précédent, il :
- ne détecte pas la chaîne dans les commentaire
- il détecte les formatage bizarre, par exemple :
String matraduction = _(
"chainesecondeligne");
Il est pour l'instant basé sur le projet javaparser [1]
parce que j'ai trouvé plus facilement la doc que
antlr ou javacc par exemple.
Voilà le code :
http://svn.nuiton.org/svn/sandbox/i18nastparsingtest/src/main/java/org/test…
À vos avis.
[1] : http://code.google.com/p/javaparser/
--
Éric Chatellier <chatellier(a)codelutin.com>
Tel: 02.40.50.29.28
http://www.codelutin.com