Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Standard login form in another language.

Go to End

3 Posts   786 Views


Community Member, 87 Posts

29 February 2012 at 9:33am

Edited: 01/03/2012 1:12am


How can display standard login form in another language?

I call it as follows:

The texts are displayed in English.

I saw that another useer had the same problem and no one gave him a solution:

Does not anyone have a solution to this problem?


Jose A.


Community Member, 116 Posts

2 March 2012 at 2:45pm

Hola Jose,

Are you trying to translate your whole website, or just the login page? Do you want the user to be able to choose from English or Spanish, or be forced to use Spanish?

There are multiple ways to achieve this with varying levels of difficulty.



Community Member, 87 Posts

4 March 2012 at 7:29am

Edited: 04/03/2012 7:32am

Hello Josh! :)

I'm trying to translate my whole website.

I would like that users could choose the language, but also detect the browser language to select, in a first moment, the web in that language automatically.

The following not work correctly:
public function init() {

if($this->dataRecord->hasExtension('Translatable')) {

If I put the following in _config.php:

$cu_locale = "es_ES";
then all pages are rendered correctly (even the login form), but this not work to do dynamic changes by the user, unless the cookies are used.

I've also seen that the Translatable::choose_site_locale function could be used to these matters, but I think it is not possible to overload.

I have also seen that some texts of the blog widgets are harcoded texts.
It is strange that at this point have not been made appropiate changes to the blog module to fix these problems. Furthermore when it has been a long time since other people had said it.

I really like SilverStripe and I know that it is a open source product, but there are some things that should be corrected more quickly. At least if they wish that SilverStripe comes to the same positions as other CMS's.

I now am a beginner and would like to add my support in the future, but I also think that some things cannot keep without solving months and months, as I have seen when I have begun to study SilverStripe. And this should begin for the base, that's to say, for the SilverStripe company.

I want these words are taken as something constructive. :)

Thank you very much for your attention Josh!! :)