Jump to:

23479 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Question about language & email

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

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

Page: 1 2
Go to End
Author Topic: 2672 Views
  • Foulensois
    Avatar
    Community Member
    13 Posts

    Question about language & email Link to this post

    Hi everibody,

    Sorry if the question exists but i don t find the answer.

    First :

    In my admin panel, I changed the language to french and everything is OK. But I don t understand why the language is still english for the login.

    I saw in the folder ../auth_openid/lang, there was french language but I don t find the place where i can change it. Which file must be modified ?

    I tried with i18n , but I ve got an internal error : http 500 ;(

    Second :

    In login form, it is possible to ask to the server a link to have a new password. When i received the mail, in english of course, i don t have the sender. Where can i modify the sender to have a sender like : contact@mydomain.com

    Thanks for your answers

  • tobych
    Avatar
    Community Member
    97 Posts

    Re: Question about language & email Link to this post

    I might be able to help with your first question. My understanding is that the "Interface Language" referred to in the CMS 'Profile' dialogue is just the language used for the CMS itself. Whereas the login page is just another page on your site, and translating that is a separate issue, addressed here: http://doc.silverstripe.com/doku.php?id=i18n

    From what I can see there, you need to change add a line to your mysite/_config.php:

    i18n::set_locale('fr_FR');

    I just tried that, and c'est tres bon por moi!

    Bon chance,
    Toby

  • Foulensois
    Avatar
    Community Member
    13 Posts

    Re: Question about language & email Link to this post

    Thanks Tobych,

    I find the way

    i18n::enable();
    i18n::set_default_lang('fr');
    i18n::set_locale('fr_FR');

    But I have got an other problem with 2.2.3

    Now, I ve got the meta in "french", some fields are in French.
    But In my form : I ve got this "Please fill out "Votre société :", it is required". It s not french "Please fill out" , where is the place where i could change it ?

    Thanks

  • tobych
    Avatar
    Community Member
    97 Posts

    Re: Question about language & email Link to this post

    Have you looked in the language file for that phrase? If it's not there, maybe the translation needs adding. I'm not sure how to do this but I recall that the documentation on this is okay. If that doesn't work you should check that the relevant template is using a translation, rather than it being hardcoded. To find that out I guess you'll need to search the source of SilverStripe for that text.

    Toby

  • Foulensois
    Avatar
    Community Member
    13 Posts

    Re: Question about language & email Link to this post

    I've looked in every language files and I don't find it...

    In the silverstripe sources, i don't find yet this field. If anyone know the source ;)

    Who makes the french translation ? Maybe I can discuss with him.

  • tobych
    Avatar
    Community Member
    97 Posts

    Re: Question about language & email Link to this post

    There are tools you can use to search an entire source tree for a string. If you're using Eclipse as your IDE, it can do this. If you're using an OS that has the 'find' and 'grep' commands, you can use them in conjunction to do this. You can probably search the SilverStripe source using the Trac (http://open.silverstripe.org/). The SilverStripe translation project has a list of everyone working on the translations, and provides a way of contacting them (as I recall, that's a bit fiddly, but it's possible).

    Bonne chance!
    Toby

  • StartUp3D
    Avatar
    Community Member
    10 Posts

    Re: Question about language & email Link to this post

    Hihi...same problem here. I´ve searched the whole installation-tree (thanks to my editor Homesite, it is possible to do that) and there is no phrase called "Please fill out" or "it is required" or "fill out"

    Maybe some developer can sort that mystery-hidden-phrase-thing out.

    Greetings,
    Otto

  • tobych
    Avatar
    Community Member
    97 Posts

    Re: Question about language & email Link to this post

    Otto, which version of SilverStripe are you using?

    2672 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.