In einer Thymlef - Web - Anwendung habe ich in src\main\ressources die Dateien
Die Datei ist ISO-8859-1
Meine Thymlef sieht wie folgt aus:
Ausgeben tut er allerdings "??app.name_en_US??". Anscheinend habe ich irgendetwas übersehen, Wer kann mir sagen was?
- messages.properties
- messages_en.properties
- messages_de.properties
Code:
app.name=Editor
app.verson=V1.0
Die Datei ist ISO-8859-1
Meine Thymlef sieht wie folgt aus:
Code:
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="${title == null} ? #{app.name} + ' ' + #{app.version} : #{app.name} + ' ' + #{app.version} + ' - ' + #{${title}}">Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link th:href="@{/css/style.css}" rel="stylesheet" media="screen" />
<!-- JQuery -->
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Bootstrap -->
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- JQuery UI -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- Own Actions -->
<script th:src="@{/js/actions.js}"></script>
</head>
<body>
Editor
</body>
</html>
Ausgeben tut er allerdings "??app.name_en_US??". Anscheinend habe ich irgendetwas übersehen, Wer kann mir sagen was?