Skip to content

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

Merged
pk11 merged 2 commits intoplayframework:masterfrom
julienrf:fix/174
May 30, 2012
Merged

Allows to change the current Lang (Java API)#325
pk11 merged 2 commits intoplayframework:masterfrom
julienrf:fix/174

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.

2 participants