Skip to content

Commit 4606fdb

Browse files
authored
Merge pull request #210 from jonesbusy/feature/move-appearance
Move configuration to appearance
2 parents f011655 + df831e9 commit 4606fdb

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ you're using have been translated into the specified language).
3131
To additionally force this language on all users, overriding their browser language,
3232
you can check the "Ignore browser preference and force this language to all users" option.
3333

34-
JCasC is supported on all version after 1.4
34+
JCasC configuration example:
3535

3636
```
37-
unclassified:
37+
appearance:
3838
locale:
3939
systemLocale: en
4040
ignoreAcceptLanguage: true

src/main/java/hudson/plugins/locale/PluginImpl.java

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package hudson.plugins.locale;
22

33
import com.thoughtworks.xstream.XStream;
4+
import edu.umd.cs.findbugs.annotations.NonNull;
45
import hudson.Extension;
56
import hudson.Util;
67
import hudson.XmlFile;
@@ -11,7 +12,9 @@
1112
import java.io.File;
1213
import java.util.Locale;
1314
import javax.servlet.ServletException;
15+
import jenkins.appearance.AppearanceCategory;
1416
import jenkins.model.GlobalConfiguration;
17+
import jenkins.model.GlobalConfigurationCategory;
1518
import jenkins.model.Jenkins;
1619
import net.sf.json.JSONObject;
1720
import org.jenkinsci.Symbol;
@@ -125,6 +128,12 @@ public static Locale parse(String s) {
125128
}
126129
}
127130

131+
@NonNull
132+
@Override
133+
public GlobalConfigurationCategory getCategory() {
134+
return GlobalConfigurationCategory.get(AppearanceCategory.class);
135+
}
136+
128137
private static final XStream XSTREAM = new XStream2();
129138

130139
static {
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unclassified:
1+
appearance:
22
locale:
33
systemLocale: fr
44
ignoreAcceptLanguage: true

0 commit comments

Comments
 (0)