<% String lang=""; String opt = "{ }"; String hl = request.getParameter("hl"); String sex = request.getParameter("sex"); if (hl!=null) { lang="&hl="+hl; opt="{\"locale\":\""+hl+"\"}"; } else { java.util.Enumeration loc = request.getLocales(); while (loc.hasMoreElements()) { java.util.Locale l = (java.util.Locale)loc.nextElement(); String s = l.toString(); if (s.startsWith("ru")) { lang="&hl=ru"; opt="{\"locale\":\"ru\"}"; break; } } } %>
Share via Twitter
Share via Facebook
Send link to friends