Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 833049 - Persist the user's language selection in the DB
: Persist the user's language selection in the DB
Product: Marketplace
Classification: Server Software
Component: Consumer Pages (show other bugs)
: 1.0
: x86 Mac OS X
: P2 normal (vote)
: 2013-05-02
Assigned To: Allen Short [:ashort]
Depends on:
Blocks: 833563
  Show dependency treegraph
Reported: 2013-01-21 11:27 PST by Andy McKay [:andym]
Modified: 2013-04-25 18:36 PDT (History)
3 users (show)
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Description Andy McKay [:andym] 2013-01-21 11:27:28 PST
I think it would be nice to send localized emails to the users. Especially a receipt for payment of an app. To localize the receipt, I would need to know the users language preference. We currently have location on the user object, but not language. Could we persist the language as set on the user settings page?

Reviewer tools and other places could benefit from this too.
Comment 1 Chuck Harmston [:chuck] 2013-01-30 07:47:58 PST
Should this be prepopulated with the highest-weighted value of Accept-Language on the first visit with an empty value? (Perhaps through a piece of middleware, though I'm not sure how that would impact caching strategies.) Seems like a sane way to be immediately useful without the user needing to take explicit action.
Comment 2 Andy McKay [:andym] 2013-01-30 08:34:16 PST
Saving it for a user on visit without having them to do anything should be fine, we'll only save it if its different. We set the locale for each request here:

That's the value we'd like to persist. Saving it from the settings page when its explicitly set would be good as well.
Comment 3 Christopher Van Wiemeersch [:cvan] 2013-03-04 12:24:45 PST
Should we also persist the user's region?
Comment 4 Wil Clouser [:clouserw] 2013-03-05 14:17:16 PST
(In reply to Chris Van Wiemeersch [:cvan] from comment #3)
> Should we also persist the user's region?

I thought that was already persisted by their choice.  Is that a cookie? If so, yeah, I think home region should be a part of the profile as well.
Comment 5 Allen Short [:ashort] 2013-04-25 16:54:12 PDT

Note You need to log in before you can comment on or make changes to this bug.