Browse Source

Globalization done

Ready to merge
baruffaldi 4 years ago
parent
commit
ebeda6345e
2 changed files with 4 additions and 2 deletions
  1. 2 2
      frontend/js/app/nginx/redirection/form.ejs
  2. 2 0
      frontend/js/i18n/messages.json

+ 2 - 2
frontend/js/app/nginx/redirection/form.ejs

@@ -24,7 +24,7 @@
                         </div>
                         <div class="col-sm-4 col-md-4">
                             <div class="form-group">
-                                <label class="form-label"><%- i18n('redirection-hosts', 'scheme') %><span class="form-required">*</span></label>
+                                <label class="form-label"><%- i18n('redirection-hosts', 'forward-scheme') %><span class="form-required">*</span></label>
                                 <select name="forward_scheme" class="form-control custom-select" placeholder="$scheme">
                                     <option value="$scheme" <%- forward_scheme === '$scheme' ? 'selected' : '' %>>auto</option>
                                     <option value="http" <%- forward_scheme === 'http' ? 'selected' : '' %>>http</option>
@@ -40,7 +40,7 @@
                         </div>
                         <div class="col-sm-12 col-md-12">
                             <div class="form-group">
-                                <label class="form-label"><%- i18n('redirection-hosts', 'http-status-code') %><span class="form-required">*</span></label>
+                                <label class="form-label"><%- i18n('redirection-hosts', 'forward-http-status-code') %><span class="form-required">*</span></label>
                                 <select name="forward_http_code" class="form-control custom-select" placeholder="301">
                                     <option value="300" <%- forward_http_code == '300' ? 'selected' : '' %>>300 Multiple choices</option>
                                     <option value="301" <%- forward_http_code == '301' ? 'selected' : '' %>>301 Moved permanently</option>

+ 2 - 0
frontend/js/i18n/messages.json

@@ -137,6 +137,8 @@
       "empty": "There are no Redirection Hosts",
       "add": "Add Redirection Host",
       "form-title": "{id, select, undefined{New} other{Edit}} Redirection Host",
+      "forward-scheme": "Scheme",
+      "forward-http-status-code": "HTTP Code",
       "forward-domain": "Forward Domain",
       "preserve-path": "Preserve Path",
       "delete": "Delete Proxy Host",