chkal / mvc-spec-migration-test

0 stars 0 forks source link

Handling of Locale and Language #27

Open chkal opened 9 years ago

chkal commented 9 years ago

Original issue MVC_SPEC-27 created by Santiago Pericas-Geertsen:

Write example for Locale and Language support. Ensure that view engines get a access to the information necessary to generate pages in the correct locale and language.

chkal commented 9 years ago

Comment by Manfred Riem:

See http://docs.oracle.com/javase/8/docs/api/java/util/Locale.LanguageRange.html

chkal commented 8 years ago

Comment by Santiago Pericas-Geertsen:

Do we need anything about this in the spec? Or is this mostly an implementation concern? I'm leaning towards the latter, at least for version 1.0.

chkal commented 8 years ago

Comment by Christian Kaltepoth:

IMO there are a few areas which might need some work regarding different locales / languages:

chkal commented 8 years ago

Comment by lefloh:

Do we also need a way to configure the default locale for an application?

chkal commented 8 years ago

Comment by Christian Kaltepoth:

+1 for this. And if there is no default locale configured for the application, we could still fall back to Locale.getDefault().

chkal commented 8 years ago

Comment by mkarg:

+1 for default locales at application level and fallback to Locale.getDefault(): There might be cases when the browser's locale doesn't match the supported locales of the server, so the server has to fallback to "something" in the end.

chkal commented 8 years ago

Comment by Christian Kaltepoth:

I'm currently working on a prototype. I'll share more details on the mailing list soon.