Skip to content

Commit

Permalink
Only English and Czech locales are now allowed
Browse files Browse the repository at this point in the history
- Any other locale will be considered English.
- I used Grails Locale Configuration Plugin to make it easier for me.
  • Loading branch information
pehala authored and VaclavDedik committed Nov 4, 2016
1 parent 323ea23 commit ae57881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ grails.project.dependency.resolution = {
compile ":lesscss-resources:1.3.1"
compile ":hibernate-filter:0.3.2"
compile ":feeds:1.5"
compile ':locale-configuration:1.1.1'
test(":spock:0.7") {
exclude "spock-grails-support"
}
Expand Down
4 changes: 4 additions & 0 deletions grails-app/conf/Config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ log4j = {
}
}

// Locale settings
grails.plugin.localeConfiguration.supportedLocales = [Locale.US, new Locale("cs")]
grails.plugin.localeConfiguration.defaultLocale = Locale.US

// Added by the Spring Security Core plugin:
grails.plugins.springsecurity.userLookup.userDomainClassName = 'com.redhat.theses.auth.User'
grails.plugins.springsecurity.authority.className = 'com.redhat.theses.auth.Role'
Expand Down

0 comments on commit ae57881

Please sign in to comment.