applications/luci-splash: Fix a translation problem with 2 strings
[project/luci.git] / applications / luci-splash / luasrc / view / splash / splash.htm
index 36aa80b93175944ad883bf147d578b146ecfdd91..b9de464db966265290a4b9da5c6c656d43a3ae7e 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