An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# gettext

![Continuous Integration](https://github.com/mini2Dx/gettext/workflows/Continuous%20Integration/badge.svg)

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.