diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-05 10:20:59 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-06-05 10:20:59 -0400 |
commit | 6537deb8b76b7a4725c40a174a7c440385f88e51 (patch) | |
tree | 78399974a6de9599e63373459e90da41fd16532d /src/main/java/com/gitblit/models | |
parent | 05f229883c4e15e044c5c103acf69265cfb8806e (diff) | |
download | gitblit-6537deb8b76b7a4725c40a174a7c440385f88e51.tar.gz gitblit-6537deb8b76b7a4725c40a174a7c440385f88e51.zip |
Revise language/locale preference handling
Diffstat (limited to 'src/main/java/com/gitblit/models')
-rw-r--r-- | src/main/java/com/gitblit/models/UserPreferences.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/models/UserPreferences.java b/src/main/java/com/gitblit/models/UserPreferences.java index 44e44933..61db353c 100644 --- a/src/main/java/com/gitblit/models/UserPreferences.java +++ b/src/main/java/com/gitblit/models/UserPreferences.java @@ -37,7 +37,7 @@ public class UserPreferences implements Serializable { public final String username; - public String locale; + private String locale; private final Map<String, UserRepositoryPreferences> repositoryPreferences = new TreeMap<String, UserRepositoryPreferences>(); @@ -58,6 +58,10 @@ public class UserPreferences implements Serializable { return new Locale(locale); } + public void setLocale(String locale) { + this.locale = locale; + } + public UserRepositoryPreferences getRepositoryPreferences(String repositoryName) { String key = repositoryName.toLowerCase(); if (!repositoryPreferences.containsKey(key)) { |