summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-21 12:06:58 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-21 15:46:21 +0100
commit868b796e77146e259c36789666282007cf80cc9b (patch)
treea6847eec043757fd4a386ec19002ca1fad1d7966 /README.md
parente843f609fcedc9d5bc15c762429bca9cc3c3f8b0 (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.md26
1 files changed, 23 insertions, 3 deletions
diff --git a/README.md b/README.md
index 81b59a3..f0e55c5 100644
--- a/README.md
+++ b/README.md
@@ -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
+```