https://github.com/mini2dx/gettext
GNU gettext Internationalization (i18n) for Java-based video games/applications
https://github.com/mini2dx/gettext
Last synced: 9 months ago
JSON representation
GNU gettext Internationalization (i18n) for Java-based video games/applications
- Host: GitHub
- URL: https://github.com/mini2dx/gettext
- Owner: mini2Dx
- License: apache-2.0
- Created: 2019-03-01T11:07:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T15:03:09.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T16:42:55.281Z (10 months ago)
- Language: Java
- Homepage:
- Size: 423 KB
- Stars: 9
- Watchers: 2
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
# gettext

GNU gettext Internationalization (i18n) for Java-based video games/applications
## Usage
### Java Library
The Java libary provides classes for reading .po files and accessing translations.
See the [wiki](https://github.com/mini2Dx/gettext/wiki) for a usage guide.
Javadoc can be found [here](https://mini2dx.github.io/gettext/javadoc/1.5.0/index.html)
__Gradle__
```gradle
compile "org.mini2Dx:gettext-lib:1.11.0"
```
__Maven__
```xml
org.mini2Dx
gettext-lib
1.11.0
```
### Gradle Plugin
The Gradle plugin can parse files and generate a .pot based on the source code.
See the [wiki](https://github.com/mini2Dx/gettext/wiki) for a usage guide.
## Purpose
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.