The request:
It would be nice if the next version of ProtectedPages had an optional parameter. login="Myloginpage", which would make a redirection to Myloginpage where the UserId module will take care of the log in. After a successful login you should be brought back to the initial protected page.
I have now knowledge of PHP-programming so I don't know if it is possible to do.
The question:
I have tried to translate ProtectedPages to Swedish with no luck. This is what I have done in the file lang.php:
Code: Select all
//Swedish:
case "sv" :
case "se" : {
switch ($str) {
case "This is a protected page - " :
$result="Det här är en skyddad sida - "; break;
case "You are now logged off. Access a protected page to log in again":
$result="Du är nu utloggad. Gå till en skyddad sida för att logga in igen"; break;
case "You are currently logged in as <em>%s1</em> " :
$result="Du är nu inloggad som <em>%s1</em> "; break;
case "Sorry, you do not have access to this page!" :
$result="Du måste vara inloggad med rätt behörighet för att kunna läsa den här sidan"; break;
case "Log out" :
$result="Logga ut"; break;
case "Are you sure you want to log out?" :
$result="Vill du verkligen logga ut?"; break;
}
break;
}
Code: Select all
{cms_module module="ProtectedPages" allow_groups="koren" lang="se"}
Any hints?
/Roan