luci-app-mwan3: update translations
[project/luci.git] / applications / luci-app-mwan3 / luasrc / model / cbi / mwan / policy.lua
index 6d2ce71..4543260 100644 (file)
@@ -1,4 +1,9 @@
+-- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
+-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
+-- Licensed to the public under the GNU General Public License v2.
+
 dsp = require "luci.dispatcher"
+uci = require "uci"
 
 
 function policyCheck()
@@ -20,8 +25,8 @@ function policyError(policy_error)
        local warnings = ""
        for i, k in pairs(policy_error) do
                if policy_error[i] == true then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
-                               translatef("WARNING: Policie %s has exceeding the maximum name of 15 characters", i)
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
+                               translatef("WARNING: Policy %s has exceeding the maximum name of 15 characters", i)
                                )
                end
        end
@@ -34,9 +39,11 @@ m5 = Map("mwan3", translate("MWAN - Policies"),
 
 mwan_policy = m5:section(TypedSection, "policy", nil,
        translate("Policies are profiles grouping one or more members controlling how MWAN distributes traffic<br />" ..
-       "Member interfaces with lower metrics are used first. Interfaces with the same metric load-balance<br />" ..
+       "Member interfaces with lower metrics are used first<br />" ..
+       "Member interfaces with the same metric will be load-balanced<br />" ..
        "Load-balanced member interfaces distribute more traffic out those with higher weights<br />" ..
-       "Names may contain characters A-Z, a-z, 0-9, _ and no spaces. Names must be 15 characters or less<br />" ..
+       "Names may contain characters A-Z, a-z, 0-9, _ and no spaces<br />" ..
+       "Names must be 15 characters or less<br />" ..
        "Policies may not share the same name as configured interfaces, members or rules"))
 mwan_policy.addremove = true
 mwan_policy.dynamic = false