Fixed display issues when applying translation.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
m:append(Template("adblock/config_css"))
s = m:section(SimpleSection, nil,
- translate("This form allows you to modify the content of the adblock blacklist (" .. adbinput .. ").<br />")
+ translatef("This form allows you to modify the content of the adblock blacklist (%s).<br />", adbinput)
.. translate("Please add only one domain per line. Comments introduced with '#' are allowed - ip addresses, wildcards & regex are not."))
f = s:option(TextValue, "data")
m:append(Template("adblock/config_css"))
s = m:section(SimpleSection, nil,
- translate("This form allows you to modify the content of the adblock whitelist (" .. adbinput .. ").<br />")
+ translatef("This form allows you to modify the content of the adblock whitelist (%s).<br />", adbinput)
.. translate("Please add only one domain per line. Comments introduced with '#' are allowed - ip addresses, wildcards & regex are not."))
f = s:option(TextValue, "data")
<div class="cbi-map">
<fieldset class="cbi-section">
- <div class="cbi-section-descr">This form shows the syslog output, pre-filtered for adblock related messages only.</div>
+ <div class="cbi-section-descr"><%:This form shows the syslog output, pre-filtered for adblock related messages only.%></div>
<textarea id="logread_id" style="width: 100%; height: 450px; border: 1px solid #cccccc; padding: 5px; font-size: 12px; font-family: monospace; resize: none;" readonly="readonly" wrap="off" rows="<%=content:cmatch("\n")+2%>"><%=content:pcdata()%></textarea>
</fieldset>
</div>
<form method="post" action="<%=REQUEST_URI%>">
<div class="cbi-map">
<fieldset class="cbi-section">
- <div class="cbi-section-descr">This form allows you to query active block lists for certain domains, e.g. for whitelisting.</div>
+ <div class="cbi-section-descr"><%:This form allows you to query active block lists for certain domains, e.g. for whitelisting.%></div>
<div style="width:33%; float:left;">
<input style="margin: 5px 0" type="text" value="www.lede-project.org" name="input" />
<input type="button" value="<%:Query%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.input)" />