Skip to content

Commit dfb3912

Browse files
committed
MIR-1320 add english translations
1 parent d975078 commit dfb3912

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

mir-layout/src/main/java/org/mycore/mir/viewer/MIRViewerConfigurationStrategy.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package org.mycore.mir.viewer;
22

3-
import java.util.Locale;
4-
3+
import jakarta.servlet.http.HttpServletRequest;
54
import org.mycore.common.xml.MCRXMLFunctions;
65
import org.mycore.common.xsl.MCRParameterCollector;
76
import org.mycore.frontend.MCRFrontendUtil;
87
import org.mycore.viewer.configuration.MCRViewerConfiguration;
98
import org.mycore.viewer.configuration.MCRViewerDefaultConfigurationStrategy;
109

11-
import jakarta.servlet.http.HttpServletRequest;
10+
import java.util.Locale;
1211

1312
public class MIRViewerConfigurationStrategy extends MCRViewerDefaultConfigurationStrategy {
1413

@@ -35,7 +34,7 @@ public MCRViewerConfiguration get(HttpServletRequest request) {
3534

3635
String customJS = params.getParameter("MIR.CustomLayout.JS", "");
3736
if (customJS.length() > 0) {
38-
mcrViewerConfiguration.addScript(String.format(Locale.ROOT, "%sjs/%s", baseURL, customJS));
37+
mcrViewerConfiguration.addScript(String.format(Locale.ROOT, "%sjs/%s", baseURL, customJS), false);
3938
}
4039

4140
if (request.getParameter("embedded") != null) {
@@ -44,7 +43,7 @@ public MCRViewerConfiguration get(HttpServletRequest request) {
4443
} else {
4544
// Default JS
4645
mcrViewerConfiguration
47-
.addScript(MCRFrontendUtil.getBaseURL() + "assets/bootstrap/js/bootstrap.min.js");
46+
.addScript(MCRFrontendUtil.getBaseURL() + "assets/bootstrap/js/bootstrap.min.js", false);
4847
}
4948
}
5049

mir-wizard/src/main/resources/config/mir-wizard/messages_en.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ component.mir.wizard.smtp.title = SMTP settings
4242
component.mir.wizard.smtp.user = Username
4343
component.mir.wizard.solr.classificationCore = Classification Core
4444
component.mir.wizard.solr.mainCore = Main Core
45+
component.mir.wizard.solr.createCores = Create cores in SOLR server via Solr Cloud API
46+
component.mir.wizard.solr.adminUserEnabled = Configure a user for Solr administration
47+
component.mir.wizard.solr.admin.username = Username
48+
component.mir.wizard.solr.admin.password = Password
49+
component.mir.wizard.solr.indexUserEnabled = Configure a user for indexing in Solr
50+
component.mir.wizard.solr.index.username = Username
51+
component.mir.wizard.solr.index.password = Password
52+
component.mir.wizard.solr.searchUserEnabled = Configure a user for searching in Solr
53+
component.mir.wizard.solr.search.username = Username
54+
component.mir.wizard.solr.search.password = Password
55+
component.mir.wizard.solr.useTika = Use an external Tika server for full-text extraction
56+
component.mir.wizard.solr.tikaUrl = Tika server URL
57+
4558
component.mir.wizard.solr.title = SOLR Server
4659
component.mir.wizard.solr.url = URL
4760
component.mir.wizard.solr.url.required = Please input a valid SOLR Server URL!

0 commit comments

Comments
 (0)