Skip to content

Commit 50dd227

Browse files
author
Jamie Curnow
committed
i18n and improvements
1 parent b6cff5a commit 50dd227

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

src/frontend/js/app/nginx/proxy/delete.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="modal-content">
22
<div class="modal-header">
3-
<h5 class="modal-title">Delete Proxy Host</h5>
3+
<h5 class="modal-title"><%- i18n('proxy-hosts', 'delete') %></h5>
44
<button type="button" class="close cancel" aria-label="Close" data-dismiss="modal">&nbsp;</button>
55
</div>
66
<div class="modal-body">
@@ -17,7 +17,7 @@
1717
</form>
1818
</div>
1919
<div class="modal-footer">
20-
<button type="button" class="btn btn-secondary cancel" data-dismiss="modal">Cancel</button>
21-
<button type="button" class="btn btn-danger save">Yes I'm Sure</button>
20+
<button type="button" class="btn btn-secondary cancel" data-dismiss="modal"><%- i18n('str', 'cancel') %></button>
21+
<button type="button" class="btn btn-danger save"><%- i18n('str', 'sure') %></button>
2222
</div>
2323
</div>

src/frontend/js/app/nginx/proxy/delete.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
'use strict';
22

3-
const Mn = require('backbone.marionette');
4-
const template = require('./delete.ejs');
5-
const Controller = require('../../controller');
6-
const Api = require('../../api');
7-
const App = require('../../main');
3+
const Mn = require('backbone.marionette');
4+
const App = require('../../main');
5+
const template = require('./delete.ejs');
86

97
require('jquery-serializejson');
108

@@ -24,9 +22,9 @@ module.exports = Mn.View.extend({
2422
'click @ui.save': function (e) {
2523
e.preventDefault();
2624

27-
Api.Nginx.ProxyHosts.delete(this.model.get('id'))
25+
App.Api.Nginx.ProxyHosts.delete(this.model.get('id'))
2826
.then(() => {
29-
Controller.showNginxProxy();
27+
App.Controller.showNginxProxy();
3028
App.UI.closeModal();
3129
})
3230
.catch(err => {

src/frontend/js/i18n/messages.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"other-ssl": "Other",
5757
"letsencrypt": "Let's Encrypt",
5858
"letsencrypt-email": "Email Address for Let's Encrypt",
59-
"letsencrypt-agreee": "I Agree to the <a href=\"{url}\" target=\"_blank\">Let's Encrypt Terms of Service</a>",
59+
"letsencrypt-agree": "I Agree to the <a href=\"{url}\" target=\"_blank\">Let's Encrypt Terms of Service</a>",
6060
"other-certificate": "Certificate",
6161
"other-certificate-key": "Certificate Key"
6262
},
@@ -66,7 +66,8 @@
6666
"add": "Add Proxy Host",
6767
"form-title": "{id, select, undefined{New} other{Edit}} Proxy Host",
6868
"forward-ip": "Forward IP",
69-
"forward-port": "Forward Port"
69+
"forward-port": "Forward Port",
70+
"delete": "Delete Proxy Host"
7071
},
7172
"redirection-hosts": {
7273
"title": "Redirection Hosts"

0 commit comments

Comments
 (0)