Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows to change the current Lang (Java API) #325

Merged
merged 2 commits into from May 30, 2012

Conversation

julienrf
Copy link
Contributor

#174

Usage (in a Java controller):

public static Result setLang(String code) {
    changeLang(code);
    return ok(…);
}
  • Add a Http.Context#changeLang(String code) method ;
  • Add a Controller#changeLang(String code) shorthand ;
  • Let the developer use a custom cookie name to store the user’s lang, through the application.lang.cookie configuration key (defaults to PLAY_LANG).

pk11 pushed a commit that referenced this pull request May 30, 2012
Allows to change the current Lang (Java API)
@pk11 pk11 merged commit 97d5bb8 into playframework:master May 30, 2012
@julienrf julienrf deleted the fix/174 branch January 14, 2013 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants