From 2c8c46664234651df7bc9b1bfbc980a9b92f53bc Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Tue, 18 Apr 2017 15:29:17 +0200 Subject: [PATCH] Translation (#1548) * fix translations in traffic shaper * translation IDS and Proxy --- src/opnsense/mvc/app/views/OPNsense/IDS/index.volt | 8 ++++---- src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt | 2 +- .../mvc/app/views/OPNsense/TrafficShaper/index.volt | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt b/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt index b7a8b8d0b..106c655b5 100644 --- a/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt @@ -752,7 +752,7 @@ POSSIBILITY OF SUCH DAMAGE. {{ partial("layout_partials/base_dialog_processing") }} -{{ partial("layout_partials/base_dialog",['fields':formDialogRule,'id':'DialogRule','label':'Rule details','hasSaveBtn':'true','msgzone_width':1])}} -{{ partial("layout_partials/base_dialog",['fields':formDialogAlert,'id':'DialogAlert','label':'Alert details','hasSaveBtn':'false','msgzone_width':1])}} -{{ partial("layout_partials/base_dialog",['fields':formDialogRuleset,'id':'DialogRuleset','label':'Ruleset details','hasSaveBtn':'true','msgzone_width':1])}} -{{ partial("layout_partials/base_dialog",['fields':formDialogUserDefined,'id':'DialogUserDefined','label':'Rule details','hasSaveBtn':'true'])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogRule,'id':'DialogRule','label':lang._('Rule details'),'hasSaveBtn':'true','msgzone_width':1])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogAlert,'id':'DialogAlert','label':lang._('Alert details'),'hasSaveBtn':'false','msgzone_width':1])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogRuleset,'id':'DialogRuleset','label':lang._('Ruleset details'),'hasSaveBtn':'true','msgzone_width':1])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogUserDefined,'id':'DialogUserDefined','label':lang._('Rule details'),'hasSaveBtn':'true'])}} diff --git a/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt b/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt index 90be1ac40..568df8c8d 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt @@ -317,4 +317,4 @@ POSSIBILITY OF SUCH DAMAGE. -{{ partial("layout_partials/base_dialog",['fields':formDialogEditBlacklist,'id':'DialogEditBlacklist','label':'Edit Blacklist'])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogEditBlacklist,'id':'DialogEditBlacklist','label':lang._('Edit Blacklist')])}} diff --git a/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt b/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt index f2796f8e5..7ff0ed465 100644 --- a/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt @@ -97,10 +97,10 @@ POSSIBILITY OF SUCH DAMAGE. // Ask user if it's ok to flush all of ipfw BootstrapDialog.show({ type:BootstrapDialog.TYPE_WARNING, - title: 'Flush', + title: '{{ lang._('Flush') }}', message: "{{ lang._('Are you sure you want to flush and reload all? this might have impact on other services using the same technology underneath (such as Captive portal)') }}", buttons: [{ - label: 'Yes', + label: '{{ lang._('Yes') }}', action: function(dialogRef){ dialogRef.close(); $("#flushAct_progress").addClass("fa fa-spinner fa-pulse"); @@ -111,7 +111,7 @@ POSSIBILITY OF SUCH DAMAGE. } },{ - label: 'No', + label: '{{ lang._('No') }}', action: function(dialogRef){ dialogRef.close(); } @@ -235,6 +235,6 @@ POSSIBILITY OF SUCH DAMAGE. {# include dialogs #} -{{ partial("layout_partials/base_dialog",['fields':formDialogPipe,'id':'DialogPipe','label':'Edit pipe'])}} -{{ partial("layout_partials/base_dialog",['fields':formDialogQueue,'id':'DialogQueue','label':'Edit queue'])}} -{{ partial("layout_partials/base_dialog",['fields':formDialogRule,'id':'DialogRule','label':'Edit rule'])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogPipe,'id':'DialogPipe','label':lang._('Edit pipe')])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogQueue,'id':'DialogQueue','label':lang._('Edit queue')])}} +{{ partial("layout_partials/base_dialog",['fields':formDialogRule,'id':'DialogRule','label':lang._('Edit rule')])}}