Skip to content

Commit 8eb44c4

Browse files
Add translation for search text
1 parent 61b25e1 commit 8eb44c4

File tree

9 files changed

+26
-18
lines changed

9 files changed

+26
-18
lines changed

frontend/js/app/audit-log/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Log…" aria-label="Search in Audit Logs">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('audit-log', 'search') %>" aria-label="<%- i18n('audit-log', 'search') %>">
1212
</div>
1313
</form>
1414
</div>

frontend/js/app/nginx/access/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Access…" aria-label="Search in Access Lists">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('access-lists', 'search') %>" aria-label="<%- i18n('access-lists', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-secondary btn-sm ml-2 help"><i class="fe fe-help-circle"></i></a>

frontend/js/app/nginx/certificates/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Certificates…" aria-label="Search in SSL Certificates">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('certificates', 'search') %>" aria-label="<%- i18n('certificates', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-secondary btn-sm ml-2 help"><i class="fe fe-help-circle"></i></a>

frontend/js/app/nginx/dead/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Host…" aria-label="Search in Hosts">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('dead-hosts', 'search') %>" aria-label="<%- i18n('dead-hosts', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-secondary btn-sm ml-2 help"><i class="fe fe-help-circle"></i></a>

frontend/js/app/nginx/proxy/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Host…" aria-label="Search in Hosts">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('proxy-hosts', 'search') %>" aria-label="<%- i18n('proxy-hosts', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-secondary btn-sm ml-2 help"><i class="fe fe-help-circle"></i></a>

frontend/js/app/nginx/redirection/main.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<div class="card">
22
<div class="card-status bg-yellow"></div>
33
<div class="card-header">
4-
<h3 class="card-title">Redirection Hosts</h3>
4+
<h3 class="card-title"><%- i18n('redirection-hosts', 'title') %></h3>
55
<div class="card-options">
66
<form class="search-form" role="search">
77
<div class="input-icon">
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Host…" aria-label="Search in Hosts">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('redirection-hosts', 'search') %>" aria-label="<%- i18n('redirection-hosts', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-secondary btn-sm ml-2 help"><i class="fe fe-help-circle"></i></a>
1515
<% if (showAddButton) { %>
16-
<a href="#" class="btn btn-outline-yellow btn-sm ml-2 add-item">Add Redirection Host</a>
16+
<a href="#" class="btn btn-outline-yellow btn-sm ml-2 add-item"><%- i18n('redirection-hosts', 'add') %></a>
1717
<% } %>
1818
</div>
1919
</div>

frontend/js/app/nginx/stream/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search Port…" aria-label="Search in Incoming Port">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('streams', 'search') %>" aria-label="<%- i18n('streams', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-secondary btn-sm ml-2 help"><i class="fe fe-help-circle"></i></a>

frontend/js/app/users/main.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="input-icon-addon">
99
<i class="fe fe-search"></i>
1010
</span>
11-
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="Search User…" aria-label="Search in Users">
11+
<input name="source-query" type="text" value="" class="form-control form-control-sm" placeholder="<%- i18n('users', 'search') %>" aria-label="<%- i18n('users', 'search') %>">
1212
</div>
1313
</form>
1414
<a href="#" class="btn btn-outline-teal btn-sm ml-2 add-item"><%- i18n('users', 'add') %></a>

