summaryrefslogtreecommitdiff
path: root/cmd/bitmask-vpn
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bitmask-vpn')
-rw-r--r--cmd/bitmask-vpn/catalog.go369
-rw-r--r--cmd/bitmask-vpn/main.go76
2 files changed, 445 insertions, 0 deletions
diff --git a/cmd/bitmask-vpn/catalog.go b/cmd/bitmask-vpn/catalog.go
new file mode 100644
index 0000000..55142e8
--- /dev/null
+++ b/cmd/bitmask-vpn/catalog.go
@@ -0,0 +1,369 @@
+// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
+
+package main
+
+import (
+ "golang.org/x/text/language"
+ "golang.org/x/text/message"
+ "golang.org/x/text/message/catalog"
+)
+
+type dictionary struct {
+ index []uint32
+ data string
+}
+
+func (d *dictionary) Lookup(key string) (data string, ok bool) {
+ p := messageKeyToIndex[key]
+ start, end := d.index[p], d.index[p+1]
+ if start == end {
+ return "", false
+ }
+ return d.data[start:end], true
+}
+
+func init() {
+ dict := map[string]catalog.Dictionary{
+ "bn": &dictionary{index: bnIndex, data: bnData},
+ "en_GB": &dictionary{index: en_GBIndex, data: en_GBData},
+ "en_US": &dictionary{index: en_USIndex, data: en_USData},
+ "es": &dictionary{index: esIndex, data: esData},
+ "es_ES": &dictionary{index: es_ESIndex, data: es_ESData},
+ "fr": &dictionary{index: frIndex, data: frData},
+ "lt": &dictionary{index: ltIndex, data: ltData},
+ "nl": &dictionary{index: nlIndex, data: nlData},
+ "pt_BR": &dictionary{index: pt_BRIndex, data: pt_BRData},
+ }
+ fallback := language.MustParse("en-US")
+ cat, err := catalog.NewFromMap(dict, catalog.Fallback(fallback))
+ if err != nil {
+ panic(err)
+ }
+ message.DefaultCatalog = cat
+}
+
+var messageKeyToIndex = map[string]int{
+ "%[1]s is an easy, fast, and secure VPN service from riseup.net. %[1]s does not require a user account, keep logs, or track you in any way.\n\t \nThis service is paid for entirely by donations from users like you. Please donate at https://riseup.net/vpn/donate.\n\t\t\nBy using this application, you agree to the Terms of Service available at https://riseup.net/tos. This service is provide as-is, without any warranty, and is intended for people who work to make the world a better place.\n\n\n%[1]v version: %[2]s": 2,
+ "%s blocking internet": 24,
+ "%s off": 19,
+ "%s on": 18,
+ "About": 3,
+ "About...": 14,
+ "An error has ocurred initializing the VPN: %v": 25,
+ "Can't connect to %s: %v": 7,
+ "Cancel": 20,
+ "Checking status...": 9,
+ "Connecting to %s": 21,
+ "Could not find a polkit authentication agent. Please run one and try again.": 5,
+ "Donate": 1,
+ "Donate...": 13,
+ "Error starting VPN": 8,
+ "Help...": 12,
+ "Initialization error": 4,
+ "Missing authentication agent": 6,
+ "Quit": 15,
+ "Retry": 23,
+ "Route traffic through": 16,
+ "Stopping %s": 22,
+ "The %s service is expensive to run. Because we don't want to store personal information about you, there is no accounts or billing for this service. But if you want the service to continue, donate at least $5 each month.\n\t\nDo you want to donate now?": 0,
+ "Turn off": 11,
+ "Turn on": 10,
+ "Use %s %v gateway": 17,
+}
+
+var bnIndex = []uint32{ // 27 elements
+ 0x00000000, 0x000000fd, 0x00000110, 0x0000030c,
+ 0x00000325, 0x00000348, 0x00000394, 0x000003e2,
+ 0x00000400, 0x00000450, 0x00000497, 0x000004ab,
+ 0x000004bf, 0x000004d8, 0x000004ee, 0x0000050a,
+ 0x00000517, 0x00000557, 0x0000056f, 0x00000582,
+ 0x00000595, 0x000005a5, 0x000005e5, 0x00000608,
+ 0x0000063b, 0x00000683, 0x000006b0,
+} // Size: 132 bytes
+
+const bnData string = "" + // Size: 1712 bytes
+ "\x02The %[1]s service is expensive to run. Because we don't want to stor" +
+ "e personal information about you, there is no accounts or billing for th" +
+ "is service. But if you want the service to continue, donate at least $5 " +
+ "each month.\x0a\x09\x0aDo you want to donate now?\x02অনুদান\x02%[1]s is " +
+ "an easy, fast, and secure VPN service from riseup.net. %[1]s does not re" +
+ "quire a user account, keep logs, or track you in any way.\x0a\x09 " +
+ "\x0aThis service is paid for entirely by donations from users like you. " +
+ "Please donate at https://riseup.net/vpn/donate.\x0a\x09\x09\x0aBy using " +
+ "this application, you agree to the Terms of Service available at https:/" +
+ "/riseup.net/tos. This service is provide as-is, without any warranty, an" +
+ "d is intended for people who work to make the world a better place.\x0a" +
+ "\x0a\x0a%[1]v version: %[2]s\x02সম্পর্কে\x02সূচনা ত্রুটি\x02Could not fi" +
+ "nd a polkit authentication agent. Please run one and try again.\x02প্রমা" +
+ "ণীকরণ এজেন্ট অনুপস্থিত\x02Can't connect to %[1]s: %[2]v\x02ভিপিএন চালু" +
+ " করতে ত্রুটি হয়েছে\x02অবস্থা পরিক্ষা করা হচ্ছে ...\x02চালু কর\x02বন্ধ কর" +
+ "\x02সাহায্য...\x02অনুদান...\x02সম্পর্কে...\x02বন্ধ\x02ট্রাফিক এর মাধ্যমে" +
+ " যাবে\x02Use %[1]s %[2]v gateway\x02%[1]s চালু\x02%[1]s বন্ধ\x02বাতিল" +
+ "\x02%[1]s এর সাথে সংযুক্ত হচ্ছে\x02%[1]s বন্ধ হচ্ছে\x02পূনরায় চেষ্টা করু" +
+ "ন\x02%[1]s ইন্টারনেট প্রতিরোধ করছে\x02An error has ocurred initializin" +
+ "g VPN: %[1]v"
+
+var en_GBIndex = []uint32{ // 27 elements
+ 0x00000000, 0x000000ff, 0x00000106, 0x00000302,
+ 0x00000308, 0x0000031d, 0x00000369, 0x00000386,
+ 0x000003a4, 0x000003b7, 0x000003ca, 0x000003d2,
+ 0x000003db, 0x000003e3, 0x000003ed, 0x000003f6,
+ 0x000003fb, 0x00000411, 0x00000429, 0x00000432,
+ 0x0000043c, 0x00000443, 0x00000457, 0x00000466,
+ 0x0000046c, 0x00000484, 0x000004b2,
+} // Size: 132 bytes
+
+const en_GBData string = "" + // Size: 1202 bytes
+ "\x02The %[1]s service is expensive to run. Because we don't want to stor" +
+ "e personal information about you, there is no accounts or billing for th" +
+ "is service. But if you want the service to continue, donate at least US$" +
+ "5 each month.\x0a\x09\x0aDo you want to donate now?\x02Donate\x02%[1]s i" +
+ "s an easy, fast, and secure VPN service from riseup.net. %[1]s does not " +
+ "require a user account, keep logs, or track you in any way.\x0a\x09 " +
+ "\x0aThis service is paid for entirely by donations from users like you. " +
+ "Please donate at https://riseup.net/vpn/donate.\x0a\x09\x09\x0aBy using " +
+ "this application, you agree to the Terms of Service available at https:/" +
+ "/riseup.net/tos. This service is provide as-is, without any warranty, an" +
+ "d is intended for people who work to make the world a better place.\x0a" +
+ "\x0a\x0a%[1]v version: %[2]s\x02About\x02Initialisation error\x02Could n" +
+ "ot find a Polkit authentication agent. Please run one and try again.\x02" +
+ "Missing authentication agent\x02Can't connect to %[1]s: %[2]v\x02Error s" +
+ "tarting VPN\x02Checking status...\x02Turn on\x02Turn off\x02Help...\x02D" +
+ "onate...\x02About...\x02Quit\x02Route traffic through\x02Use %[1]s %[2]v" +
+ " gateway\x02%[1]s on\x02%[1]s off\x02Cancel\x02Connecting to %[1]s\x02St" +
+ "opping %[1]s\x02Retry\x02%[1]s blocking Internet\x02An error has occurre" +
+ "d initialising VPN: %[1]v"
+
+var en_USIndex = []uint32{ // 27 elements
+ 0x00000000, 0x000000fd, 0x00000104, 0x00000300,
+ 0x00000306, 0x0000031b, 0x00000367, 0x00000384,
+ 0x000003a2, 0x000003b5, 0x000003c8, 0x000003d0,
+ 0x000003d9, 0x000003e1, 0x000003eb, 0x000003f4,
+ 0x000003f9, 0x0000040f, 0x00000427, 0x00000430,
+ 0x0000043a, 0x00000441, 0x00000455, 0x00000464,
+ 0x0000046a, 0x00000482, 0x000004af,
+} // Size: 132 bytes
+
+const en_USData string = "" + // Size: 1199 bytes
+ "\x02The %[1]s service is expensive to run. Because we don't want to stor" +
+ "e personal information about you, there is no accounts or billing for th" +
+ "is service. But if you want the service to continue, donate at least $5 " +
+ "each month.\x0a\x09\x0aDo you want to donate now?\x02Donate\x02%[1]s is " +
+ "an easy, fast, and secure VPN service from riseup.net. %[1]s does not re" +
+ "quire a user account, keep logs, or track you in any way.\x0a\x09 " +
+ "\x0aThis service is paid for entirely by donations from users like you. " +
+ "Please donate at https://riseup.net/vpn/donate.\x0a\x09\x09\x0aBy using " +
+ "this application, you agree to the Terms of Service available at https:/" +
+ "/riseup.net/tos. This service is provide as-is, without any warranty, an" +
+ "d is intended for people who work to make the world a better place.\x0a" +
+ "\x0a\x0a%[1]v version: %[2]s\x02About\x02Initialization error\x02Could n" +
+ "ot find a polkit authentication agent. Please run one and try again.\x02" +
+ "Missing authentication agent\x02Can't connect to %[1]s: %[2]v\x02Error s" +
+ "tarting VPN\x02Checking status...\x02Turn on\x02Turn off\x02Help...\x02D" +
+ "onate...\x02About...\x02Quit\x02Route traffic through\x02Use %[1]s %[2]v" +
+ " gateway\x02%[1]s on\x02%[1]s off\x02Cancel\x02Connecting to %[1]s\x02St" +
+ "opping %[1]s\x02Retry\x02%[1]s blocking internet\x02An error has ocurred" +
+ " initializing VPN: %[1]v"
+
+var esIndex = []uint32{ // 27 elements
+ 0x00000000, 0x000000ec, 0x000000f1, 0x00000332,
+ 0x0000033c, 0x00000355, 0x000003bc, 0x000003de,
+ 0x00000401, 0x00000419, 0x00000432, 0x0000043b,
+ 0x00000442, 0x0000044b, 0x00000453, 0x00000460,
+ 0x00000467, 0x0000047a, 0x0000049b, 0x000004ab,
+ 0x000004b9, 0x000004c2, 0x000004d6, 0x000004ee,
+ 0x000004f9, 0x00000513, 0x00000541,
+} // Size: 132 bytes
+
+const esData string = "" + // Size: 1345 bytes
+ "\x02El servicio %[1]s es caro de mantener. Como no queremos guardar ning" +
+ "una información personal tuya, no hay cuentas ni servicio de facturación" +
+ ". Si quieres que este servicio continúe, dona al menos $5 cada mes.\x0a" +
+ "\x09\x0a¿Quieres donar ahora?\x02Dona\x02%[1]s es un servicio de VPN fác" +
+ "il, rápido, y seguro de riseup.net. %[1]s no requiere una cuenta de usua" +
+ "rio, no mantiene registros, ni te rastrea de ninguna manera.\x0a\x09 " +
+ "\x0aEste servicio se paga en su totalidad por donaciones de usuarios com" +
+ "o tú. Por favor dona ingresando a https://riseup.net/vpn/donate.\x0a\x09" +
+ "\x09\x0aAl usar ésta aplicación, acuerdas con los Términos del Servicio " +
+ "disponibles en https://riseup.net/tos. Este servicio es provisto como vi" +
+ "ene, sin garantía alguna, y está destinado a gente que trabaja para hace" +
+ "r del mundo un lugar mejor.\x0a\x0a\x0aVersión de %[1]v: %[2]s\x02Acerca" +
+ " de\x02Error de inicialización\x02No se pudo encontrar ningún agente de " +
+ "autenticacion de polkit. Por favor lanza uno y prueba de nuevo.\x02Falta" +
+ " un agente de autenticación\x02No puedo conectar con %[1]s: %[2]v\x02Err" +
+ "or arrancando la VPN\x02Comprobando el estado...\x02Encender\x02Apagar" +
+ "\x02Ayuda...\x02Dona...\x02Acerca de...\x02Cerrar\x02Salir a través de" +
+ "\x02Usa la salida de %[1]s por %[2]v\x02%[1]s encendida\x02%[1]s apagada" +
+ "\x02Cancelar\x02Connectando a %[1]s\x02Desconnectando de %[1]s\x02Reinte" +
+ "ntar\x02%[1]s bloqueando internet\x02Un error ha ocurrido inicializando " +
+ "VPN: %[1]v"
+
+var es_ESIndex = []uint32{ // 27 elements
+ 0x00000000, 0x000000ec, 0x000000f2, 0x00000343,
+ 0x0000034d, 0x00000366, 0x000003c7, 0x000003e6,
+ 0x0000040a, 0x0000041e, 0x00000434, 0x0000043c,
+ 0x00000447, 0x00000450, 0x00000459, 0x00000466,
+ 0x0000046c, 0x0000048a, 0x000004aa, 0x000004b9,
+ 0x000004cb, 0x000004d4, 0x000004e7, 0x000004f8,
+ 0x00000503, 0x0000051d, 0x0000054b,
+} // Size: 132 bytes
+
+const es_ESData string = "" + // Size: 1355 bytes
+ "\x02Correr el servicio %[1]s es caro. Porque no queremos almacenar infor" +
+ "mación personal acerca tuyo, no hay cuentas o tarifas por este servicio." +
+ " Pero si quieres que el mismo continúe, dona la menos USD 5 por mes.\x0a" +
+ "\x09\x0a¿Quieres donar ahora?\x02Donar\x02%[1]s es un servicio de VPN fá" +
+ "cil, rápido y seguro de riseup.net. %[1]s no requiere una cuenta de usua" +
+ "rio, no mantiene bitácoras, o te rastrea de cualquier manera.\x0a\x09 " +
+ " \x0aEl costo de este servicio está cubierto por completo por donaciones" +
+ " de usuarios como tú. Por favor dona a https://riseup.net/vpn/donate." +
+ "\x0a\x09\x09\x0aAl usar esta aplicación, estás de acuerdo con los Términ" +
+ "os del Servicio disponibles en https://riseup.net/tos. Este servicio se " +
+ "provee como está, sin ninguna garantía, y está apuntado a personas que t" +
+ "rabajan para hacer del mundo un mejor lugar.\x0a\x0a\x0aVersión de %[1]v" +
+ ": %[2]s\x02Acerca de\x02Error de inicialización\x02No se pudo encontrar " +
+ "un agente de autenticación polkit. Por favor corre uno e intenta de nuev" +
+ "o.\x02Falta agente de autenticación\x02No se puede conectar a %[1]s: %[2" +
+ "]v\x02Error iniciando VPN\x02Comprobando estado...\x02Activar\x02Desacti" +
+ "var\x02Ayuda...\x02Donar...\x02Acerca de...\x02Salir\x02Enrutar tráfico " +
+ "a través de\x02Usar ruta de salida %[1]s %[2]v\x02%[1]s activada\x02%[1]" +
+ "s desactivada\x02Cancelar\x02Conectando a %[1]s\x02Deteniendo %[1]s\x02R" +
+ "eintentar\x02%[1]s bloqueando Internet\x02Ha ocurrido un error inicializ" +
+ "ando VPN: %[1]v"
+
+var frIndex = []uint32{ // 27 elements
+ 0x00000000, 0x00000154, 0x00000161, 0x000003d5,
+ 0x000003df, 0x000003f9, 0x0000045b, 0x00000487,
+ 0x000004b4, 0x000004d0, 0x000004ee, 0x000004f6,
+ 0x00000502, 0x0000050a, 0x0000051a, 0x00000527,
+ 0x0000052f, 0x00000547, 0x0000056b, 0x0000057d,
+ 0x00000593, 0x0000059b, 0x000005ae, 0x000005be,
+ 0x000005c7, 0x000005dd, 0x0000061c,
+} // Size: 132 bytes
+
+const frData string = "" + // Size: 1564 bytes
+ "\x02L’exploitation du service %[1]s coûte cher. Dans la mesure où ne nou" +
+ "s voulons enregistrer aucun renseignement personnel à votre sujet, il n’" +
+ "y ni compte ni facturation pour ce service. Mais si vous souhaitez toute" +
+ "fois que le service continue, faites un don d’au moins 5\u00a0$ mensuell" +
+ "ement\x0a\x09\x0aSouhaitez-vous faire un don maintenant\u2009?\x02Faire " +
+ "un don\x02%[1]s est un service de RPV simple, rapide et sécurisé offert " +
+ "par riseup.net. %[1]s ne demande pas de compte utilisateur, ne conserve " +
+ "pas de journaux, ni ne vous suit à la trace d’aucune façon.\x0a\x09 " +
+ "\x0aCe service est entièrement financé par les dons d’utilisateurs comme" +
+ " vous. Veuillez faire un don à https://riseup.net/vpn/donate.\x0a\x09" +
+ "\x09\x0aEn utilisant cette application, vous acceptez les conditions gén" +
+ "érales d’utilisation qui se trouvent sur https://riseup.net/tos. Ce ser" +
+ "vice est fourni tel quel, sans aucune garantie, et s’adresse aux personn" +
+ "es qui œuvrent à rendre le monde meilleur.\x0a\x0a\x0a%[1]v version " +
+ "\u00a0: %[2]s\x02À propos\x02Erreur d’initialisation\x02Impossible de tr" +
+ "ouver un agent d’authentification polkit. Veuillez en exécuter un et res" +
+ "sayer.\x02L’agent d’authentification est manquant\x02Impossible de se co" +
+ "nnecter à %[1]s\u00a0: %[2]v\x02Erreur du démarrage du RPV\x02Vérificati" +
+ "on de l’état…\x02Activer\x02Désactiver\x02Aide…\x02Faire un don…\x02À pr" +
+ "opos…\x02Quitter\x02Acheminer le trafic par\x02Utiliser la passerelle %[" +
+ "1]s %[2]v\x0a\x02%[1]s est activé\x02%[1]s est désactivé\x02Annuler\x02C" +
+ "onnexion à %[1]s\x02Arrêt de %[1]s\x02Ressayer\x02%[1]s bloque Internet" +
+ "\x02Une erreur est survenue lors de l'initialisation de VPN: %[1]v"
+
+var ltIndex = []uint32{ // 27 elements
+ 0x00000000, 0x0000013d, 0x00000146, 0x00000392,
+ 0x00000397, 0x000003aa, 0x00000411, 0x00000436,
+ 0x0000045f, 0x00000477, 0x0000048c, 0x00000495,
+ 0x0000049f, 0x000004aa, 0x000004b6, 0x000004be,
+ 0x000004c6, 0x000004e3, 0x00000508, 0x00000517,
+ 0x00000527, 0x00000532, 0x00000548, 0x00000557,
+ 0x00000569, 0x00000583, 0x000005aa,
+} // Size: 132 bytes
+
+const ltData string = "" + // Size: 1450 bytes
+ "\x02%[1]s paslaugą brangiai kainuoja išlaikyti. Kadangi nenorime saugoti" +
+ " jūsų asmeninės informacijos, todėl nėra jokių paskyrų ar apmokestinimo " +
+ "už šią paslaugą. Tačiau, jei norite, kad paslauga būtų teikiama ir tolia" +
+ "u, paaukokite kiekvieną mėnesį bent po $5 (JAV dolerius).\x0a\x09\x0aAr " +
+ "norite paaukoti dabar?\x02Paaukoti\x02%[1]s yra lengva naudoti, greita i" +
+ "r saugi VPN paslauga iš riseup.net. %[1]s nereikalauja naudotojo paskyro" +
+ "s, nesaugo žurnalų ir jokiu kitu būdu jūsų neseka.\x0a\x09 \x0aŠi pas" +
+ "lauga yra apmokama tik iš, tokių pačių naudotojų kaip jūs, paaukojimų. P" +
+ "rašome paaukokite, adresu https://riseup.net/vpn/donate.\x0a\x09\x09\x0a" +
+ "Naudodami šią programą, sutinkate su Naudojimosi Sąlygomis, kurias galit" +
+ "e rasti adresu https://riseup.net/tos. Ši paslauga yra teikiama esamu pa" +
+ "vidalu, be jokių garantijų ir yra skirta žmonėms, kurie dirba, kad padar" +
+ "ytų pasaulį geresnį.\x0a\x0a\x0a%[1]v versija: %[2]s\x02Apie\x02Inicijav" +
+ "imo klaida\x02Nepavyko rasti politikos rinkinio tapatybės nustatymo agen" +
+ "to. Paleiskite jį ir bandykite dar kartą.\x02Trūksta tapatybės nustatymo" +
+ " agento\x02Nepavyksta prisijungti prie %[1]s: %[2]v\x02Klaida paleidžian" +
+ "t VPN\x02Tikrinama būsena...\x02Įjungti\x02Išjungti\x02Pagalba...\x02Paa" +
+ "ukoti...\x02Apie...\x02Išeiti\x02Siųsti duomenų srautą per\x02Naudoti %[" +
+ "1]s %[2]v tinklų sietuvą\x02%[1]s įjungta\x02%[1]s išjungta\x02Atsisakyt" +
+ "i\x02Jungiamasi prie %[1]s\x02Stabdoma %[1]s\x02Bandyti iš naujo\x02%[1]" +
+ "s blokuoja internetą\x02Inicijuojant VPN, įvyko klaida: %[1]v"
+
+var nlIndex = []uint32{ // 27 elements
+ 0x00000000, 0x0000010c, 0x00000114, 0x00000356,
+ 0x0000035b, 0x0000036d, 0x000003bc, 0x000003d9,
+ 0x000003fd, 0x0000041f, 0x00000435, 0x00000441,
+ 0x0000044e, 0x00000456, 0x00000461, 0x00000469,
+ 0x00000471, 0x00000484, 0x000004a0, 0x000004aa,
+ 0x000004b4, 0x000004be, 0x000004d2, 0x000004e8,
+ 0x000004f9, 0x00000516, 0x0000055d,
+} // Size: 132 bytes
+
+const nlData string = "" + // Size: 1373 bytes
+ "\x02De %[1]s dienst is kostbaar om te onderhouden. Omdat we geen persoon" +
+ "lijke informatie over u willen bijhouden, zijn er geen accounts of betal" +
+ "ingen voor deze dienst. Om deze dienst in leven te houden, overweeg ten " +
+ "minste €4 per maand te schenken.\x0a\x09\x0aWilt u nu doneren?\x02Donere" +
+ "n\x02%[1]s is een gemakkelijke, snelle, en veilige VPN-dienst van riseup" +
+ ".net. %[1]s vereist geen gebruikersaccount, houdt geen logboek bij en vo" +
+ "lgt u niet op wat voor manier dan ook.\x0a\x09\x0aDeze dienst wordt voll" +
+ "edig gefinancierd door donaties van gebruikers zoals u. Overweeg bij te " +
+ "dragen op https://riseup.net/vpn/donate.\x0a\x09\x09\x0aDoor deze applic" +
+ "atie te gebruiken gaat u akkoord met onze gebruikersvoorwaarden die besc" +
+ "hikbaar zijn op https://riseup.net/tos. Deze dienst wordt geleverd zonde" +
+ "r enige garantie, en is bedoeld voor mensen die werken aan een betere we" +
+ "reld.\x0a\x0a\x0a%[1]v versie: %[2]s\x02Over\x02Initialisatiefout\x02Kan" +
+ " geen polkit authenticatieagent vinden. Voer er een uit en probeer opnie" +
+ "uw.\x02Authenticatieagent ontbreekt\x02Kan niet verbinden met %[1]s: %[2" +
+ "]v\x02Fout bij het opstarten van de VPN\x02Status controleren...\x02Insc" +
+ "hakelen\x02Uitschakelen\x02Hulp...\x02Doneren...\x02Over...\x02Stoppen" +
+ "\x02Stuur verkeer door\x02Gebruik %[1]s %[2]v gateway\x02%[1]s aan\x02%[" +
+ "1]s uit\x02Annuleren\x02Verbinden met %[1]s\x02%[1]s aan het stoppen\x02" +
+ "Opnieuw proberen\x02%[1]s blokkeert het internet\x02Er heeft zich een fo" +
+ "ut voorgedaan bij het initialiseren van VPN: %[1]v"
+
+var pt_BRIndex = []uint32{ // 27 elements
+ 0x00000000, 0x00000134, 0x00000147, 0x0000039f,
+ 0x000003a5, 0x000003bd, 0x0000042e, 0x00000459,
+ 0x00000483, 0x00000499, 0x000004af, 0x000004b5,
+ 0x000004be, 0x000004c7, 0x000004dd, 0x000004e6,
+ 0x000004eb, 0x00000509, 0x00000527, 0x0000053a,
+ 0x00000550, 0x00000559, 0x0000056c, 0x0000057a,
+ 0x0000058b, 0x000005ad, 0x000005de,
+} // Size: 132 bytes
+
+const pt_BRData string = "" + // Size: 1502 bytes
+ "\x02O serviço %[1]s tem um custo para ser mantido. Como não queremos gua" +
+ "rdar suas informações pessoais, não temos contas de usuário e não cobram" +
+ "os por este serviço. Mas se você quiser que este serviço continue, faça " +
+ "uma doação de ao menos $5 dólares por mês.\x0a\x0aVocê quer fazer uma do" +
+ "ação agora?\x02Fazer uma doação\x02%[1]s é um serviço de VPN fácil, rápi" +
+ "do e seguro mantido por riseup.net. %[1]s não precisa de uma conta de u" +
+ "suário, não mantém logs, e não te rastreia de forma alguma.\x0a\x0aO ser" +
+ "viço é financiado inteiramente através de doações de pessoas como você. " +
+ "Por favor faça uma doação acessando https://riseup.net/vpn/donate.\x0a" +
+ "\x0aAo usar este aplicativo, você concorda com os Termos de Serviço disp" +
+ "oníveis em https://riseup.net/tos. Este serviço é provido \x22no estado" +
+ "\x22, sem nenhuma garantia, e é direcionado a pessoas que trabalham para" +
+ " tornar o mundo um lugar melhor.\x0a\x0a\x0a%[1]v versão: %[2]s\x02Sobre" +
+ "\x02Erro na inicialização\x02Não foi possível encontrar um agente de aut" +
+ "enticação polkit. Por favor, execute um agente e tente novamente.\x02Um " +
+ "agente de autenticação está faltando\x02Não é possível conectar a %[1]s:" +
+ " %[2]v\x02Erro ao iniciar a VPN\x02Verificando estado...\x02Ligar\x02Des" +
+ "ligar\x02Ajuda...\x02Fazer uma doação...\x02Sobre...\x02Sair\x02Rotear o" +
+ " tráfego através de\x02Usar o gateway %[2]v de %[1]s\x02%[1]s está ligad" +
+ "a\x02%[1]s está desligada\x02Cancelar\x02Conectando a %[1]s\x02Parando %" +
+ "[1]s\x02Tentar novamente\x02%[1]s está bloqueando a Internet\x02Um erro " +
+ "ocorreu na inicialização de VPN: %[1]v"
+
+ // Total table size 13890 bytes (13KiB); checksum: 25F68812
diff --git a/cmd/bitmask-vpn/main.go b/cmd/bitmask-vpn/main.go
new file mode 100644
index 0000000..fb3fd1f
--- /dev/null
+++ b/cmd/bitmask-vpn/main.go
@@ -0,0 +1,76 @@
+// Copyright (C) 2018 LEAP
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+package main
+
+import (
+ "flag"
+ "fmt"
+ "log"
+ "os"
+ "path"
+ "runtime"
+
+ "0xacab.org/leap/bitmask-systray/pkg/config"
+ "0xacab.org/leap/bitmask-systray/pkg/systray"
+ "github.com/jmshal/go-locale"
+ "golang.org/x/text/message"
+)
+
+const (
+ provider = "riseup.net"
+ applicationName = "RiseupVPN"
+ logFile = "systray.log"
+)
+
+var version string
+
+func main() {
+ // on OSX sometimes the systray doesn't work (bitmask-systray#52)
+ // locking the main thread into an OS thread fixes the problem
+ runtime.LockOSThread()
+
+ logger, err := config.ConfigureLogger(path.Join(config.Path, logFile))
+ if err != nil {
+ log.Println("Can't configure logger: ", err)
+ } else {
+ defer logger.Close()
+ }
+
+ conf := systray.ParseConfig()
+
+ flag.BoolVar(&conf.SelectGateway, "select-gateway", false, "Enable gateway selection")
+ versionFlag := flag.Bool("version", false, "Version of the bitmask-systray")
+ flag.Parse()
+ if *versionFlag {
+ fmt.Println(version)
+ os.Exit(0)
+ }
+
+ conf.Provider = provider
+ conf.ApplicationName = applicationName
+ conf.Version = version
+ conf.Printer = initPrinter()
+ systray.Run(conf)
+}
+
+func initPrinter() *message.Printer {
+ locale, err := go_locale.DetectLocale()
+ if err != nil {
+ log.Println("Error detecting the system locale: ", err)
+ }
+
+ return message.NewPrinter(message.MatchLanguage(locale, "en"))
+}