Skip to content

Commit e96f383

Browse files
committed
Remove intl/en/messages.json and proof read strings
1 parent d031e2a commit e96f383

File tree

7 files changed

+23
-63
lines changed

7 files changed

+23
-63
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ intl/pt
1414
intl/ru
1515
intl/zh-Hans
1616
intl/zh-Hant
17+
intl/en/*.json

bin/sl-deploy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var defaults = require('strong-url-defaults');
88
var defaultPackagePath = require('../lib/package').getPackagePath;
99
var deploy = require('../');
1010
var fs = require('fs');
11-
var getPackageInfo = require('../lib/package').getPackageInfo;
1211
var g = require('strong-globalize');
12+
var getPackageInfo = require('../lib/package').getPackageInfo;
1313
var maybeTunnel = require('strong-tunnel');
1414
var path = require('path');
1515

@@ -82,8 +82,8 @@ serviceName = serviceName || (packageInfo ? packageInfo.name : null);
8282
if (!serviceName) {
8383
g.error(
8484
'Unable to detect service name, {{package.json}} ' +
85-
'has no "name" property.\n' +
86-
'Please update your package.json or specify a service name.\n' +
85+
'has no "{{name}}" property.\n' +
86+
'Please update your {{package.json}} or specify a service name.\n' +
8787
'See {{`%s --help`}} for more details.', $0
8888
);
8989
process.exit(1);

intl/en/messages.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

intl/en/sl-deploy.txt

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,21 @@ Arguments:
1515

1616
Defaults to the name of the application specified in the {{package.json}} file.
1717

18-
If a service with that name is not available on the process manager,
19-
a new service will be created and the application will be deployed.
20-
21-
{{URL}}: The URL of the StrongLoop process manager.
22-
23-
Defaults to `{{http://localhost:8701}}`. If a URL is provided, both the host
24-
and port is optional, they default to `{{localhost}}` and 8701, respectively.
25-
If the server requires authentication, the credentials must be part of the
26-
URL, see examples.
27-
28-
URL may also use the `{{http+ssh://}}` protocol which will connect using ssh
29-
and then tunnel the http requests over that connection. The ssh username
30-
will default to your current user and authentication defaults to using your
31-
current ssh-agent. The {{username}} can be overridden by setting an `{{SSH_USER}}`
32-
environment variable. The authentication can be overridden to use an
33-
existing private key instead of an agent by setting the `SSH_KEY`
34-
environment variable to the path of the private key to be used. The port
35-
used for ssh can be overridden by setting an `{{SSH_PORT}}` environment
36-
variable.
18+
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.
19+
20+
{{URL}}: The {{URL}} of the StrongLoop process manager.
21+
22+
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.
23+
24+
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.
3725

3826
{{PACK}}: Deploy an {{NPM package/tarball}}.
3927

4028
{{BRANCH}}: Deploy a {{git}} branch.
4129

42-
Default behaviour is to deploy to `{{http://localhost:8701}}`. An {{npm}} package from
43-
the parent directory is deployed, if one is found for the current application
44-
version, otherwise the {{git}} branch `{{deploy}}` is deployed.
30+
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.
4531

46-
Note that if {{PACK}} or {{BRANCH}} is specified, URL *must* be specified as well.
32+
Note that if {{PACK}} or {{BRANCH}} is specified, {{URL}} *must* be specified as well.
4733

4834
Examples:
4935

lib/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function isValidGitURL(workingDir, url, callback) {
4848
if (err) {
4949
debug(err);
5050
if (urlFormat(urlParse(url)) !== url) {
51-
g.error('URL `%s` is not valid', url);
51+
g.error('{{URL}} `%s` is not valid', url);
5252
}
5353
err = g.Error('invalid url');
5454
}

lib/post-json.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ function _performLocalDeployment(service, baseURL, what, callback) {
2323

2424
var postURL = url.parse(baseURL);
2525
if (postURL.protocol !== 'http:') {
26-
g.error('Invalid URL `%s`. Only http:// URLs are supported.',
26+
g.error('Invalid {{URL}} `%s`. Only {{http:// URLs}} are supported.',
2727
baseURL
2828
);
29-
return callback(g.Error('Invalid URL'));
29+
return callback(g.Error('Invalid {{URL}}'));
3030
}
3131

3232
if (postURL.hostname) {
3333
if (postURL.hostname !== 'localhost' && postURL.hostname !== '127.0.0.1') {
34-
g.error('Invalid URL `%s`. Only {{localhost}} URLs are supported.',
34+
g.error('Invalid {{URL}} `%s`. Only {{localhost}} URLs are supported.',
3535
baseURL);
36-
return callback(g.Error('Invalid URL'));
36+
return callback(g.Error('Invalid {{URL}}'));
3737
}
3838
}
3939

@@ -65,7 +65,7 @@ function _performLocalDeployment(service, baseURL, what, callback) {
6565
return callback(null, service);
6666
}
6767
console.error('%s', msg);
68-
callback(g.Error('HTTP error %s', res.statusCode));
68+
callback(g.Error('{{HTTP}} error %s', res.statusCode));
6969
}));
7070
});
7171

lib/put-file.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ function _performHttpPutDeployment(service, baseURL, npmPkg, callback) {
2727

2828
var postURL = url.parse(baseURL);
2929
if (postURL.protocol !== 'http:') {
30-
g.error('Invalid URL `%s`. Only http:// URLs are supported.',
30+
g.error('Invalid {{URL}} `%s`. Only {{http:// URLs}} are supported.',
3131
baseURL
3232
);
33-
return callback(g.Error('Invalid URL'));
33+
return callback(g.Error('Invalid {{URL}}'));
3434
}
3535

3636
var postOptions = {
@@ -49,11 +49,11 @@ function _performHttpPutDeployment(service, baseURL, npmPkg, callback) {
4949
}
5050

5151
if (res.statusCode === 401 || res.statusCode === 403) {
52-
g.error('Valid credentials must be given in the URL.');
52+
g.error('Valid credentials must be given in the {{URL}}.');
5353
} else {
5454
console.error('%s', msg);
5555
}
56-
callback(g.Error('HTTP error %s', res.statusCode));
56+
callback(g.Error('{{HTTP}} error %s', res.statusCode));
5757
}));
5858
});
5959

0 commit comments

Comments
 (0)