From 746a4c5cf2c75638bc935e316a3d5caeb27c2ac7 Mon Sep 17 00:00:00 2001 From: Tetsuo Seto Date: Thu, 24 Dec 2015 15:29:59 -0800 Subject: [PATCH 1/4] Globalize --- .gitignore | 1 + bin/sl-deploy.js | 33 +++++++++++--------- bin/sl-deploy.txt | 64 -------------------------------------- intl/de/messages.json | 27 ++++++++++++++++ intl/en/messages.json | 27 ++++++++++++++++ intl/en/sl-deploy.txt | 64 ++++++++++++++++++++++++++++++++++++++ intl/es/messages.json | 27 ++++++++++++++++ intl/fr/messages.json | 27 ++++++++++++++++ intl/it/messages.json | 27 ++++++++++++++++ intl/ja/messages.json | 27 ++++++++++++++++ intl/ko/messages.json | 27 ++++++++++++++++ intl/pt/messages.json | 27 ++++++++++++++++ intl/zh-Hans/messages.json | 27 ++++++++++++++++ intl/zh-Hant/messages.json | 27 ++++++++++++++++ lib/deploy-endpoint.js | 7 +++-- lib/git.js | 16 +++++----- lib/post-json.js | 17 +++++----- lib/put-file.js | 13 ++++---- package.json | 1 + 19 files changed, 383 insertions(+), 103 deletions(-) delete mode 100644 bin/sl-deploy.txt create mode 100644 intl/de/messages.json create mode 100644 intl/en/messages.json create mode 100644 intl/en/sl-deploy.txt create mode 100644 intl/es/messages.json create mode 100644 intl/fr/messages.json create mode 100644 intl/it/messages.json create mode 100644 intl/ja/messages.json create mode 100644 intl/ko/messages.json create mode 100644 intl/pt/messages.json create mode 100644 intl/zh-Hans/messages.json create mode 100644 intl/zh-Hant/messages.json diff --git a/.gitignore b/.gitignore index ad97b38..0899046 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.tgz node_modules test/.test_artifacts +intl/MSG.json diff --git a/bin/sl-deploy.js b/bin/sl-deploy.js index 67557a5..1db7352 100755 --- a/bin/sl-deploy.js +++ b/bin/sl-deploy.js @@ -5,21 +5,23 @@ var Parser = require('posix-getopt').BasicParser; var debug = require('debug')('strong-deploy'); var defaults = require('strong-url-defaults'); -var getPackageInfo = require('../lib/package').getPackageInfo; var defaultPackagePath = require('../lib/package').getPackagePath; var deploy = require('../'); var fs = require('fs'); +var getPackageInfo = require('../lib/package').getPackageInfo; +var g = require('strong-globalize'); var maybeTunnel = require('strong-tunnel'); var path = require('path'); function printHelp($0, prn) { - var USAGE = fs.readFileSync(require.resolve('./sl-deploy.txt'), 'utf-8') - .replace(/%MAIN%/g, $0) - .trim(); - + var USAGE = g.t('sl-deploy.txt') + .replace(/%MAIN%/g, $0). + trim(); prn(USAGE); } +g.setRootDir(path.resolve(__dirname, '..')); + var argv = process.argv; var $0 = process.env.CMD ? process.env.CMD : path.basename(argv[1]); var parser = new Parser([ @@ -56,7 +58,7 @@ while ((option = parser.getopt()) !== undefined) { local = true; break; default: - console.error('Invalid usage (near option \'%s\'), try `%s --help`.', + g.error('Invalid usage (near option \'%s\'), try {{`%s --help`}}.', option.optopt, $0); process.exit(1); @@ -65,7 +67,7 @@ while ((option = parser.getopt()) !== undefined) { var numArgs = argv.length - parser.optind(); if (numArgs > 2) { - console.error('Invalid usage, try `%s --help`.', $0); + g.error('Invalid usage, try {{`%s --help`}}.', $0); process.exit(1); } @@ -78,11 +80,12 @@ var packageInfo = getPackageInfo(workingDir); serviceName = serviceName || (packageInfo ? packageInfo.name : null); if (!serviceName) { - console.error( - 'Unable to detect service name, package.json has no "name" property.\n' + - 'Please update your package.json or specify a service name.\n' + - 'See `%s --help` for more details.', $0 - ); + g.error( + 'Unable to detect service name, {{package.json}} ' + + 'has no "name" property.\n' + + 'Please update your package.json or specify a service name.\n' + + 'See {{`%s --help`}} for more details.', $0 + ); process.exit(1); } @@ -118,7 +121,7 @@ if (!local) { maybeTunnel(baseURL, sshOpts, function(err, url) { exit.url = url; if (err) { - console.error('Error setting up tunnel:', err); + g.error('Error setting up tunnel: %s', err); return exit(err); } debug('Connecting to %s via %s', baseURL, url); @@ -144,11 +147,11 @@ if (!local) { function exit(err, service) { var svc = service ? (service.name || service.id) : serviceName; if (err) { - console.error('Failed to deploy `%s` as `%s` to `%s` via `%s`', + g.error('Failed to deploy `%s` as `%s` to `%s` via `%s`', branchOrPack, svc, baseURL, exit.url); process.exit(1); } else { - console.log('Deployed `%s` as `%s` to `%s`', branchOrPack, svc, baseURL); + g.log('Deployed `%s` as `%s` to `%s`', branchOrPack, svc, baseURL); process.exit(0); } } diff --git a/bin/sl-deploy.txt b/bin/sl-deploy.txt deleted file mode 100644 index 46d5131..0000000 --- a/bin/sl-deploy.txt +++ /dev/null @@ -1,64 +0,0 @@ -usage: %MAIN% [options] [URL [PACK|BRANCH]] - -Deploy a node application to a StrongLoop process manager - -Options: - -h,--help Print this message and exit. - -v,--version Print version and exit. - -s,--service SVC Deploy to service SVC. - -z,--size SIZE Set size of cluster to SIZE before deploy. - -Arguments: - SIZE: A number, n, or the string 'cpus', meaning run a worker per CPU. - - SVC: The name or ID of the service on the process manager. - - Defaults to the name of the application specified in the package.json file. - - If a service with that name is not available on the process manager, - a new service will be created and the application will be deployed. - - URL: The URL of the StrongLoop process manager. - - Defaults to `http://localhost:8701`. If a URL is provided, both the host - and port is optional, they default to `localhost` and 8701, respectively. - If the server requires authentication, the credentials must be part of the - URL, see examples. - - URL may also use the `http+ssh://` protocol which will connect using ssh - and then tunnel the http requests over that connection. The ssh username - will default to your current user and authentication defaults to using your - current ssh-agent. The username can be overridden by setting an `SSH_USER` - environment variable. The authentication can be overridden to use an - existing private key instead of an agent by setting the `SSH_KEY` - environment variable to the path of the private key to be used. The port - used for ssh can be overridden by setting an `SSH_PORT` environment - variable. - - PACK: Deploy an NPM package/tarball. - - BRANCH: Deploy a git branch. - -Default behaviour is to deploy to `http://localhost:8701`. An npm package from -the parent directory is deployed, if one is found for the current application -version, otherwise the git branch `deploy` is deployed. - -Note that if PACK or BRANCH is specified, URL *must* be specified as well. - -Examples: - -Deploy the default npm package or git branch to localhost: - - %MAIN% - -Deploy the default npm package or git branch to a remote host: - - %MAIN% http://prod1.example.com - -Deploy to a remote host, on a non-standard port, using authentication: - - %MAIN% http://user:pass@prod1.example.com:8765 - -Deploy 'production' branch to localhost: - - %MAIN% http://localhost production diff --git a/intl/de/messages.json b/intl/de/messages.json new file mode 100644 index 0000000..698c325 --- /dev/null +++ b/intl/de/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "`{0} `als `{1} `zu `{2} eingesetzt", + "0a402996683b8af6001a51d13edae1e2": "`{0} Nicht ``als `{1} `zu `{2} `über `{3} eingesetzt", + "0c5caf9bcef355ca74967f6d820a94ea": "Kann keiner Zugang entfernt. Wenn Bestätigung erforderlich ist, sollten Ausweispapiere in der URL gegeben werden.", + "0dee2a33280f6051b6e3f06a0d537c31": "Kann `{0} nicht einsetzen: Nicht ein {{npm}} Paketverzeichnis", + "14946b39b8b24c3bf42f87461d71e61a": "Sich nicht mit {0} verbunden: {1}", + "1b96db9d6574f771b8a481d6692b19d1": "Verzeichnis {0} existiert nicht", + "32494893ae5067ca7944c5d50a699445": "Außer Stande, Servicenamen zu entdecken,} hat {{package.json}} keinen \"Namens\" Besitz.Bitte aktualisieren Sie Ihre package.json oder geben Sie einen Servicenamen an.Siehe {{`{0} -- helfen Sie}} `für weitere Details.", + "3c9e808f506d30fa603f262b8b2d952f": "Ungültiger Gebrauch, Versuchs {{`{0} -- Hilfe.}}", + "428d89a07f67cc0fb564cb71afc7c63b": "Ungültiger Pfad, nicht ein Verzeichnis", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "Setzen Sie `durch {0} `zu `{1} ein, ````gefallen: {2}", + "5979ce669741c05125c9cd188b25490f": "Fehler, während Akte lesen: {0}", + "63e17bd19141679739ef73ea050d5d07": "Zweig `{0} `steht nicht in diesem Lager zur Verfügung", + "699165228b0c9f2ceba22cb3c009c3c5": "Ungültige url", + "70e3014d13daf4aa92c75300671854b6": "Ungültiger Zweig", + "7505a317caea95d045fe62de0b6e5819": "Ungültige URL `{0}. Nur http:// URLs werden unterstützt.", + "7daa7e1103db022989b15f9911a008b2": "Fehler, der sich mit Server verbindet: {0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "Fehler, der Tunnel aufstellt: {0}", + "8b11479607ff0842f800cf914692bb45": "Gültige Ausweispapiere müssen in der URL gegeben werden.", + "a92646afd9c4b22bb4e2aa68259c2273": "Ungültiger Gebrauch (nahe Option '{0}'), Versuchs {{`{1} -- Hilfe.}}", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL `{0} `ist nicht gültig", + "ad48139ecdc33ed94bb5166e62b573b1": "Ungültige URL `{0}. Nur {{localhost}} URL werden unterstützt.", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}} scheiterte", + "d870f51884c0ce8fd49309c7c865a046": "HTTP Fehler {0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "Dieses Verzeichnis enthält kein gültiges {{git}} Lager", + "f9c7939a8397ee022fefee2bdb3407af": "Ungültige URL" +} diff --git a/intl/en/messages.json b/intl/en/messages.json new file mode 100644 index 0000000..4eb293e --- /dev/null +++ b/intl/en/messages.json @@ -0,0 +1,27 @@ +{ + "a92646afd9c4b22bb4e2aa68259c2273": "Invalid usage (near option '{0}'), try {{`{1} --help`}}.", + "3c9e808f506d30fa603f262b8b2d952f": "Invalid usage, try {{`{0} --help`}}.", + "32494893ae5067ca7944c5d50a699445": "Unable to detect service name, {{package.json}} has no \"name\" property.\nPlease update your package.json or specify a service name.\nSee {{`{0} --help`}} for more details.", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "Error setting up tunnel: {0}", + "0a402996683b8af6001a51d13edae1e2": "Failed to deploy `{0}` as `{1}` to `{2}` via `{3}`", + "0099b15ad24474f028c0a35a53f52fd9": "Deployed `{0}` as `{1}` to `{2}`", + "14946b39b8b24c3bf42f87461d71e61a": "Failed to connect to {0}: {1}", + "0c5caf9bcef355ca74967f6d820a94ea": "Cannot access remote. If authentication is required, credentials should be given in the URL.", + "7daa7e1103db022989b15f9911a008b2": "Error connecting to server: {0}", + "1b96db9d6574f771b8a481d6692b19d1": "Directory {0} does not exist", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "This directory does not contain a valid {{git}} repository", + "63e17bd19141679739ef73ea050d5d07": "Branch `{0}` is not available in this repository", + "70e3014d13daf4aa92c75300671854b6": "invalid branch", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL `{0}` is not valid", + "699165228b0c9f2ceba22cb3c009c3c5": "invalid url", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}} failed", + "7505a317caea95d045fe62de0b6e5819": "Invalid URL `{0}`. Only http:// URLs are supported.", + "f9c7939a8397ee022fefee2bdb3407af": "Invalid URL", + "ad48139ecdc33ed94bb5166e62b573b1": "Invalid URL `{0}`. Only {{localhost}} URLs are supported.", + "0dee2a33280f6051b6e3f06a0d537c31": "Cannot deploy `{0}`: not an {{npm}} package directory", + "428d89a07f67cc0fb564cb71afc7c63b": "Invalid path, not a directory", + "d870f51884c0ce8fd49309c7c865a046": "HTTP error {0}", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "Deploy `{0}` to `{1}` failed: {2}", + "5979ce669741c05125c9cd188b25490f": "Error while reading file: {0}", + "8b11479607ff0842f800cf914692bb45": "Valid credentials must be given in the URL." +} diff --git a/intl/en/sl-deploy.txt b/intl/en/sl-deploy.txt new file mode 100644 index 0000000..3b6f89a --- /dev/null +++ b/intl/en/sl-deploy.txt @@ -0,0 +1,64 @@ +usage: {{%MAIN% [options] [URL [PACK|BRANCH]]}} + +Deploy a node application to a StrongLoop process manager + +Options: + {{-h,--help}} Print this message and exit. + {{-v,--version}} Print version and exit. + {{-s,--service SVC}} Deploy to service {{SVC}}. + {{-z,--size SIZE}} Set size of cluster to {{SIZE}} before deploy. + +Arguments: + {{SIZE}}: A number, n, or the string '{{cpus}}', meaning run a worker per CPU. + + {{SVC}}: The name or ID of the service on the process manager. + + Defaults to the name of the application specified in the {{package.json}} file. + + If a service with that name is not available on the process manager, + a new service will be created and the application will be deployed. + + {{URL}}: The URL of the StrongLoop process manager. + + Defaults to `{{http://localhost:8701}}`. If a URL is provided, both the host + and port is optional, they default to `{{localhost}}` and 8701, respectively. + If the server requires authentication, the credentials must be part of the + URL, see examples. + + URL may also use the `{{http+ssh://}}` protocol which will connect using ssh + and then tunnel the http requests over that connection. The ssh username + will default to your current user and authentication defaults to using your + current ssh-agent. The {{username}} can be overridden by setting an `{{SSH_USER}}` + environment variable. The authentication can be overridden to use an + existing private key instead of an agent by setting the `SSH_KEY` + environment variable to the path of the private key to be used. The port + used for ssh can be overridden by setting an `{{SSH_PORT}}` environment + variable. + + {{PACK}}: Deploy an {{NPM package/tarball}}. + + {{BRANCH}}: Deploy a {{git}} branch. + +Default behaviour is to deploy to `{{http://localhost:8701}}`. An {{npm}} package from +the parent directory is deployed, if one is found for the current application +version, otherwise the {{git}} branch `{{deploy}}` is deployed. + +Note that if {{PACK}} or {{BRANCH}} is specified, URL *must* be specified as well. + +Examples: + +Deploy the default {{npm}} package or {{git}} branch to {{localhost}}: + + {{%MAIN%}} + +Deploy the default {{npm}} package or {{git}} branch to a remote host: + + {{%MAIN% http://prod1.example.com}} + +Deploy to a remote host, on a non-standard port, using authentication: + + {{%MAIN% http://user:pass@prod1.example.com:8765}} + +Deploy '{{production}}' branch to {{localhost}}: + + {{%MAIN% http://localhost production}} diff --git a/intl/es/messages.json b/intl/es/messages.json new file mode 100644 index 0000000..4bdb302 --- /dev/null +++ b/intl/es/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "Desplegado ` {0} `, ` {1} ` ` {2} `", + "0a402996683b8af6001a51d13edae1e2": "No se ha podido desplegar ` {0} `, ` {1} ` ` {2} ` ` mediante {3} `", + "0c5caf9bcef355ca74967f6d820a94ea": "No acceso remoto. Si la autenticación es necesaria, las credenciales deben darse en el URL.", + "0dee2a33280f6051b6e3f06a0d537c31": "", + "14946b39b8b24c3bf42f87461d71e61a": "No se ha podido conectar con {0}: {1}", + "1b96db9d6574f771b8a481d6692b19d1": "El directorio {0} no existe", + "32494893ae5067ca7944c5d50a699445": "", + "3c9e808f506d30fa603f262b8b2d952f": "", + "428d89a07f67cc0fb564cb71afc7c63b": "Vía de acceso, no un directorio", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "Desplegar ` {0} ` ` {1} ` ha fallado: {2}", + "5979ce669741c05125c9cd188b25490f": "Error al leer el archivo: {0}", + "63e17bd19141679739ef73ea050d5d07": "Poder ` {0} ` no está disponible en este repositorio", + "699165228b0c9f2ceba22cb3c009c3c5": "URL no válida", + "70e3014d13daf4aa92c75300671854b6": "Rama válida", + "7505a317caea95d045fe62de0b6e5819": "URL no válido ` {0} `. Sólo URL están soportados. Http://", + "7daa7e1103db022989b15f9911a008b2": "Error al conectar con el servidor: {0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "Error de túnel: {0}", + "8b11479607ff0842f800cf914692bb45": "Las credenciales válidas deben darse en el URL.", + "a92646afd9c4b22bb4e2aa68259c2273": "", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL ` {0} ` no es válido", + "ad48139ecdc33ed94bb5166e62b573b1": "", + "b4a6153b6150d282c79cf75d0705785e": "", + "d870f51884c0ce8fd49309c7c865a046": "Error HTTP {0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "", + "f9c7939a8397ee022fefee2bdb3407af": "URL no válida" +} diff --git a/intl/fr/messages.json b/intl/fr/messages.json new file mode 100644 index 0000000..7fa152f --- /dev/null +++ b/intl/fr/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "Déployé ` {0} ` que ` {1} ` ` {2} `", + "0a402996683b8af6001a51d13edae1e2": "Impossible de déployer ` {0} ` que ` {1} ` ` {2} ` via ` {3} `", + "0c5caf9bcef355ca74967f6d820a94ea": "Impossible d'accéder à distance. Si l'authentification est requise, les données d'identification doivent être fournies dans l'URL.", + "0dee2a33280f6051b6e3f06a0d537c31": "", + "14946b39b8b24c3bf42f87461d71e61a": "Echec de la connexion à {0}: {1}", + "1b96db9d6574f771b8a481d6692b19d1": "Le répertoire {0} n'existe pas", + "32494893ae5067ca7944c5d50a699445": "", + "3c9e808f506d30fa603f262b8b2d952f": "", + "428d89a07f67cc0fb564cb71afc7c63b": "Chemin non valide et non un répertoire", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "Déployez ` {0} ` ` {1} ` a échoué: {2}", + "5979ce669741c05125c9cd188b25490f": "Erreur lors de la lecture du fichier: {0}", + "63e17bd19141679739ef73ea050d5d07": "Direction ` {0} ` n'est pas disponible dans ce référentiel", + "699165228b0c9f2ceba22cb3c009c3c5": "URL non valide", + "70e3014d13daf4aa92c75300671854b6": "Branche incorrecte", + "7505a317caea95d045fe62de0b6e5819": "URL non valide ` {0} `. Seules les URL http:// sont prises en charge.", + "7daa7e1103db022989b15f9911a008b2": "Erreur lors de la connexion au serveur: {0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "Erreur de configuration de tunnel: {0}", + "8b11479607ff0842f800cf914692bb45": "Données d'identification valides doivent être fournies dans l'URL.", + "a92646afd9c4b22bb4e2aa68259c2273": "", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL ` {0} ` n'est pas valide", + "ad48139ecdc33ed94bb5166e62b573b1": "", + "b4a6153b6150d282c79cf75d0705785e": "", + "d870f51884c0ce8fd49309c7c865a046": "Erreur HTTP {0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "", + "f9c7939a8397ee022fefee2bdb3407af": "URL non valide" +} diff --git a/intl/it/messages.json b/intl/it/messages.json new file mode 100644 index 0000000..95da3f7 --- /dev/null +++ b/intl/it/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "Schierato `{0} `come `{1} `a `{2}", + "0a402996683b8af6001a51d13edae1e2": "Non riuscito a schierare `{0} `come `{1} `a `{2} `per mezzo di `{3}", + "0c5caf9bcef355ca74967f6d820a94ea": "Non può accedere a remoto. Se l'autenticazione essere richiesta, le credenziali dovrebbero essere date nell'URL.", + "0dee2a33280f6051b6e3f06a0d537c31": "Non può schierare `{0}: Non un} indice di pacchetto {{npm} }", + "14946b39b8b24c3bf42f87461d71e61a": "Non riuscito a collegarsi a {0}: {1}", + "1b96db9d6574f771b8a481d6692b19d1": "L'indice {0} non esiste", + "32494893ae5067ca7944c5d50a699445": "Incapace di rilevare nome del servizio, {{package.json}} non ha nessuna proprietà \"del nome.\"Per favore aggiornate il vostro package.json o specificate un nome del servizio.Vedete {{`{0} -- l'aiuto}} `per di più dettaglia.", + "3c9e808f506d30fa603f262b8b2d952f": "Utilizzo non valido, {{`{0} di prova -- aiuto.}}", + "428d89a07f67cc0fb564cb71afc7c63b": "Percorso non valido, non un indice", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "Schierate `{0} `a `{1} `fallito: {2}", + "5979ce669741c05125c9cd188b25490f": "Errore mentre leggere archivio: {0}", + "63e17bd19141679739ef73ea050d5d07": "Il ramo `{0} `non è disponibile in questo deposito", + "699165228b0c9f2ceba22cb3c009c3c5": "Non valido url", + "70e3014d13daf4aa92c75300671854b6": "Ramo non valido", + "7505a317caea95d045fe62de0b6e5819": "Non valido URL `{0}. Le solo URL http:// sono supportate.", + "7daa7e1103db022989b15f9911a008b2": "Errore collegandosi a server: {0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "Errore che realizza galleria: {0}", + "8b11479607ff0842f800cf914692bb45": "Le credenziali valide devono essere date nell'URL.", + "a92646afd9c4b22bb4e2aa68259c2273": "Utilizzo non valido (opzione vicina '{0}'), {{`{1} di prova -- aiuto.}}", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL `{0} `non è valido", + "ad48139ecdc33ed94bb5166e62b573b1": "Non valido URL `{0}. Le solo} URL {{localhost}} sono supportate.", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}} Non è riuscito", + "d870f51884c0ce8fd49309c7c865a046": "Errore HTTP {0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "Questo indice non contiene un} deposito {{git} valido }", + "f9c7939a8397ee022fefee2bdb3407af": "Non valida URL" +} diff --git a/intl/ja/messages.json b/intl/ja/messages.json new file mode 100644 index 0000000..199cb25 --- /dev/null +++ b/intl/ja/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "配備します`{0}`ので`{1}`への`{2}`", + "0a402996683b8af6001a51d13edae1e2": "配備し損ねます`{0}`ので`{1}`への`{2}`経由で`{3}`", + "0c5caf9bcef355ca74967f6d820a94ea": "リモコンにアクセスすることができません。もし認証が必要とされれば、信任状は、URLで与えられるべきです。", + "0dee2a33280f6051b6e3f06a0d537c31": "配備することができません`{0}`:ないひとつの{{npm}}包みディレクトリー", + "14946b39b8b24c3bf42f87461d71e61a": "接続し損ねます{0}:{1}", + "1b96db9d6574f771b8a481d6692b19d1": "ディレクトリー{0}存在しません", + "32494893ae5067ca7944c5d50a699445": "サービス名前を見つけることができないです、{{package.json}}どんな「名前」財産も持っていません。どうぞあなたのpackage.jsonを更新してあるいはサービス名前を指定して下さい。見ます{{`{0}--助け`より多くの詳細のための}}。", + "3c9e808f506d30fa603f262b8b2d952f": "無効な使い方、試み{{`{0}--助け`}}。", + "428d89a07f67cc0fb564cb71afc7c63b": "ディレクトリーではなく無効な道", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "配備して下さい`{0}`への`{1}`失敗されました:{2}", + "5979ce669741c05125c9cd188b25490f": "間違いファイルを読んでいる間に:{0}", + "63e17bd19141679739ef73ea050d5d07": "枝`{0}`この倉庫で利用できません", + "699165228b0c9f2ceba22cb3c009c3c5": "無効なurl", + "70e3014d13daf4aa92c75300671854b6": "無効な枝", + "7505a317caea95d045fe62de0b6e5819": "無効なURL`{0}`。HTTP://URLだけは、支えられます。", + "7daa7e1103db022989b15f9911a008b2": "サーバーに接続している間違い:{0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "トンネルを設立している間違い:{0}", + "8b11479607ff0842f800cf914692bb45": "妥当な信任状は、URLで与えられなくてはいけません。", + "a92646afd9c4b22bb4e2aa68259c2273": "無効な使い方(近くの選択{0}’)、試みます{{`{1}--助け`}}。", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL`{0}`妥当ではありません", + "ad48139ecdc33ed94bb5166e62b573b1": "無効なURL`{0}`。唯一です{{localhost}}URLは支えられます。", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}}失敗しました", + "d870f51884c0ce8fd49309c7c865a046": "HTTP間違い{0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "このディレクトリーが含みませんひとつの妥当です{{git}}倉庫", + "f9c7939a8397ee022fefee2bdb3407af": "無効なURL" +} diff --git a/intl/ko/messages.json b/intl/ko/messages.json new file mode 100644 index 0000000..140b5cb --- /dev/null +++ b/intl/ko/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "{1}으로서 {2}에(게){0}을 배치했다.", + "0a402996683b8af6001a51d13edae1e2": "{1}으로서 {2}에(게){3}을 통해 {0}을 배치하지 못하였다.", + "0c5caf9bcef355ca74967f6d820a94ea": "리모트에 접근할 수 없다. 증명을 필요로 한다면 신임장이 URL에(서)주어 지었을 것이다.", + "0dee2a33280f6051b6e3f06a0d537c31": "{0}을 배치할 수 없다: {{npm} 패키지 디렉토리이지 않기", + "14946b39b8b24c3bf42f87461d71e61a": "{0}에 연결하지 못하였다: {1}", + "1b96db9d6574f771b8a481d6692b19d1": "디렉토리 {0}은 존재하지 않는다.", + "32494893ae5067ca7944c5d50a699445": "서비스 이름을 탐지할 수 없게 {{package.json}은 \"이름\" 자산(소유지)이 없다. 당신의 package.json을 업데이트하거나 서비스 이름을 명시하십시오. {{`{0}을 보아라-그 이상을 위해 도움이 상세히 말한다.", + "3c9e808f506d30fa603f262b8b2d952f": "효력이 없는 사용,시도 {{`{0}-도움.", + "428d89a07f67cc0fb564cb71afc7c63b": "효력이 없는 길,디렉토리이지 않기", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "실망해서 {1}에(게){0}을 배치해라: {2}", + "5979ce669741c05125c9cd188b25490f": "파일을 읽는 동안 오류: {0}", + "63e17bd19141679739ef73ea050d5d07": "브랜치 {0}은 이 저장고에(서)사용가능하지 않다.", + "699165228b0c9f2ceba22cb3c009c3c5": "효력이 없는 url", + "70e3014d13daf4aa92c75300671854b6": "효력이 없는 브랜치", + "7505a317caea95d045fe62de0b6e5819": "효력이 없는 URL {0}. http:// URLs만을 지지한다.", + "7daa7e1103db022989b15f9911a008b2": "서버에 연결하는 오류: {0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "터널을 세우는 오류: {0}", + "8b11479607ff0842f800cf914692bb45": "유효한 신임장이 URL에(서)주어 져야 한다.", + "a92646afd9c4b22bb4e2aa68259c2273": "효력이 없는 사용(가까운 옵션 '{0}' ),시도 {{`{1}-도움.", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL {0}은 유효하지 않다.", + "ad48139ecdc33ed94bb5166e62b573b1": "효력이 없는 URL {0}. {{localhost} URLs만을 지지한다.", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}은 실패했다.", + "d870f51884c0ce8fd49309c7c865a046": "HTTP 오류 {0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "이 디렉토리는 유효한 {{git} 저장고를 가지고 있지 않다.", + "f9c7939a8397ee022fefee2bdb3407af": "효력이 없는 URL" +} diff --git a/intl/pt/messages.json b/intl/pt/messages.json new file mode 100644 index 0000000..19d71ac --- /dev/null +++ b/intl/pt/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "Implementado ` {0} ` como ` {1} ` para ` {2} `", + "0a402996683b8af6001a51d13edae1e2": "Falha ao implementar ` {0} ` como ` {1} ` para ` {2} ` via ` {3} `", + "0c5caf9bcef355ca74967f6d820a94ea": "Impossível acessar remoto. Se a autenticação for necessária, as credenciais devem ser fornecidas na URL.", + "0dee2a33280f6051b6e3f06a0d537c31": "", + "14946b39b8b24c3bf42f87461d71e61a": "Falha ao conectar-se ao {0}: {1}", + "1b96db9d6574f771b8a481d6692b19d1": "O diretório {0} não existe", + "32494893ae5067ca7944c5d50a699445": "", + "3c9e808f506d30fa603f262b8b2d952f": "", + "428d89a07f67cc0fb564cb71afc7c63b": "Caminho inválido, não um diretório", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "Implementar ` {0} ` para ` {1} ` falhou: {2}", + "5979ce669741c05125c9cd188b25490f": "Erro ao ler o arquivo: {0}", + "63e17bd19141679739ef73ea050d5d07": "Ramificação ` {0} ` não está disponível neste repositório", + "699165228b0c9f2ceba22cb3c009c3c5": "URL inválida", + "70e3014d13daf4aa92c75300671854b6": "Ramificação inválida", + "7505a317caea95d045fe62de0b6e5819": "URL inválida ` {0} `. Apenas http:// URLs são suportados.", + "7daa7e1103db022989b15f9911a008b2": "Erro ao conectar-se ao servidor: {0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "Erro ao configurar túnel: {0}", + "8b11479607ff0842f800cf914692bb45": "Credenciais válidas devem ser fornecidos na URL.", + "a92646afd9c4b22bb4e2aa68259c2273": "", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL ` {0} ` não é válido", + "ad48139ecdc33ed94bb5166e62b573b1": "", + "b4a6153b6150d282c79cf75d0705785e": "", + "d870f51884c0ce8fd49309c7c865a046": "Erro de HTTP {0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "", + "f9c7939a8397ee022fefee2bdb3407af": "URL inválida" +} diff --git a/intl/zh-Hans/messages.json b/intl/zh-Hans/messages.json new file mode 100644 index 0000000..3e57341 --- /dev/null +++ b/intl/zh-Hans/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "`作为`{1}`关于`{2}部署{0}", + "0a402996683b8af6001a51d13edae1e2": "未能`作为`{1}`关于`{2}`经由`{3}部署{0}", + "0c5caf9bcef355ca74967f6d820a94ea": "不能访问实况广播节目。如果证明被要求,证明将被在 URL 中给出。", + "0dee2a33280f6051b6e3f06a0d537c31": "不能部署`{0}`:不一{{npm}包裹目录", + "14946b39b8b24c3bf42f87461d71e61a": "未能连接到{0}:{1}", + "1b96db9d6574f771b8a481d6692b19d1": "目录{0}不确实存在", + "32494893ae5067ca7944c5d50a699445": "不能察觉为所作的服务名字,{{package.json}没有“假名字”财产。请更新你的 package.json 或者指定一为所作的服务名字作为。看见{{`{0}--对更多有帮助画详图。", + "3c9e808f506d30fa603f262b8b2d952f": "无效使用,尝试{{`{0}--对有帮助。", + "428d89a07f67cc0fb564cb71afc7c63b": "无效穿过的通道,不一目录", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "`关于`{1}部署{0}失败:{2}", + "5979ce669741c05125c9cd188b25490f": "同时阅读关于的文件的在中的错误:{0}", + "63e17bd19141679739ef73ea050d5d07": "分枝`{0}`是并非在这仓库中可用的", + "699165228b0c9f2ceba22cb3c009c3c5": "无效 url", + "70e3014d13daf4aa92c75300671854b6": "无效分枝", + "7505a317caea95d045fe62de0b6e5819": "无效 URL`{0}`。仅 http:// URL 被支撑。", + "7daa7e1103db022989b15f9911a008b2": "连接到服务器的在中的错误:{0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "建立隧道的在中的错误:{0}", + "8b11479607ff0842f800cf914692bb45": "内有效证明一定是在 URL 中给出。", + "a92646afd9c4b22bb4e2aa68259c2273": "无效使用(离近选择余地‘{0})’,尝试{{`{1}--对有帮助。", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL`{0}`是并非内有效", + "ad48139ecdc33ed94bb5166e62b573b1": "无效 URL`{0}`。仅{{localhost}URL 被支撑。", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}被失败", + "d870f51884c0ce8fd49309c7c865a046": "HTTP 在中的错误{0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "这目录不确实含有一内有效{{git}仓库", + "f9c7939a8397ee022fefee2bdb3407af": "无效 URL" +} diff --git a/intl/zh-Hant/messages.json b/intl/zh-Hant/messages.json new file mode 100644 index 0000000..e0391aa --- /dev/null +++ b/intl/zh-Hant/messages.json @@ -0,0 +1,27 @@ +{ + "0099b15ad24474f028c0a35a53f52fd9": "`作為`{1}`關於`{2}部署{0}", + "0a402996683b8af6001a51d13edae1e2": "未能`作為`{1}`關於`{2}`經由`{3}部署{0}", + "0c5caf9bcef355ca74967f6d820a94ea": "不能訪問實況廣播節目。如果證明被要求,證明將在 URL 中被給出。", + "0dee2a33280f6051b6e3f06a0d537c31": "不能部署`{0}`:不一{{npm}包裹目錄", + "14946b39b8b24c3bf42f87461d71e61a": "未能連接到{0}:{1}", + "1b96db9d6574f771b8a481d6692b19d1": "目錄{0}不確實存在", + "32494893ae5067ca7944c5d50a699445": "不能察覺為所作的服務名字,{{package.json}沒有“名字』財產。請更新你的 package.json 或者指定一為所作的服務名字作為。看見{{`{0}--對更多有幫助畫詳圖。", + "3c9e808f506d30fa603f262b8b2d952f": "無效使用,嘗試{{`{0}--對有幫助。", + "428d89a07f67cc0fb564cb71afc7c63b": "無效穿過的通道,不一目錄", + "528f2bc3a794ad63da2e1bfd5fc79fe0": "`關於`{1}部署{0}失敗:{2}", + "5979ce669741c05125c9cd188b25490f": "同時閱讀關於的檔案的在中的錯誤:{0}", + "63e17bd19141679739ef73ea050d5d07": "分枝`{0}`是並不在這倉庫中可用", + "699165228b0c9f2ceba22cb3c009c3c5": "無效 url", + "70e3014d13daf4aa92c75300671854b6": "無效分枝", + "7505a317caea95d045fe62de0b6e5819": "無效 URL`{0}`。僅 http:// URL 被支撐。", + "7daa7e1103db022989b15f9911a008b2": "連接到伺服器的在中的錯誤:{0}", + "7e23e9511e64cbc6e4e5a801b5fd3e14": "建立隧道的在中的錯誤:{0}", + "8b11479607ff0842f800cf914692bb45": "內有效證明一定是在 URL 中給出。", + "a92646afd9c4b22bb4e2aa68259c2273": "無效使用(離近選擇餘地‘{0})」,嘗試{{`{1}--對有幫助。", + "aa9c1df2cd67ed86e10427cda41a7f34": "URL`{0}`是並不內有效", + "ad48139ecdc33ed94bb5166e62b573b1": "無效 URL`{0}`。僅{{localhost}URL 被支撐。", + "b4a6153b6150d282c79cf75d0705785e": "{{git push}失敗", + "d870f51884c0ce8fd49309c7c865a046": "HTTP 在中的錯誤{0}", + "dcd9e9c0430b4ae8667b3aeddd87a0e5": "這目錄不確實含有一內有效{{git}倉庫", + "f9c7939a8397ee022fefee2bdb3407af": "無效 URL" +} diff --git a/lib/deploy-endpoint.js b/lib/deploy-endpoint.js index 43d1011..bc795c0 100644 --- a/lib/deploy-endpoint.js +++ b/lib/deploy-endpoint.js @@ -2,6 +2,7 @@ var MeshClient = require('strong-mesh-models').Client; var debug = require('debug')('strong-deploy'); +var g = require('strong-globalize'); exports.get = getDeployEndpoint; @@ -9,7 +10,7 @@ function getDeployEndpoint(url, serviceName, clusterSize, callback) { var client = new MeshClient(url); client.checkRemoteApiSemver(function(err) { if (err) { - console.error('Failed to connect to %s: %s', + g.error('Failed to connect to %s: %s', url, err.message || err); return callback(err); } @@ -22,11 +23,11 @@ function serviceFindOrCreate(client, serviceName, clusterSize, callback) { if (err) { debug('client.serviceFindOrCreate(%s, 1): %s', serviceName, err); if (err.statusCode === 401) { - console.error( + g.error( 'Cannot access remote. If authentication is required,' + ' credentials should be given in the URL.'); } else { - console.error('Error connecting to server:', err); + g.error('Error connecting to server: %s', err); } return callback(err); } diff --git a/lib/git.js b/lib/git.js index f72b365..e8d5b3d 100644 --- a/lib/git.js +++ b/lib/git.js @@ -2,6 +2,7 @@ var async = require('async'); var childProcess = require('child_process'); var debug = require('debug')('strong-deploy:git'); var getDeployEndpoint = require('./deploy-endpoint').get; +var g = require('strong-globalize'); var shell = require('shelljs'); var util = require('util'); var urlParse = require('url').parse; @@ -9,12 +10,13 @@ var urlFormat = require('url').format; function getCurrentBranch(workingDir) { if (!shell.pushd(workingDir)) { - return Error(util.format('Directory %s does not exist', workingDir)); + return g.Error('Directory %s does not exist', workingDir); } var output = shell.exec('git symbolic-ref --short HEAD', {silent: true}); shell.popd(); if (output.code !== 0) { - return Error('This directory does not contain a valid git repository'); + return g.Error( + 'This directory does not contain a valid {{git}} repository'); } return output.output.trim(); } @@ -28,9 +30,9 @@ function isValidBranch(workingDir, branchName, callback) { debug('stderr: ' + stderr); if (err) { debug(err); - console.error('Branch `%s` is not available in this repository', + g.error('Branch `%s` is not available in this repository', branchName); - err = Error('invalid branch'); + err = g.Error('invalid branch'); } callback(err); }); @@ -46,9 +48,9 @@ function isValidGitURL(workingDir, url, callback) { if (err) { debug(err); if (urlFormat(urlParse(url)) !== url) { - console.error('URL `%s` is not valid', url); + g.error('URL `%s` is not valid', url); } - err = Error('invalid url'); + err = g.Error('invalid url'); } callback(err); }); @@ -73,7 +75,7 @@ function doGitPush(workingDir, gitURL, branch, callback) { child.once('exit', function(code) { if (!callback) return; - if (code !== 0) return callback(Error('git push failed')); + if (code !== 0) return callback(g.Error('{{git push}} failed')); callback(); callback = null; }); diff --git a/lib/post-json.js b/lib/post-json.js index 6142b42..9399306 100644 --- a/lib/post-json.js +++ b/lib/post-json.js @@ -1,6 +1,7 @@ var concat = require('concat-stream'); var debug = require('debug')('strong-deploy'); var getDeployEndpoint = require('./deploy-endpoint').get; +var g = require('strong-globalize'); var http = require('http'); var path = require('path'); var shell = require('shelljs'); @@ -22,23 +23,23 @@ function _performLocalDeployment(service, baseURL, what, callback) { var postURL = url.parse(baseURL); if (postURL.protocol !== 'http:') { - console.error('Invalid URL `%s`. Only http:// URLs are supported.', + g.error('Invalid URL `%s`. Only http:// URLs are supported.', baseURL ); - return callback(Error('Invalid URL')); + return callback(g.Error('Invalid URL')); } if (postURL.hostname) { if (postURL.hostname !== 'localhost' && postURL.hostname !== '127.0.0.1') { - console.error('Invalid URL `%s`. Only localhost URLs are supported.', + g.error('Invalid URL `%s`. Only {{localhost}} URLs are supported.', baseURL); - return callback(Error('Invalid URL')); + return callback(g.Error('Invalid URL')); } } if (!shell.test('-d', what)) { - console.error('Cannot deploy `%s`: not an npm package directory', what); - return callback(Error('Invalid path, not a directory')); + g.error('Cannot deploy `%s`: not an {{npm}} package directory', what); + return callback(g.Error('Invalid path, not a directory')); } var postOptions = { @@ -64,14 +65,14 @@ function _performLocalDeployment(service, baseURL, what, callback) { return callback(null, service); } console.error('%s', msg); - callback(Error('HTTP error ' + res.statusCode)); + callback(g.Error('HTTP error %s', res.statusCode)); })); }); req.end(JSON.stringify(postBody)); req.on('error', function(err) { - console.error('Deploy `%s` to `%s` failed: %s', + g.error('Deploy `%s` to `%s` failed: %s', what, baseURL, err.message diff --git a/lib/put-file.js b/lib/put-file.js index f8ed2c2..bd4d8a4 100644 --- a/lib/put-file.js +++ b/lib/put-file.js @@ -2,6 +2,7 @@ var concat = require('concat-stream'); var debug = require('debug')('strong-deploy'); var fs = require('fs'); var getDeployEndpoint = require('./deploy-endpoint').get; +var g = require('strong-globalize'); var http = require('http'); var path = require('path'); var url = require('url'); @@ -20,16 +21,16 @@ function _performHttpPutDeployment(service, baseURL, npmPkg, callback) { var fileReader = fs.createReadStream(npmPkg); fileReader.on('error', function(err) { - console.error('Error while reading file: %s', err); + g.error('Error while reading file: %s', err); callback(err); }); var postURL = url.parse(baseURL); if (postURL.protocol !== 'http:') { - console.error('Invalid URL `%s`. Only http:// URLs are supported.', + g.error('Invalid URL `%s`. Only http:// URLs are supported.', baseURL ); - return callback(Error('Invalid URL')); + return callback(g.Error('Invalid URL')); } var postOptions = { @@ -48,16 +49,16 @@ function _performHttpPutDeployment(service, baseURL, npmPkg, callback) { } if (res.statusCode === 401 || res.statusCode === 403) { - console.error('Valid credentials must be given in the URL'); + g.error('Valid credentials must be given in the URL.'); } else { console.error('%s', msg); } - callback(Error('HTTP error' + res.statusCode)); + callback(g.Error('HTTP error %s', res.statusCode)); })); }); req.on('error', function(err) { - console.error('Deploy `%s` to `%s` failed: %s', + g.error('Deploy `%s` to `%s` failed: %s', npmPkg, baseURL, err.message diff --git a/package.json b/package.json index 7ff6915..704c5ea 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "debug": "^2.0.0", "posix-getopt": "^1.0.0", "shelljs": "^0.3.0", + "strong-globalize": "^1.0.0", "strong-mesh-models": "^7.0.0", "strong-tunnel": "^1.1.1", "strong-url-defaults": "^1.0.0" From 6dfaf4fa990eed5175bd4f95523fbb9e0101e8a2 Mon Sep 17 00:00:00 2001 From: Tetsuo Seto Date: Fri, 22 Jan 2016 13:00:14 -0800 Subject: [PATCH 2/4] Remove non-En directories under intl --- .gitignore | 10 ++++++++++ intl/de/messages.json | 27 --------------------------- intl/es/messages.json | 27 --------------------------- intl/fr/messages.json | 27 --------------------------- intl/it/messages.json | 27 --------------------------- intl/ja/messages.json | 27 --------------------------- intl/ko/messages.json | 27 --------------------------- intl/pt/messages.json | 27 --------------------------- intl/zh-Hans/messages.json | 27 --------------------------- intl/zh-Hant/messages.json | 27 --------------------------- 10 files changed, 10 insertions(+), 243 deletions(-) delete mode 100644 intl/de/messages.json delete mode 100644 intl/es/messages.json delete mode 100644 intl/fr/messages.json delete mode 100644 intl/it/messages.json delete mode 100644 intl/ja/messages.json delete mode 100644 intl/ko/messages.json delete mode 100644 intl/pt/messages.json delete mode 100644 intl/zh-Hans/messages.json delete mode 100644 intl/zh-Hant/messages.json diff --git a/.gitignore b/.gitignore index 0899046..cbf0931 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,13 @@ node_modules test/.test_artifacts intl/MSG.json +intl/de +intl/es +intl/fr +intl/it +intl/ja +intl/ko +intl/pt +intl/ru +intl/zh-Hans +intl/zh-Hant diff --git a/intl/de/messages.json b/intl/de/messages.json deleted file mode 100644 index 698c325..0000000 --- a/intl/de/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "`{0} `als `{1} `zu `{2} eingesetzt", - "0a402996683b8af6001a51d13edae1e2": "`{0} Nicht ``als `{1} `zu `{2} `über `{3} eingesetzt", - "0c5caf9bcef355ca74967f6d820a94ea": "Kann keiner Zugang entfernt. Wenn Bestätigung erforderlich ist, sollten Ausweispapiere in der URL gegeben werden.", - "0dee2a33280f6051b6e3f06a0d537c31": "Kann `{0} nicht einsetzen: Nicht ein {{npm}} Paketverzeichnis", - "14946b39b8b24c3bf42f87461d71e61a": "Sich nicht mit {0} verbunden: {1}", - "1b96db9d6574f771b8a481d6692b19d1": "Verzeichnis {0} existiert nicht", - "32494893ae5067ca7944c5d50a699445": "Außer Stande, Servicenamen zu entdecken,} hat {{package.json}} keinen \"Namens\" Besitz.Bitte aktualisieren Sie Ihre package.json oder geben Sie einen Servicenamen an.Siehe {{`{0} -- helfen Sie}} `für weitere Details.", - "3c9e808f506d30fa603f262b8b2d952f": "Ungültiger Gebrauch, Versuchs {{`{0} -- Hilfe.}}", - "428d89a07f67cc0fb564cb71afc7c63b": "Ungültiger Pfad, nicht ein Verzeichnis", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "Setzen Sie `durch {0} `zu `{1} ein, ````gefallen: {2}", - "5979ce669741c05125c9cd188b25490f": "Fehler, während Akte lesen: {0}", - "63e17bd19141679739ef73ea050d5d07": "Zweig `{0} `steht nicht in diesem Lager zur Verfügung", - "699165228b0c9f2ceba22cb3c009c3c5": "Ungültige url", - "70e3014d13daf4aa92c75300671854b6": "Ungültiger Zweig", - "7505a317caea95d045fe62de0b6e5819": "Ungültige URL `{0}. Nur http:// URLs werden unterstützt.", - "7daa7e1103db022989b15f9911a008b2": "Fehler, der sich mit Server verbindet: {0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "Fehler, der Tunnel aufstellt: {0}", - "8b11479607ff0842f800cf914692bb45": "Gültige Ausweispapiere müssen in der URL gegeben werden.", - "a92646afd9c4b22bb4e2aa68259c2273": "Ungültiger Gebrauch (nahe Option '{0}'), Versuchs {{`{1} -- Hilfe.}}", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL `{0} `ist nicht gültig", - "ad48139ecdc33ed94bb5166e62b573b1": "Ungültige URL `{0}. Nur {{localhost}} URL werden unterstützt.", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}} scheiterte", - "d870f51884c0ce8fd49309c7c865a046": "HTTP Fehler {0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "Dieses Verzeichnis enthält kein gültiges {{git}} Lager", - "f9c7939a8397ee022fefee2bdb3407af": "Ungültige URL" -} diff --git a/intl/es/messages.json b/intl/es/messages.json deleted file mode 100644 index 4bdb302..0000000 --- a/intl/es/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "Desplegado ` {0} `, ` {1} ` ` {2} `", - "0a402996683b8af6001a51d13edae1e2": "No se ha podido desplegar ` {0} `, ` {1} ` ` {2} ` ` mediante {3} `", - "0c5caf9bcef355ca74967f6d820a94ea": "No acceso remoto. Si la autenticación es necesaria, las credenciales deben darse en el URL.", - "0dee2a33280f6051b6e3f06a0d537c31": "", - "14946b39b8b24c3bf42f87461d71e61a": "No se ha podido conectar con {0}: {1}", - "1b96db9d6574f771b8a481d6692b19d1": "El directorio {0} no existe", - "32494893ae5067ca7944c5d50a699445": "", - "3c9e808f506d30fa603f262b8b2d952f": "", - "428d89a07f67cc0fb564cb71afc7c63b": "Vía de acceso, no un directorio", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "Desplegar ` {0} ` ` {1} ` ha fallado: {2}", - "5979ce669741c05125c9cd188b25490f": "Error al leer el archivo: {0}", - "63e17bd19141679739ef73ea050d5d07": "Poder ` {0} ` no está disponible en este repositorio", - "699165228b0c9f2ceba22cb3c009c3c5": "URL no válida", - "70e3014d13daf4aa92c75300671854b6": "Rama válida", - "7505a317caea95d045fe62de0b6e5819": "URL no válido ` {0} `. Sólo URL están soportados. Http://", - "7daa7e1103db022989b15f9911a008b2": "Error al conectar con el servidor: {0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "Error de túnel: {0}", - "8b11479607ff0842f800cf914692bb45": "Las credenciales válidas deben darse en el URL.", - "a92646afd9c4b22bb4e2aa68259c2273": "", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL ` {0} ` no es válido", - "ad48139ecdc33ed94bb5166e62b573b1": "", - "b4a6153b6150d282c79cf75d0705785e": "", - "d870f51884c0ce8fd49309c7c865a046": "Error HTTP {0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "", - "f9c7939a8397ee022fefee2bdb3407af": "URL no válida" -} diff --git a/intl/fr/messages.json b/intl/fr/messages.json deleted file mode 100644 index 7fa152f..0000000 --- a/intl/fr/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "Déployé ` {0} ` que ` {1} ` ` {2} `", - "0a402996683b8af6001a51d13edae1e2": "Impossible de déployer ` {0} ` que ` {1} ` ` {2} ` via ` {3} `", - "0c5caf9bcef355ca74967f6d820a94ea": "Impossible d'accéder à distance. Si l'authentification est requise, les données d'identification doivent être fournies dans l'URL.", - "0dee2a33280f6051b6e3f06a0d537c31": "", - "14946b39b8b24c3bf42f87461d71e61a": "Echec de la connexion à {0}: {1}", - "1b96db9d6574f771b8a481d6692b19d1": "Le répertoire {0} n'existe pas", - "32494893ae5067ca7944c5d50a699445": "", - "3c9e808f506d30fa603f262b8b2d952f": "", - "428d89a07f67cc0fb564cb71afc7c63b": "Chemin non valide et non un répertoire", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "Déployez ` {0} ` ` {1} ` a échoué: {2}", - "5979ce669741c05125c9cd188b25490f": "Erreur lors de la lecture du fichier: {0}", - "63e17bd19141679739ef73ea050d5d07": "Direction ` {0} ` n'est pas disponible dans ce référentiel", - "699165228b0c9f2ceba22cb3c009c3c5": "URL non valide", - "70e3014d13daf4aa92c75300671854b6": "Branche incorrecte", - "7505a317caea95d045fe62de0b6e5819": "URL non valide ` {0} `. Seules les URL http:// sont prises en charge.", - "7daa7e1103db022989b15f9911a008b2": "Erreur lors de la connexion au serveur: {0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "Erreur de configuration de tunnel: {0}", - "8b11479607ff0842f800cf914692bb45": "Données d'identification valides doivent être fournies dans l'URL.", - "a92646afd9c4b22bb4e2aa68259c2273": "", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL ` {0} ` n'est pas valide", - "ad48139ecdc33ed94bb5166e62b573b1": "", - "b4a6153b6150d282c79cf75d0705785e": "", - "d870f51884c0ce8fd49309c7c865a046": "Erreur HTTP {0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "", - "f9c7939a8397ee022fefee2bdb3407af": "URL non valide" -} diff --git a/intl/it/messages.json b/intl/it/messages.json deleted file mode 100644 index 95da3f7..0000000 --- a/intl/it/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "Schierato `{0} `come `{1} `a `{2}", - "0a402996683b8af6001a51d13edae1e2": "Non riuscito a schierare `{0} `come `{1} `a `{2} `per mezzo di `{3}", - "0c5caf9bcef355ca74967f6d820a94ea": "Non può accedere a remoto. Se l'autenticazione essere richiesta, le credenziali dovrebbero essere date nell'URL.", - "0dee2a33280f6051b6e3f06a0d537c31": "Non può schierare `{0}: Non un} indice di pacchetto {{npm} }", - "14946b39b8b24c3bf42f87461d71e61a": "Non riuscito a collegarsi a {0}: {1}", - "1b96db9d6574f771b8a481d6692b19d1": "L'indice {0} non esiste", - "32494893ae5067ca7944c5d50a699445": "Incapace di rilevare nome del servizio, {{package.json}} non ha nessuna proprietà \"del nome.\"Per favore aggiornate il vostro package.json o specificate un nome del servizio.Vedete {{`{0} -- l'aiuto}} `per di più dettaglia.", - "3c9e808f506d30fa603f262b8b2d952f": "Utilizzo non valido, {{`{0} di prova -- aiuto.}}", - "428d89a07f67cc0fb564cb71afc7c63b": "Percorso non valido, non un indice", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "Schierate `{0} `a `{1} `fallito: {2}", - "5979ce669741c05125c9cd188b25490f": "Errore mentre leggere archivio: {0}", - "63e17bd19141679739ef73ea050d5d07": "Il ramo `{0} `non è disponibile in questo deposito", - "699165228b0c9f2ceba22cb3c009c3c5": "Non valido url", - "70e3014d13daf4aa92c75300671854b6": "Ramo non valido", - "7505a317caea95d045fe62de0b6e5819": "Non valido URL `{0}. Le solo URL http:// sono supportate.", - "7daa7e1103db022989b15f9911a008b2": "Errore collegandosi a server: {0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "Errore che realizza galleria: {0}", - "8b11479607ff0842f800cf914692bb45": "Le credenziali valide devono essere date nell'URL.", - "a92646afd9c4b22bb4e2aa68259c2273": "Utilizzo non valido (opzione vicina '{0}'), {{`{1} di prova -- aiuto.}}", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL `{0} `non è valido", - "ad48139ecdc33ed94bb5166e62b573b1": "Non valido URL `{0}. Le solo} URL {{localhost}} sono supportate.", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}} Non è riuscito", - "d870f51884c0ce8fd49309c7c865a046": "Errore HTTP {0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "Questo indice non contiene un} deposito {{git} valido }", - "f9c7939a8397ee022fefee2bdb3407af": "Non valida URL" -} diff --git a/intl/ja/messages.json b/intl/ja/messages.json deleted file mode 100644 index 199cb25..0000000 --- a/intl/ja/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "配備します`{0}`ので`{1}`への`{2}`", - "0a402996683b8af6001a51d13edae1e2": "配備し損ねます`{0}`ので`{1}`への`{2}`経由で`{3}`", - "0c5caf9bcef355ca74967f6d820a94ea": "リモコンにアクセスすることができません。もし認証が必要とされれば、信任状は、URLで与えられるべきです。", - "0dee2a33280f6051b6e3f06a0d537c31": "配備することができません`{0}`:ないひとつの{{npm}}包みディレクトリー", - "14946b39b8b24c3bf42f87461d71e61a": "接続し損ねます{0}:{1}", - "1b96db9d6574f771b8a481d6692b19d1": "ディレクトリー{0}存在しません", - "32494893ae5067ca7944c5d50a699445": "サービス名前を見つけることができないです、{{package.json}}どんな「名前」財産も持っていません。どうぞあなたのpackage.jsonを更新してあるいはサービス名前を指定して下さい。見ます{{`{0}--助け`より多くの詳細のための}}。", - "3c9e808f506d30fa603f262b8b2d952f": "無効な使い方、試み{{`{0}--助け`}}。", - "428d89a07f67cc0fb564cb71afc7c63b": "ディレクトリーではなく無効な道", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "配備して下さい`{0}`への`{1}`失敗されました:{2}", - "5979ce669741c05125c9cd188b25490f": "間違いファイルを読んでいる間に:{0}", - "63e17bd19141679739ef73ea050d5d07": "枝`{0}`この倉庫で利用できません", - "699165228b0c9f2ceba22cb3c009c3c5": "無効なurl", - "70e3014d13daf4aa92c75300671854b6": "無効な枝", - "7505a317caea95d045fe62de0b6e5819": "無効なURL`{0}`。HTTP://URLだけは、支えられます。", - "7daa7e1103db022989b15f9911a008b2": "サーバーに接続している間違い:{0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "トンネルを設立している間違い:{0}", - "8b11479607ff0842f800cf914692bb45": "妥当な信任状は、URLで与えられなくてはいけません。", - "a92646afd9c4b22bb4e2aa68259c2273": "無効な使い方(近くの選択{0}’)、試みます{{`{1}--助け`}}。", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL`{0}`妥当ではありません", - "ad48139ecdc33ed94bb5166e62b573b1": "無効なURL`{0}`。唯一です{{localhost}}URLは支えられます。", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}}失敗しました", - "d870f51884c0ce8fd49309c7c865a046": "HTTP間違い{0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "このディレクトリーが含みませんひとつの妥当です{{git}}倉庫", - "f9c7939a8397ee022fefee2bdb3407af": "無効なURL" -} diff --git a/intl/ko/messages.json b/intl/ko/messages.json deleted file mode 100644 index 140b5cb..0000000 --- a/intl/ko/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "{1}으로서 {2}에(게){0}을 배치했다.", - "0a402996683b8af6001a51d13edae1e2": "{1}으로서 {2}에(게){3}을 통해 {0}을 배치하지 못하였다.", - "0c5caf9bcef355ca74967f6d820a94ea": "리모트에 접근할 수 없다. 증명을 필요로 한다면 신임장이 URL에(서)주어 지었을 것이다.", - "0dee2a33280f6051b6e3f06a0d537c31": "{0}을 배치할 수 없다: {{npm} 패키지 디렉토리이지 않기", - "14946b39b8b24c3bf42f87461d71e61a": "{0}에 연결하지 못하였다: {1}", - "1b96db9d6574f771b8a481d6692b19d1": "디렉토리 {0}은 존재하지 않는다.", - "32494893ae5067ca7944c5d50a699445": "서비스 이름을 탐지할 수 없게 {{package.json}은 \"이름\" 자산(소유지)이 없다. 당신의 package.json을 업데이트하거나 서비스 이름을 명시하십시오. {{`{0}을 보아라-그 이상을 위해 도움이 상세히 말한다.", - "3c9e808f506d30fa603f262b8b2d952f": "효력이 없는 사용,시도 {{`{0}-도움.", - "428d89a07f67cc0fb564cb71afc7c63b": "효력이 없는 길,디렉토리이지 않기", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "실망해서 {1}에(게){0}을 배치해라: {2}", - "5979ce669741c05125c9cd188b25490f": "파일을 읽는 동안 오류: {0}", - "63e17bd19141679739ef73ea050d5d07": "브랜치 {0}은 이 저장고에(서)사용가능하지 않다.", - "699165228b0c9f2ceba22cb3c009c3c5": "효력이 없는 url", - "70e3014d13daf4aa92c75300671854b6": "효력이 없는 브랜치", - "7505a317caea95d045fe62de0b6e5819": "효력이 없는 URL {0}. http:// URLs만을 지지한다.", - "7daa7e1103db022989b15f9911a008b2": "서버에 연결하는 오류: {0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "터널을 세우는 오류: {0}", - "8b11479607ff0842f800cf914692bb45": "유효한 신임장이 URL에(서)주어 져야 한다.", - "a92646afd9c4b22bb4e2aa68259c2273": "효력이 없는 사용(가까운 옵션 '{0}' ),시도 {{`{1}-도움.", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL {0}은 유효하지 않다.", - "ad48139ecdc33ed94bb5166e62b573b1": "효력이 없는 URL {0}. {{localhost} URLs만을 지지한다.", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}은 실패했다.", - "d870f51884c0ce8fd49309c7c865a046": "HTTP 오류 {0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "이 디렉토리는 유효한 {{git} 저장고를 가지고 있지 않다.", - "f9c7939a8397ee022fefee2bdb3407af": "효력이 없는 URL" -} diff --git a/intl/pt/messages.json b/intl/pt/messages.json deleted file mode 100644 index 19d71ac..0000000 --- a/intl/pt/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "Implementado ` {0} ` como ` {1} ` para ` {2} `", - "0a402996683b8af6001a51d13edae1e2": "Falha ao implementar ` {0} ` como ` {1} ` para ` {2} ` via ` {3} `", - "0c5caf9bcef355ca74967f6d820a94ea": "Impossível acessar remoto. Se a autenticação for necessária, as credenciais devem ser fornecidas na URL.", - "0dee2a33280f6051b6e3f06a0d537c31": "", - "14946b39b8b24c3bf42f87461d71e61a": "Falha ao conectar-se ao {0}: {1}", - "1b96db9d6574f771b8a481d6692b19d1": "O diretório {0} não existe", - "32494893ae5067ca7944c5d50a699445": "", - "3c9e808f506d30fa603f262b8b2d952f": "", - "428d89a07f67cc0fb564cb71afc7c63b": "Caminho inválido, não um diretório", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "Implementar ` {0} ` para ` {1} ` falhou: {2}", - "5979ce669741c05125c9cd188b25490f": "Erro ao ler o arquivo: {0}", - "63e17bd19141679739ef73ea050d5d07": "Ramificação ` {0} ` não está disponível neste repositório", - "699165228b0c9f2ceba22cb3c009c3c5": "URL inválida", - "70e3014d13daf4aa92c75300671854b6": "Ramificação inválida", - "7505a317caea95d045fe62de0b6e5819": "URL inválida ` {0} `. Apenas http:// URLs são suportados.", - "7daa7e1103db022989b15f9911a008b2": "Erro ao conectar-se ao servidor: {0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "Erro ao configurar túnel: {0}", - "8b11479607ff0842f800cf914692bb45": "Credenciais válidas devem ser fornecidos na URL.", - "a92646afd9c4b22bb4e2aa68259c2273": "", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL ` {0} ` não é válido", - "ad48139ecdc33ed94bb5166e62b573b1": "", - "b4a6153b6150d282c79cf75d0705785e": "", - "d870f51884c0ce8fd49309c7c865a046": "Erro de HTTP {0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "", - "f9c7939a8397ee022fefee2bdb3407af": "URL inválida" -} diff --git a/intl/zh-Hans/messages.json b/intl/zh-Hans/messages.json deleted file mode 100644 index 3e57341..0000000 --- a/intl/zh-Hans/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "`作为`{1}`关于`{2}部署{0}", - "0a402996683b8af6001a51d13edae1e2": "未能`作为`{1}`关于`{2}`经由`{3}部署{0}", - "0c5caf9bcef355ca74967f6d820a94ea": "不能访问实况广播节目。如果证明被要求,证明将被在 URL 中给出。", - "0dee2a33280f6051b6e3f06a0d537c31": "不能部署`{0}`:不一{{npm}包裹目录", - "14946b39b8b24c3bf42f87461d71e61a": "未能连接到{0}:{1}", - "1b96db9d6574f771b8a481d6692b19d1": "目录{0}不确实存在", - "32494893ae5067ca7944c5d50a699445": "不能察觉为所作的服务名字,{{package.json}没有“假名字”财产。请更新你的 package.json 或者指定一为所作的服务名字作为。看见{{`{0}--对更多有帮助画详图。", - "3c9e808f506d30fa603f262b8b2d952f": "无效使用,尝试{{`{0}--对有帮助。", - "428d89a07f67cc0fb564cb71afc7c63b": "无效穿过的通道,不一目录", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "`关于`{1}部署{0}失败:{2}", - "5979ce669741c05125c9cd188b25490f": "同时阅读关于的文件的在中的错误:{0}", - "63e17bd19141679739ef73ea050d5d07": "分枝`{0}`是并非在这仓库中可用的", - "699165228b0c9f2ceba22cb3c009c3c5": "无效 url", - "70e3014d13daf4aa92c75300671854b6": "无效分枝", - "7505a317caea95d045fe62de0b6e5819": "无效 URL`{0}`。仅 http:// URL 被支撑。", - "7daa7e1103db022989b15f9911a008b2": "连接到服务器的在中的错误:{0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "建立隧道的在中的错误:{0}", - "8b11479607ff0842f800cf914692bb45": "内有效证明一定是在 URL 中给出。", - "a92646afd9c4b22bb4e2aa68259c2273": "无效使用(离近选择余地‘{0})’,尝试{{`{1}--对有帮助。", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL`{0}`是并非内有效", - "ad48139ecdc33ed94bb5166e62b573b1": "无效 URL`{0}`。仅{{localhost}URL 被支撑。", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}被失败", - "d870f51884c0ce8fd49309c7c865a046": "HTTP 在中的错误{0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "这目录不确实含有一内有效{{git}仓库", - "f9c7939a8397ee022fefee2bdb3407af": "无效 URL" -} diff --git a/intl/zh-Hant/messages.json b/intl/zh-Hant/messages.json deleted file mode 100644 index e0391aa..0000000 --- a/intl/zh-Hant/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "0099b15ad24474f028c0a35a53f52fd9": "`作為`{1}`關於`{2}部署{0}", - "0a402996683b8af6001a51d13edae1e2": "未能`作為`{1}`關於`{2}`經由`{3}部署{0}", - "0c5caf9bcef355ca74967f6d820a94ea": "不能訪問實況廣播節目。如果證明被要求,證明將在 URL 中被給出。", - "0dee2a33280f6051b6e3f06a0d537c31": "不能部署`{0}`:不一{{npm}包裹目錄", - "14946b39b8b24c3bf42f87461d71e61a": "未能連接到{0}:{1}", - "1b96db9d6574f771b8a481d6692b19d1": "目錄{0}不確實存在", - "32494893ae5067ca7944c5d50a699445": "不能察覺為所作的服務名字,{{package.json}沒有“名字』財產。請更新你的 package.json 或者指定一為所作的服務名字作為。看見{{`{0}--對更多有幫助畫詳圖。", - "3c9e808f506d30fa603f262b8b2d952f": "無效使用,嘗試{{`{0}--對有幫助。", - "428d89a07f67cc0fb564cb71afc7c63b": "無效穿過的通道,不一目錄", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "`關於`{1}部署{0}失敗:{2}", - "5979ce669741c05125c9cd188b25490f": "同時閱讀關於的檔案的在中的錯誤:{0}", - "63e17bd19141679739ef73ea050d5d07": "分枝`{0}`是並不在這倉庫中可用", - "699165228b0c9f2ceba22cb3c009c3c5": "無效 url", - "70e3014d13daf4aa92c75300671854b6": "無效分枝", - "7505a317caea95d045fe62de0b6e5819": "無效 URL`{0}`。僅 http:// URL 被支撐。", - "7daa7e1103db022989b15f9911a008b2": "連接到伺服器的在中的錯誤:{0}", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "建立隧道的在中的錯誤:{0}", - "8b11479607ff0842f800cf914692bb45": "內有效證明一定是在 URL 中給出。", - "a92646afd9c4b22bb4e2aa68259c2273": "無效使用(離近選擇餘地‘{0})」,嘗試{{`{1}--對有幫助。", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL`{0}`是並不內有效", - "ad48139ecdc33ed94bb5166e62b573b1": "無效 URL`{0}`。僅{{localhost}URL 被支撐。", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}失敗", - "d870f51884c0ce8fd49309c7c865a046": "HTTP 在中的錯誤{0}", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "這目錄不確實含有一內有效{{git}倉庫", - "f9c7939a8397ee022fefee2bdb3407af": "無效 URL" -} From d031e2a6228a2a9b265ac02511948d4908970190 Mon Sep 17 00:00:00 2001 From: Tetsuo Seto Date: Sun, 24 Jan 2016 16:15:07 -0800 Subject: [PATCH 3/4] Add clrd-data as dependency --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 704c5ea..6e91166 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ }, "dependencies": { "async": "^0.9.0", + "cldr-data": "^28.0.3", "concat-stream": "^1.4.7", "debug": "^2.0.0", "posix-getopt": "^1.0.0", From e96f383df3408fb0b64933554ed7191481758e81 Mon Sep 17 00:00:00 2001 From: Tetsuo Seto Date: Mon, 25 Jan 2016 20:21:50 -0800 Subject: [PATCH 4/4] Remove intl/en/messages.json and proof read strings --- .gitignore | 1 + bin/sl-deploy.js | 6 +++--- intl/en/messages.json | 27 --------------------------- intl/en/sl-deploy.txt | 32 +++++++++----------------------- lib/git.js | 2 +- lib/post-json.js | 10 +++++----- lib/put-file.js | 8 ++++---- 7 files changed, 23 insertions(+), 63 deletions(-) delete mode 100644 intl/en/messages.json diff --git a/.gitignore b/.gitignore index cbf0931..ea134b0 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ intl/pt intl/ru intl/zh-Hans intl/zh-Hant +intl/en/*.json diff --git a/bin/sl-deploy.js b/bin/sl-deploy.js index 1db7352..123213d 100755 --- a/bin/sl-deploy.js +++ b/bin/sl-deploy.js @@ -8,8 +8,8 @@ var defaults = require('strong-url-defaults'); var defaultPackagePath = require('../lib/package').getPackagePath; var deploy = require('../'); var fs = require('fs'); -var getPackageInfo = require('../lib/package').getPackageInfo; var g = require('strong-globalize'); +var getPackageInfo = require('../lib/package').getPackageInfo; var maybeTunnel = require('strong-tunnel'); var path = require('path'); @@ -82,8 +82,8 @@ serviceName = serviceName || (packageInfo ? packageInfo.name : null); if (!serviceName) { g.error( 'Unable to detect service name, {{package.json}} ' + - 'has no "name" property.\n' + - 'Please update your package.json or specify a service name.\n' + + 'has no "{{name}}" property.\n' + + 'Please update your {{package.json}} or specify a service name.\n' + 'See {{`%s --help`}} for more details.', $0 ); process.exit(1); diff --git a/intl/en/messages.json b/intl/en/messages.json deleted file mode 100644 index 4eb293e..0000000 --- a/intl/en/messages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "a92646afd9c4b22bb4e2aa68259c2273": "Invalid usage (near option '{0}'), try {{`{1} --help`}}.", - "3c9e808f506d30fa603f262b8b2d952f": "Invalid usage, try {{`{0} --help`}}.", - "32494893ae5067ca7944c5d50a699445": "Unable to detect service name, {{package.json}} has no \"name\" property.\nPlease update your package.json or specify a service name.\nSee {{`{0} --help`}} for more details.", - "7e23e9511e64cbc6e4e5a801b5fd3e14": "Error setting up tunnel: {0}", - "0a402996683b8af6001a51d13edae1e2": "Failed to deploy `{0}` as `{1}` to `{2}` via `{3}`", - "0099b15ad24474f028c0a35a53f52fd9": "Deployed `{0}` as `{1}` to `{2}`", - "14946b39b8b24c3bf42f87461d71e61a": "Failed to connect to {0}: {1}", - "0c5caf9bcef355ca74967f6d820a94ea": "Cannot access remote. If authentication is required, credentials should be given in the URL.", - "7daa7e1103db022989b15f9911a008b2": "Error connecting to server: {0}", - "1b96db9d6574f771b8a481d6692b19d1": "Directory {0} does not exist", - "dcd9e9c0430b4ae8667b3aeddd87a0e5": "This directory does not contain a valid {{git}} repository", - "63e17bd19141679739ef73ea050d5d07": "Branch `{0}` is not available in this repository", - "70e3014d13daf4aa92c75300671854b6": "invalid branch", - "aa9c1df2cd67ed86e10427cda41a7f34": "URL `{0}` is not valid", - "699165228b0c9f2ceba22cb3c009c3c5": "invalid url", - "b4a6153b6150d282c79cf75d0705785e": "{{git push}} failed", - "7505a317caea95d045fe62de0b6e5819": "Invalid URL `{0}`. Only http:// URLs are supported.", - "f9c7939a8397ee022fefee2bdb3407af": "Invalid URL", - "ad48139ecdc33ed94bb5166e62b573b1": "Invalid URL `{0}`. Only {{localhost}} URLs are supported.", - "0dee2a33280f6051b6e3f06a0d537c31": "Cannot deploy `{0}`: not an {{npm}} package directory", - "428d89a07f67cc0fb564cb71afc7c63b": "Invalid path, not a directory", - "d870f51884c0ce8fd49309c7c865a046": "HTTP error {0}", - "528f2bc3a794ad63da2e1bfd5fc79fe0": "Deploy `{0}` to `{1}` failed: {2}", - "5979ce669741c05125c9cd188b25490f": "Error while reading file: {0}", - "8b11479607ff0842f800cf914692bb45": "Valid credentials must be given in the URL." -} diff --git a/intl/en/sl-deploy.txt b/intl/en/sl-deploy.txt index 3b6f89a..7628652 100644 --- a/intl/en/sl-deploy.txt +++ b/intl/en/sl-deploy.txt @@ -15,35 +15,21 @@ Arguments: Defaults to the name of the application specified in the {{package.json}} file. - If a service with that name is not available on the process manager, - a new service will be created and the application will be deployed. - - {{URL}}: The URL of the StrongLoop process manager. - - Defaults to `{{http://localhost:8701}}`. If a URL is provided, both the host - and port is optional, they default to `{{localhost}}` and 8701, respectively. - If the server requires authentication, the credentials must be part of the - URL, see examples. - - URL may also use the `{{http+ssh://}}` protocol which will connect using ssh - and then tunnel the http requests over that connection. The ssh username - will default to your current user and authentication defaults to using your - current ssh-agent. The {{username}} can be overridden by setting an `{{SSH_USER}}` - environment variable. The authentication can be overridden to use an - existing private key instead of an agent by setting the `SSH_KEY` - environment variable to the path of the private key to be used. The port - used for ssh can be overridden by setting an `{{SSH_PORT}}` environment - variable. + If a service with that name is not available on the process manager, a new service will be created and the application will be deployed. + + {{URL}}: The {{URL}} of the StrongLoop process manager. + + Defaults to `{{http://localhost:8701}}`. If a {{URL}} is provided, both the host and port is optional, they default to `{{localhost}}` and 8701, respectively. If the server requires authentication, the credentials must be part of the URL, see examples. + + URL may also use the `{{http+ssh://}}` protocol which will connect using {{ssh}} and then tunnel the http requests over that connection. The {{ssh username}} will default to your current user and authentication defaults to using your current {{ssh-agent}}. The {{username}} can be overridden by setting an `{{SSH_USER}}` environment variable. The authentication can be overridden to use an existing private key instead of an agent by setting the `{{SSH_KEY}}` environment variable to the path of the private key to be used. The port used for ssh can be overridden by setting an `{{SSH_PORT}}` environment ariable. {{PACK}}: Deploy an {{NPM package/tarball}}. {{BRANCH}}: Deploy a {{git}} branch. -Default behaviour is to deploy to `{{http://localhost:8701}}`. An {{npm}} package from -the parent directory is deployed, if one is found for the current application -version, otherwise the {{git}} branch `{{deploy}}` is deployed. +Default behaviour is to deploy to `{{http://localhost:8701}}`. An {{npm}} package from the parent directory is deployed, if one is found for the current application version, otherwise the {{git}} branch `{{deploy}}` is deployed. -Note that if {{PACK}} or {{BRANCH}} is specified, URL *must* be specified as well. +Note that if {{PACK}} or {{BRANCH}} is specified, {{URL}} *must* be specified as well. Examples: diff --git a/lib/git.js b/lib/git.js index e8d5b3d..ccf3fdf 100644 --- a/lib/git.js +++ b/lib/git.js @@ -48,7 +48,7 @@ function isValidGitURL(workingDir, url, callback) { if (err) { debug(err); if (urlFormat(urlParse(url)) !== url) { - g.error('URL `%s` is not valid', url); + g.error('{{URL}} `%s` is not valid', url); } err = g.Error('invalid url'); } diff --git a/lib/post-json.js b/lib/post-json.js index 9399306..78dbada 100644 --- a/lib/post-json.js +++ b/lib/post-json.js @@ -23,17 +23,17 @@ function _performLocalDeployment(service, baseURL, what, callback) { var postURL = url.parse(baseURL); if (postURL.protocol !== 'http:') { - g.error('Invalid URL `%s`. Only http:// URLs are supported.', + g.error('Invalid {{URL}} `%s`. Only {{http:// URLs}} are supported.', baseURL ); - return callback(g.Error('Invalid URL')); + return callback(g.Error('Invalid {{URL}}')); } if (postURL.hostname) { if (postURL.hostname !== 'localhost' && postURL.hostname !== '127.0.0.1') { - g.error('Invalid URL `%s`. Only {{localhost}} URLs are supported.', + g.error('Invalid {{URL}} `%s`. Only {{localhost}} URLs are supported.', baseURL); - return callback(g.Error('Invalid URL')); + return callback(g.Error('Invalid {{URL}}')); } } @@ -65,7 +65,7 @@ function _performLocalDeployment(service, baseURL, what, callback) { return callback(null, service); } console.error('%s', msg); - callback(g.Error('HTTP error %s', res.statusCode)); + callback(g.Error('{{HTTP}} error %s', res.statusCode)); })); }); diff --git a/lib/put-file.js b/lib/put-file.js index bd4d8a4..bb8c038 100644 --- a/lib/put-file.js +++ b/lib/put-file.js @@ -27,10 +27,10 @@ function _performHttpPutDeployment(service, baseURL, npmPkg, callback) { var postURL = url.parse(baseURL); if (postURL.protocol !== 'http:') { - g.error('Invalid URL `%s`. Only http:// URLs are supported.', + g.error('Invalid {{URL}} `%s`. Only {{http:// URLs}} are supported.', baseURL ); - return callback(g.Error('Invalid URL')); + return callback(g.Error('Invalid {{URL}}')); } var postOptions = { @@ -49,11 +49,11 @@ function _performHttpPutDeployment(service, baseURL, npmPkg, callback) { } if (res.statusCode === 401 || res.statusCode === 403) { - g.error('Valid credentials must be given in the URL.'); + g.error('Valid credentials must be given in the {{URL}}.'); } else { console.error('%s', msg); } - callback(g.Error('HTTP error %s', res.statusCode)); + callback(g.Error('{{HTTP}} error %s', res.statusCode)); })); });