mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	i18n and improvements
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| <div class="modal-content"> | ||||
|     <div class="modal-header"> | ||||
|         <h5 class="modal-title">Delete Proxy Host</h5> | ||||
|         <h5 class="modal-title"><%- i18n('proxy-hosts', 'delete') %></h5> | ||||
|         <button type="button" class="close cancel" aria-label="Close" data-dismiss="modal"> </button> | ||||
|     </div> | ||||
|     <div class="modal-body"> | ||||
| @@ -17,7 +17,7 @@ | ||||
|         </form> | ||||
|     </div> | ||||
|     <div class="modal-footer"> | ||||
|         <button type="button" class="btn btn-secondary cancel" data-dismiss="modal">Cancel</button> | ||||
|         <button type="button" class="btn btn-danger save">Yes I'm Sure</button> | ||||
|         <button type="button" class="btn btn-secondary cancel" data-dismiss="modal"><%- i18n('str', 'cancel') %></button> | ||||
|         <button type="button" class="btn btn-danger save"><%- i18n('str', 'sure') %></button> | ||||
|     </div> | ||||
| </div> | ||||
|   | ||||
| @@ -1,10 +1,8 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| const Mn       = require('backbone.marionette'); | ||||
| const template   = require('./delete.ejs'); | ||||
| const Controller = require('../../controller'); | ||||
| const Api        = require('../../api'); | ||||
| const App      = require('../../main'); | ||||
| const template = require('./delete.ejs'); | ||||
|  | ||||
| require('jquery-serializejson'); | ||||
|  | ||||
| @@ -24,9 +22,9 @@ module.exports = Mn.View.extend({ | ||||
|         'click @ui.save': function (e) { | ||||
|             e.preventDefault(); | ||||
|  | ||||
|             Api.Nginx.ProxyHosts.delete(this.model.get('id')) | ||||
|             App.Api.Nginx.ProxyHosts.delete(this.model.get('id')) | ||||
|                 .then(() => { | ||||
|                     Controller.showNginxProxy(); | ||||
|                     App.Controller.showNginxProxy(); | ||||
|                     App.UI.closeModal(); | ||||
|                 }) | ||||
|                 .catch(err => { | ||||
|   | ||||
| @@ -56,7 +56,7 @@ | ||||
|       "other-ssl": "Other", | ||||
|       "letsencrypt": "Let's Encrypt", | ||||
|       "letsencrypt-email": "Email Address for Let's Encrypt", | ||||
|       "letsencrypt-agreee": "I Agree to the <a href=\"{url}\" target=\"_blank\">Let's Encrypt Terms of Service</a>", | ||||
|       "letsencrypt-agree": "I Agree to the <a href=\"{url}\" target=\"_blank\">Let's Encrypt Terms of Service</a>", | ||||
|       "other-certificate": "Certificate", | ||||
|       "other-certificate-key": "Certificate Key" | ||||
|     }, | ||||
| @@ -66,7 +66,8 @@ | ||||
|       "add": "Add Proxy Host", | ||||
|       "form-title": "{id, select, undefined{New} other{Edit}} Proxy Host", | ||||
|       "forward-ip": "Forward IP", | ||||
|       "forward-port": "Forward Port" | ||||
|       "forward-port": "Forward Port", | ||||
|       "delete": "Delete Proxy Host" | ||||
|     }, | ||||
|     "redirection-hosts": { | ||||
|       "title": "Redirection Hosts" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user