Package play.i18n

Examples of play.i18n.Lang.language()


//
    public static String format(Date date, String pattern) {
      Context ctx = Context.current.get();
      if (ctx != null && ctx.request() != null) {
        Lang lan = play.i18n.Lang.preferred(ctx.request().acceptLanguages());
        return format(date, pattern, lan.language());
      }
      else {
        return format(date, pattern, play.i18n.Lang.defaultLang().language());
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.