Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Nov 21, 2024
2 parents 28287e7 + 1439f82 commit 8fa7475
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion json2properties-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.namics.oss.magnolia</groupId>
<artifactId>magnolia-dictionary-parent</artifactId>
<version>1.3.3</version>
<version>1.3.4-SNAPSHOT</version>
</parent>

<artifactId>json2properties-generator</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion magnolia-dictionary/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.namics.oss.magnolia</groupId>
<artifactId>magnolia-dictionary-parent</artifactId>
<version>1.3.3</version>
<version>1.3.4-SNAPSHOT</version>
</parent>

<artifactId>magnolia-dictionary</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void start(ModuleLifecycleContext moduleLifecycleContext) {
LOG.info("Start Dictionary module: Load labels to dictionary");
messagesInstaller.loadLabelsToDictionary();
}
dictionaryMessageBundlesLoader.reload();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public class DictionaryMessageBundlesLoader implements EventListener {
private static final Logger LOG = LoggerFactory.getLogger(DictionaryMessageBundlesLoader.class);
private final Provider<SystemContext> systemContextProvider;
private Map<Locale, Properties> messages = Collections.emptyMap();
private Map<Locale, Properties> messages;

@Inject
public DictionaryMessageBundlesLoader(final Provider<SystemContext> systemContextProvider) {
Expand Down Expand Up @@ -84,6 +84,9 @@ private Stream<Map.Entry<String, String>> streamMessages(final Locale locale, fi
}

public Map<Locale, Properties> getMessages() {
if(messages == null) {
reload();
}
return messages;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
<name>i18n</name>
<version>*/*</version>
</dependency>
<dependency>
<name>site</name>
<version>*</version>
<optional>true</optional>
</dependency>
<dependency>
<name>multisite</name>
<version>*</version>
<optional>true</optional>
</dependency>
</dependencies>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.namics.oss.magnolia</groupId>
<artifactId>magnolia-dictionary-parent</artifactId>
<version>1.3.3</version>
<version>1.3.4-SNAPSHOT</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down

0 comments on commit 8fa7475

Please sign in to comment.