Skip to content

Commit

Permalink
Merge pull request sakaiproject#121 from adrianfish/SAK-27660
Browse files Browse the repository at this point in the history
SAK-27660 Replaced own code with Locale.toString
  • Loading branch information
adrianfish committed Jan 28, 2015
2 parents 4c1ae7b + 81097cb commit bff2ddc
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,8 @@ public void execute(HttpServletRequest request, HttpServletResponse response)
String toolPlacementJs = toolPlacement.toString().replace('-','x');
String skin = "default/"; // this could be changed in the future to
// make search skin awaire

Locale locale = (new ResourceLoader()).getLocale();
String language = locale.getLanguage();
String country = locale.getCountry();

String lang = language;

if(country != null && !country.equals("")) {
lang += "_" + country;
}

vc.put("lang", lang);
vc.put("lang", (new ResourceLoader()).getLocale().toString());
vc.put("skin", skin);
vc.put("sakaiheader", sakaiHeader);
vc.put("includeLatestJQuery", PortalUtils.includeLatestJQuery("Search"));
Expand Down

0 comments on commit bff2ddc

Please sign in to comment.