Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/tagbangers/wallride
Browse files Browse the repository at this point in the history
  • Loading branch information
ogawa-takeshi committed Feb 22, 2017
2 parents b54272b + 90beace commit d343791
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parent>
<groupId>org.wallride</groupId>
<artifactId>wallride</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
<packaging>pom</packaging>
<name>WallRide</name>
<description>CMS for developers of principles</description>
Expand Down Expand Up @@ -80,7 +80,7 @@
<dependency>
<groupId>org.wallride</groupId>
<artifactId>wallride-core</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
</dependency>

<!-- Spring -->
Expand Down
2 changes: 1 addition & 1 deletion wallride-bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.wallride</groupId>
<artifactId>wallride-parent</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
<relativePath>../wallride-parent/pom.xml</relativePath>
</parent>
<artifactId>wallride-bootstrap</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wallride-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.wallride</groupId>
<artifactId>wallride</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>wallride-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.validation.DefaultMessageCodesResolver;
import org.springframework.validation.MessageCodesResolver;

@Configuration
public class WallRideMessageSourceConfiguration extends MessageSourceAutoConfiguration {

@Bean
@Override
public MessageSource messageSource() {
ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
messageSource.setDefaultEncoding("utf-8");
messageSource.setBasenames(
"classpath:/messages/messages",
"classpath:/messages/validations",
"classpath:/messages/enumerations",
"classpath:/messages/languages"
ResourceBundleMessageSource messageSource = (ResourceBundleMessageSource) super.messageSource();
messageSource.addBasenames(
"messages/messages",
"messages/validations",
"messages/enumerations",
"messages/languages"
);
return messageSource;
}
Expand Down
4 changes: 2 additions & 2 deletions wallride-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>org.wallride</groupId>
<artifactId>wallride-parent</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
<packaging>pom</packaging>
<name>WallRide Parent</name>
<description>CMS for developers of principles</description>
Expand Down Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>org.wallride</groupId>
<artifactId>wallride-core</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion wallride-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.wallride</groupId>
<artifactId>wallride</artifactId>
<version>1.0.0.M11</version>
<version>1.0.0.M12</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>wallride-tools</artifactId>
Expand Down

0 comments on commit d343791

Please sign in to comment.