File tree 3 files changed +12
-3
lines changed
main/java/hudson/plugins/locale
test/resources/hudson/plugins/locale
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ you're using have been translated into the specified language).
31
31
To additionally force this language on all users, overriding their browser language,
32
32
you can check the "Ignore browser preference and force this language to all users" option.
33
33
34
- JCasC is supported on all version after 1.4
34
+ JCasC configuration example:
35
35
36
36
```
37
- unclassified :
37
+ appearance :
38
38
locale:
39
39
systemLocale: en
40
40
ignoreAcceptLanguage: true
Original file line number Diff line number Diff line change 1
1
package hudson .plugins .locale ;
2
2
3
3
import com .thoughtworks .xstream .XStream ;
4
+ import edu .umd .cs .findbugs .annotations .NonNull ;
4
5
import hudson .Extension ;
5
6
import hudson .Util ;
6
7
import hudson .XmlFile ;
11
12
import java .io .File ;
12
13
import java .util .Locale ;
13
14
import javax .servlet .ServletException ;
15
+ import jenkins .appearance .AppearanceCategory ;
14
16
import jenkins .model .GlobalConfiguration ;
17
+ import jenkins .model .GlobalConfigurationCategory ;
15
18
import jenkins .model .Jenkins ;
16
19
import net .sf .json .JSONObject ;
17
20
import org .jenkinsci .Symbol ;
@@ -125,6 +128,12 @@ public static Locale parse(String s) {
125
128
}
126
129
}
127
130
131
+ @ NonNull
132
+ @ Override
133
+ public GlobalConfigurationCategory getCategory () {
134
+ return GlobalConfigurationCategory .get (AppearanceCategory .class );
135
+ }
136
+
128
137
private static final XStream XSTREAM = new XStream2 ();
129
138
130
139
static {
Original file line number Diff line number Diff line change 1
- unclassified :
1
+ appearance :
2
2
locale :
3
3
systemLocale : fr
4
4
ignoreAcceptLanguage : true
You can’t perform that action at this time.
0 commit comments