Skip to content

Commit 39a19c2

Browse files
committed
Extend resource bundle loaded in root report node to all the ones in the classpath
Signed-off-by: CARON Alice <[email protected]>
1 parent 204da59 commit 39a19c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/powsybl/openloadflow/util/Reports.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public static ReportNode createLoadFlowReporter(ReportNode reportNode, String ne
628628
public static ReportNode createRootLfNetworkReportNode(ReportNode firstRootReportNode, int networkNumCc, int networkNumSc) {
629629
return ReportNode.newRootReportNode()
630630
.withLocale(firstRootReportNode.getTreeContext().getLocale())
631-
.withResourceBundles(PowsyblOpenLoadFlowReportResourceBundle.BASE_NAME)
631+
.withAllResourceBundlesFromClasspath()
632632
.withMessageTemplate(LF_NETWORK_KEY)
633633
.withUntypedValue(NETWORK_NUM_CC, networkNumCc)
634634
.withUntypedValue(NETWORK_NUM_SC, networkNumSc)
@@ -890,7 +890,7 @@ public static void reportActionApplicationFailure(String actionId, String contin
890890
public static ReportNode createThreadRootReport(ReportNode firstRootReport) {
891891
return ReportNode.newRootReportNode()
892892
.withLocale(firstRootReport.getTreeContext().getLocale())
893-
.withResourceBundles(PowsyblOpenLoadFlowReportResourceBundle.BASE_NAME)
893+
.withAllResourceBundlesFromClasspath()
894894
.withMessageTemplate("olf.threadRoot")
895895
.build();
896896
}

0 commit comments

Comments
 (0)