[fix] Split confirm_upnp_action sentence for better translations.

This commit is contained in:
opi 2017-03-21 16:34:39 +01:00
parent 02b25042f7
commit 95f853abbd
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,7 @@
app.get('#/tools/firewall/upnp/:action', function (c) { app.get('#/tools/firewall/upnp/:action', function (c) {
c.confirm( c.confirm(
y18n.t('firewall'), y18n.t('firewall'),
y18n.t('confirm_upnp_action', [y18n.t(c.params['action'])]), y18n.t('confirm_upnp_' + c.params['action'].toLowerCase()),
function(){ function(){
params = {'action' : c.params['action']}; params = {'action' : c.params['action']};
c.api('/firewall/upnp', function(data) { c.api('/firewall/upnp', function(data) {

View file

@ -79,6 +79,8 @@
"confirm_update_apps": "Are you sure you want update every applications ?", "confirm_update_apps": "Are you sure you want update every applications ?",
"confirm_update_packages": "Are you sure you want update every packages ?", "confirm_update_packages": "Are you sure you want update every packages ?",
"confirm_upnp_action": "Are you sure you want to %s UPnP ?", "confirm_upnp_action": "Are you sure you want to %s UPnP ?",
"confirm_upnp_enable": "Are you sure you want to enable UPnP ?",
"confirm_upnp_disable": "Are you sure you want to disable UPnP ?",
"connection": "Connection", "connection": "Connection",
"copy": "Copy", "copy": "Copy",
"count_min": "%s min", "count_min": "%s min",