mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
expose this to plugins
This commit is contained in:
1 parent
53a31c3153
commit
d4db356c1e
2 files changed
+12
-7
No files matched your search
@@ -83,13 +83,7 @@ public final class WebAppMain implements ServletContextListener {
|
||||
// use the current request to determine the language
|
||||
LocaleProvider.setProvider(new LocaleProvider() {
|
||||
public Locale get() {
|
||||
Locale locale=null;
|
||||
StaplerRequest req = Stapler.getCurrentRequest();
|
||||
if(req!=null)
|
||||
locale = req.getLocale();
|
||||
if(locale==null)
|
||||
locale = Locale.getDefault();
|
||||
return locale;
|
||||
return Functions.getCurrentLocale();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user