Captcha text, translate version 5.5.x.x

Permalink
Hi everyone

Just in case you run into the same problem as I did, here is a possible solution.

My problem
I wanted to translate the text which is displayed when setting up the captcha function.

If you go to your site root and follow this path:

SITE ROOT > Concrete > Models > System > Captcha > Types > Securimage > Controller.php

Here you will find the setup for both colors used in the Captcha and also the text, such as:
"Click the image to see another captcha"
as well as:
"Please type the letters and numbers shown in the image"

If you want to translate these into your own language, this is now a possiblity :0)

Best regards
//Carsten - Denmark

sabumnimdk
 
Mainio replied on at Permalink Reply
Mainio
At least in the latest version (5.5.2.1), these seem to be wrapped correctly inside the t()-function so you should be able to translate these through your .po/.mo files.

I'm not sure whether this was just a "FYI" for that but just wanted to add this so that no one would fork that file just to change those texts.
sabumnimdk replied on at Permalink Reply
sabumnimdk
Hey Mainio

You are correct, it was meant as a "FYI" and not a problem as such. I just wanted to change these texts, and did it this way.

I am not sure if these texts can be translated via the .po files, but if you say that this could be done, of course that would be a better way.

//Carsten
pureTest replied on at Permalink Reply
pureTest
Actually the multilingual add on doesn't translate the t('*') strings in blocks.
Search the forum for several discussions on that topic.

pureTest (aka noRiddle)