GNU gettext Internationalization (i18n) for Java-based video games/applications
The Java libary provides classes for reading .po files and accessing translations. See the wiki for a usage guide.
Javadoc can be found here
Gradle
compile "org.mini2Dx:gettext-lib:1.11.0"
Maven
<dependency>
<groupId>org.mini2Dx</groupId>
<artifactId>gettext-lib</artifactId>
<version>1.11.0</version>
</dependency>
The Gradle plugin can parse files and generate a .pot based on the source code.
See the wiki for a usage guide.
This implementation uses only a single dependency (antlr4-runtime) and avoids usage of reflection and ResourceBundle to allow for cross-compilation to o ther platforms. Though made for video games, it is possible to use it any Java-based application. The parser is implemented as an ANTLR grammar so it is also possible to compile it to other languages.