luci-base: cbi.js: collapse whitespace before language string hashing
authorJo-Philipp Wich <jo@mein.io>
Thu, 16 Jan 2020 17:10:04 +0000 (18:10 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 19 Jan 2020 19:12:02 +0000 (20:12 +0100)
commitf463570590ae88c1d00e1460c0da2bc886b411c5
tree1404943e2a4d0c38802229f16d04ee3218187cf3
parente994b0933345df76263d28191bce5a6934026617
luci-base: cbi.js: collapse whitespace before language string hashing

To mirror the behavior of the Lua runtime, we need to collapse whitepace
in translation source strings before doing the string table lookup.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit aca2c4ba4e4c847e5ae86e5539537f213678a0f3)
modules/luci-base/htdocs/luci-static/resources/cbi.js