From 868b796e77146e259c36789666282007cf80cc9b Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 21 Feb 2018 12:06:58 +0100 Subject: [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 --- README.md | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'README.md') 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 +``` -- cgit v1.2.3