summaryrefslogtreecommitdiff
path: root/notificator.go
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 /notificator.go
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 'notificator.go')
-rw-r--r--notificator.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/notificator.go b/notificator.go
index 375b883..cf24797 100644
--- a/notificator.go
+++ b/notificator.go
@@ -49,7 +49,7 @@ func (n *notificator) donations() {
time.Sleep(time.Minute * 5)
for {
if n.conf.needsNotification() {
- n.notify.Push("Donate to RiseupVPN", donationText, "", notif.UR_NORMAL)
+ n.notify.Push(printer.Sprintf("Donate to RiseupVPN"), printer.Sprintf(donationText), "", notif.UR_NORMAL)
n.conf.setNotification()
}
time.Sleep(time.Hour)
@@ -57,9 +57,9 @@ func (n *notificator) donations() {
}
func (n *notificator) bitmaskNotRunning() {
- n.notify.Push("Can't contact bitmask", notRunning, "", notif.UR_CRITICAL)
+ n.notify.Push(printer.Sprintf("Can't contact bitmask"), printer.Sprintf(notRunning), "", notif.UR_CRITICAL)
}
func (n *notificator) authAgent() {
- n.notify.Push("Missing authentication agent", missingAuthAgent, "", notif.UR_CRITICAL)
+ n.notify.Push(printer.Sprintf("Missing authentication agent"), printer.Sprintf(missingAuthAgent), "", notif.UR_CRITICAL)
}