From cac2248bcfeaefd616debada88886b675a2eb970 Mon Sep 17 00:00:00 2001 From: Anton Kikin Date: Sat, 25 Jan 2020 01:14:12 +0300 Subject: luci-app-openvpn: fix advanced mode page switcher translation Translation of page titles in the advanced configuration mode is done in such a way that the strings to be translated are not visible for 'i18n-scan.pl' script. This commit fixes this and makes page titles visible for the 'i18n-scan.pl'. Signed-off-by: Anton Kikin --- applications/luci-app-openvpn/luasrc/view/openvpn/pageswitch.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-openvpn/luasrc/view') diff --git a/applications/luci-app-openvpn/luasrc/view/openvpn/pageswitch.htm b/applications/luci-app-openvpn/luasrc/view/openvpn/pageswitch.htm index 7d88b844ab..0792763085 100644 --- a/applications/luci-app-openvpn/luasrc/view/openvpn/pageswitch.htm +++ b/applications/luci-app-openvpn/luasrc/view/openvpn/pageswitch.htm @@ -12,17 +12,17 @@ <%=luci.i18n.translatef("Instance \"%s\"", self.instance)%> <% if self.mode == "basic" then %> - "><%:Switch to advanced configuration%> »

+ <%:Switch to advanced configuration%> »


<% elseif self.mode == "advanced" then %> <%:Switch to basic configuration%> »


<%:Configuration category%>: <% for i, c in ipairs(self.categories) do %> - <% if c == self.category then %> - <%=translate(c)%> + <% if c.id == self.category then %> + <%=c.title%> <% else %> - "><%=translate(c)%> + "><%=c.title%> <% end %> <% if next(self.categories, i) then %>|<% end %> <% end %> -- cgit v1.2.3