frontend/js/i18n/messages.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
"access-list": "Access List",
133133
"allow-websocket-upgrade": "Websockets Support",
134134
"ignore-invalid-upstream-ssl": "Ignore Invalid SSL",
135-
"custom-forward-host-help": "Add a path for sub-folder forwarding.\nExample: 203.0.113.25/path"
135+
"custom-forward-host-help": "Add a path for sub-folder forwarding.\nExample: 203.0.113.25/path",
136+
"search": "Search Host…"
136137
},
137138
"redirection-hosts": {
138139
"title": "Redirection Hosts",
@@ -146,7 +147,8 @@
146147
"delete": "Delete Redirection Host",
147148
"delete-confirm": "Are you sure you want to delete the Redirection host for: <strong>{domains}</strong>?",
148149
"help-title": "What is a Redirection Host?",
149-
"help-content": "A Redirection Host will redirect requests from the incoming ___domain and push the viewer to another ___domain.\nThe most common reason to use this type of host is when your website changes domains but you still have search engine or referrer links pointing to the old ___domain."
150+
"help-content": "A Redirection Host will redirect requests from the incoming ___domain and push the viewer to another ___domain.\nThe most common reason to use this type of host is when your website changes domains but you still have search engine or referrer links pointing to the old ___domain.",
151+
"search": "Search Host…"
150152
},
151153
"dead-hosts": {
152154
"title": "404 Hosts",
@@ -156,7 +158,8 @@
156158
"delete": "Delete 404 Host",
157159
"delete-confirm": "Are you sure you want to delete this 404 Host?",
158160
"help-title": "What is a 404 Host?",
159-
"help-content": "A 404 Host is simply a host setup that shows a 404 page.\nThis can be useful when your ___domain is listed in search engines and you want to provide a nicer error page or specifically to tell the search indexers that the ___domain pages no longer exist.\nAnother benefit of having this host is to track the logs for hits to it and view the referrers."
161+
"help-content": "A 404 Host is simply a host setup that shows a 404 page.\nThis can be useful when your ___domain is listed in search engines and you want to provide a nicer error page or specifically to tell the search indexers that the ___domain pages no longer exist.\nAnother benefit of having this host is to track the logs for hits to it and view the referrers.",
162+
"search": "Search Host…"
160163
},
161164
"streams": {
162165
"title": "Streams",
@@ -175,7 +178,8 @@
175178
"delete": "Delete Stream",
176179
"delete-confirm": "Are you sure you want to delete this Stream?",
177180
"help-title": "What is a Stream?",
178-
"help-content": "A relatively new feature for Nginx, a Stream will serve to forward TCP/UDP traffic directly to another computer on the network.\nIf you're running game servers, FTP or SSH servers this can come in handy."
181+
"help-content": "A relatively new feature for Nginx, a Stream will serve to forward TCP/UDP traffic directly to another computer on the network.\nIf you're running game servers, FTP or SSH servers this can come in handy.",
182+
"search": "Search Incoming Port…"
179183
},
180184
"certificates": {
181185
"title": "SSL Certificates",
@@ -201,7 +205,8 @@
201205
"reachability-wrong-data": "There is a server found at this ___domain but it returned an unexpected data. Is it the NPM server? Please make sure your ___domain points to the IP where your NPM instance is running.",
202206
"reachability-other": "There is a server found at this ___domain but it returned an unexpected status code {code}. Is it the NPM server? Please make sure your ___domain points to the IP where your NPM instance is running.",
203207
"download": "Download",
204-
"renew-title": "Renew Let'sEncrypt Certificate"
208+
"renew-title": "Renew Let'sEncrypt Certificate",
209+
"search": "Search Certificate…"
205210
},
206211
"access-lists": {
207212
"title": "Access Lists",
@@ -225,7 +230,8 @@
225230
"satisfy-any": "Satisfy Any",
226231
"pass-auth": "Pass Auth to Host",
227232
"access-add": "Add",
228-
"auth-add": "Add"
233+
"auth-add": "Add",
234+
"search": "Search Access…"
229235
},
230236
"users": {
231237
"title": "Users",
@@ -251,7 +257,8 @@
251257
"perms-visibility-all": "All Items",
252258
"perm-manage": "Manage",
253259
"perm-view": "View Only",
254-
"perm-hidden": "Hidden"
260+
"perm-hidden": "Hidden",
261+
"search": "Search User…"
255262
},
256263
"audit-log": {
257264
"title": "Audit Log",
@@ -272,7 +279,8 @@
272279
"renewed": "Renewed {name}",
273280
"meta-title": "Details for Event",
274281
"view-meta": "View Details",
275-
"date": "Date"
282+
"date": "Date",
283+
"search": "Search Log…"
276284
},
277285
"settings": {
278286
"title": "Settings",

0 commit comments

Comments
 (0)