Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Remove reference to javaName
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Aug 7, 2013
1 parent 62a46eb commit b3a6db9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -282,7 +282,7 @@ private static String getValidLang(String lang)
if (lang.contains("_"))
{
log.debug("Converting invalid locale to BCP47: {}", lang);
return LocaleId.fromJavaName(lang).getId();
lang = lang.replace('-', '_');
}
return new LocaleId(lang).getId();
}
Expand Down

0 comments on commit b3a6db9

Please sign in to comment.