applications/luci-splash: Fix a translation problem with 2 strings
authorManuel Munz <freifunk@somakoma.de>
Mon, 19 Aug 2013 11:33:14 +0000 (11:33 +0000)
committerManuel Munz <freifunk@somakoma.de>
Mon, 19 Aug 2013 11:33:14 +0000 (11:33 +0000)
applications/luci-splash/luasrc/view/splash/splash.htm

index 36aa80b..b9de464 100644 (file)
@@ -55,8 +55,11 @@ if limit_up and limit_down then
        "to this project.") .. "</p>"
 end
 
-contact = translatef('Get in %s with the operator of this access point.' % ('<a href="' .. contacturl .. '">' .. translatef('Contact') .. '</a>'))
-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 % ('<a href="' .. contacturl .. '">' .. translatef('Contact') .. '</a>')
+
+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