SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

How can I set the default language on my pod?

Open voidcode opened this issue 15 years ago • 5 comments

I would like to set my pod to the danish language by default. I think that there must be a .conf file where I can set this.

Does Anybody know how I do this?

voidcode avatar Sep 16 '11 15:09 voidcode

it actually is currently not an option, but perhaps @MrZYX could find some people to make it one :)

maxwell avatar Sep 16 '11 15:09 maxwell

well, you can set it in config/locale_settings.yml but that file is in the repo => merge conflicts. We could move that setting to application.yml but I don't think it's a good idea to set the default language to something else than en because you can't expect any other language to be complete and cause ugly translation not found failures in the frontend instead of displaying just the untranslated string, which could be still understood.

jhass avatar Sep 16 '11 16:09 jhass

Thanks. Could make it, so that if one language is translated 100% Then this language could set be in application.yml file otherwise it will be set to the English. Remember that the whole world does not speak English..

voidcode avatar Sep 16 '11 16:09 voidcode

Yeah I know that. The problem I have with the setting in application.yml is that one could just "discover" it too easy and change it, not knowing what he does. Also we have code to guess the desired language from the accept language header the browser sends, for not logged in users. There's a bug currently where this is not preserved on sign up, but there's already a pull request for that.

jhass avatar Sep 16 '11 17:09 jhass

Ok you might be right in ;)

voidcode avatar Sep 20 '11 11:09 voidcode