From 9cf8a23f52527f1b817720c22be98a539c4d9ae0 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Mon, 19 Aug 2013 11:33:14 +0000 Subject: [PATCH] applications/luci-splash: Fix a translation problem with 2 strings --- applications/luci-splash/luasrc/view/splash/splash.htm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/applications/luci-splash/luasrc/view/splash/splash.htm b/applications/luci-splash/luasrc/view/splash/splash.htm index 36aa80b93..b9de464db 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 -- 2.11.0