diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-02-21 12:06:58 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-02-21 15:46:21 +0100 |
commit | 868b796e77146e259c36789666282007cf80cc9b (patch) | |
tree | a6847eec043757fd4a386ec19002ca1fad1d7966 /README.md | |
parent | e843f609fcedc9d5bc15c762429bca9cc3c3f8b0 (diff) |
[feat] add i18n support
Using golang.org/x/text, wich is still in early stages of development,
but seems to work good enough for our needs.
- Resolves: #2
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -14,10 +14,9 @@ Build the systray: $ go build ``` -Run bitmask and the systray: +To be able to build the assets you'll need: ``` - $ bitmaskd - $ ./bitmask-systray + $ go get -u golang.org/x/text/cmd/gotext github.com/cratonica/2goarray ``` OSX @@ -35,3 +34,24 @@ Using homebrew: Run it ------------- bitmask-systray assumes that you already have bitmaskd running. + +Run bitmask and the systray: +``` + $ bitmaskd + $ ./bitmask-systray +``` + +i18n +---- + +Generate `locales/*` files: +``` + $ make generate_locales LANGS="sjn tlh" +``` + +Edit the `locales/*/out.gotext.json` translations into `locales/*/messages.gotext.json`. + +To rebuild the locales: +``` + $ make locales +``` |