From: Manuel Munz
Date: Mon, 19 Aug 2013 11:33:14 +0000 (+0000)
Subject: applications/luci-splash: Fix a translation problem with 2 strings
X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9cf8a23f52527f1b817720c22be98a539c4d9ae0;p=project%2Fluci.git
applications/luci-splash: Fix a translation problem with 2 strings
---
diff --git a/applications/luci-splash/luasrc/view/splash/splash.htm b/applications/luci-splash/luasrc/view/splash/splash.htm
index 36aa80b931..b9de464db9 100644
--- a/applications/luci-splash/luasrc/view/splash/splash.htm
+++ b/applications/luci-splash/luasrc/view/splash/splash.htm
@@ -55,8 +55,11 @@ if limit_up and limit_down then
"to this project.") .. "
"
end
-contact = translatef('Get in %s with the operator of this access point.' % ('' .. translatef('Contact') .. ''))
-accepttext = translatef('By accepting these rules you can use this network for %s hour(s). After this time you need to accept these rules again.' % leasetime)
+local contact = translate('Get in %s with the operator of this access point.')
+contact = contact % ('' .. translatef('Contact') .. '')
+
+local accepttext = translate('By accepting these rules you can use this network for %s hour(s). After this time you need to accept these rules again.')
+accepttext = accepttext % leasetime
if has_custom_splash then