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 --- locales/en-US/messages.gotext.json | 181 +++++++++++++++++++++++++++++++++++++ locales/es-ES/messages.gotext.json | 169 ++++++++++++++++++++++++++++++++++ 2 files changed, 350 insertions(+) create mode 100644 locales/en-US/messages.gotext.json create mode 100644 locales/es-ES/messages.gotext.json (limited to 'locales') diff --git a/locales/en-US/messages.gotext.json b/locales/en-US/messages.gotext.json new file mode 100644 index 0000000..1559f61 --- /dev/null +++ b/locales/en-US/messages.gotext.json @@ -0,0 +1,181 @@ +{ + "language": "en-US", + "messages": [ + { + "id": "Donate to RiseupVPN", + "message": "Donate to RiseupVPN", + "translation": "Donate to RiseupVPN", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": [ + "donationText", + "The RiseupVPN 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 at https://riseup.net/donate-vpn" + ], + "message": "The RiseupVPN 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 at https://riseup.net/donate-vpn", + "translation": "The RiseupVPN 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 at https://riseup.net/donate-vpn", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Can't contact bitmask", + "message": "Can't contact bitmask", + "translation": "Can't contact bitmask", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": [ + "notRunning", + "Is bitmaskd running? Start bitmask and try again." + ], + "message": "Is bitmaskd running? Start bitmask and try again.", + "translation": "Is bitmaskd running? Start bitmask and try again.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Missing authentication agent", + "message": "Missing authentication agent", + "translation": "Missing authentication agent", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": [ + "missingAuthAgent", + "Could not find a polkit authentication agent. Please run one and try again." + ], + "message": "Could not find a polkit authentication agent. Please run one and try again.", + "translation": "Could not find a polkit authentication agent. Please run one and try again.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Checking status...", + "message": "Checking status...", + "translation": "Checking status..." + }, + { + "id": "Turn on", + "message": "Turn on", + "translation": "Turn on" + }, + { + "id": "Turn RiseupVPN on", + "message": "Turn RiseupVPN on", + "translation": "Turn RiseupVPN on" + }, + { + "id": "Turn off", + "message": "Turn off", + "translation": "Turn off" + }, + { + "id": "Turn RiseupVPN off", + "message": "Turn RiseupVPN off", + "translation": "Turn RiseupVPN off" + }, + { + "id": "Cancel", + "message": "Cancel", + "translation": "Cancel" + }, + { + "id": "Cancel connection to RiseupVPN", + "message": "Cancel connection to RiseupVPN", + "translation": "Cancel connection to RiseupVPN" + }, + { + "id": "Help ...", + "message": "Help ...", + "translation": "Help ..." + }, + { + "id": "Donate ...", + "message": "Donate ...", + "translation": "Donate ...!!!!" + }, + { + "id": "... I have donated", + "message": "... I have donated", + "translation": "... I have donated" + }, + { + "id": "About ...", + "message": "About ...", + "translation": "About ..." + }, + { + "id": "Quit", + "message": "Quit", + "translation": "Quit" + }, + { + "id": "Quit BitmaskVPN", + "message": "Quit BitmaskVPN", + "translation": "Quit BitmaskVPN" + }, + { + "id": "Route traffic through", + "message": "Route traffic through", + "translation": "Route traffic through" + }, + { + "id": "Use RiseupVPN {Name} gateway", + "message": "Use RiseupVPN {Name} gateway", + "translation": "Use RiseupVPN {Name} gateway", + "placeholders": [ + { + "id": "Name", + "string": "%[1]v", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "name" + } + ] + }, + { + "id": "Retry", + "message": "Retry", + "translation": "Retry" + }, + { + "id": "blocking internet", + "message": "blocking internet", + "translation": "blocking internet" + }, + { + "id": "RiseupVPN is {StatusStr}", + "message": "RiseupVPN is {StatusStr}", + "translation": "RiseupVPN is {StatusStr}", + "placeholders": [ + { + "id": "StatusStr", + "string": "%[1]v", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "statusStr" + } + ] + }, + { + "id": "VPN is {StatusStr}", + "message": "VPN is {StatusStr}", + "translation": "VPN is {StatusStr}", + "placeholders": [ + { + "id": "StatusStr", + "string": "%[1]v", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "statusStr" + } + ] + } + ] +} diff --git a/locales/es-ES/messages.gotext.json b/locales/es-ES/messages.gotext.json new file mode 100644 index 0000000..3960c2d --- /dev/null +++ b/locales/es-ES/messages.gotext.json @@ -0,0 +1,169 @@ +{ + "language": "es-ES", + "messages": [ + { + "id": "Donate to RiseupVPN", + "message": "Donate to RiseupVPN", + "translation": "Dona a RiseupVPN" + }, + { + "id": [ + "donationText", + "The RiseupVPN 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 at https://riseup.net/donate-vpn" + ], + "message": "The RiseupVPN 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 at https://riseup.net/donate-vpn", + "translation": "El servicio RiseupVPN es caro de mantener. Como no queremos guardar ninguna información personal tuya, no hay cuentas ni servicio de facturación. Si quieres que este servicio continue, dona al menos $5 cada mes en https://riseup.net/donate-vpn" + }, + { + "id": "Can't contact bitmask", + "message": "Can't contact bitmask", + "translation": "No puedo contactar a bitmask" + }, + { + "id": [ + "notRunning", + "Is bitmaskd running? Start bitmask and try again." + ], + "message": "Is bitmaskd running? Start bitmask and try again.", + "translation": "¿Esta bitmask en ejecucion? Arranca bitmask y prueba de nuevo." + }, + { + "id": "Missing authentication agent", + "message": "Missing authentication agent", + "translation": "Falta el agente de autenticación" + }, + { + "id": [ + "missingAuthAgent", + "Could not find a polkit authentication agent. Please run one and try again." + ], + "message": "Could not find a polkit authentication agent. Please run one and try again.", + "translation": "No pude encontrar ningún agente de autenticacion polkit. Por favor ejecuta uno y prueba de nuevo." + }, + { + "id": "Checking status...", + "message": "Checking status...", + "translation": "Comprobando el estado..." + }, + { + "id": "Turn on", + "message": "Turn on", + "translation": "Encender" + }, + { + "id": "Turn RiseupVPN on", + "message": "Turn RiseupVPN on", + "translation": "Enciende RiseupVPN" + }, + { + "id": "Turn off", + "message": "Turn off", + "translation": "Apagar" + }, + { + "id": "Turn RiseupVPN off", + "message": "Turn RiseupVPN off", + "translation": "Apaga RiseupVPN" + }, + { + "id": "Cancel", + "message": "Cancel", + "translation": "Cancelar" + }, + { + "id": "Cancel connection to RiseupVPN", + "message": "Cancel connection to RiseupVPN", + "translation": "Cancela la conexión a RiseupVPN" + }, + { + "id": "Help ...", + "message": "Help ...", + "translation": "Ayuda ..." + }, + { + "id": "Donate ...", + "message": "Donate ...", + "translation": "Dona ..." + }, + { + "id": "... I have donated", + "message": "... I have donated", + "translation": "... ya he donado" + }, + { + "id": "About ...", + "message": "About ...", + "translation": "Acerca de ..." + }, + { + "id": "Quit", + "message": "Quit", + "translation": "Cerrar" + }, + { + "id": "Quit BitmaskVPN", + "message": "Quit BitmaskVPN", + "translation": "Cierra BitmaskVPN" + }, + { + "id": "Route traffic through", + "message": "Route traffic through", + "translation": "Salir a traves de" + }, + { + "id": "Use RiseupVPN {Name} gateway", + "message": "Use RiskieupVPN {Name} gateway", + "translation": "Usa la salida de RiseupVPN en {Name}", + "placeholders": [ + { + "id": "Name", + "string": "%[1]v", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "name" + } + ] + }, + { + "id": "Retry", + "message": "Retry", + "translation": "Reintentar" + }, + { + "id": "blocking internet", + "message": "blocking internet", + "translation": "internet bloqueado" + }, + { + "id": "RiseupVPN is {StatusStr}", + "message": "RiseupVPN is {StatusStr}", + "translation": "RiseupVPN esta {StatusStr}", + "placeholders": [ + { + "id": "StatusStr", + "string": "%[1]v", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "statusStr" + } + ] + }, + { + "id": "VPN is {StatusStr}", + "message": "VPN is {StatusStr}", + "translation": "VPN esta {StatusStr}", + "placeholders": [ + { + "id": "StatusStr", + "string": "%[1]v", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "statusStr" + } + ] + } + ] +} -- cgit v1.2.3