diff --git a/src/main/resources/templates/linkout.ftlh b/src/main/resources/templates/linkout.ftlh
index 1d37ef770..5444e8a02 100644
--- a/src/main/resources/templates/linkout.ftlh
+++ b/src/main/resources/templates/linkout.ftlh
@@ -13,7 +13,7 @@
-
<@spring.messageArgs "general.linkout.warning", [remoteUrl] />
+
<@spring.messageArgs code="general.linkout.warning" args=[remoteUrl] />
<@spring.message "project.back" />
diff --git a/src/main/resources/templates/projects/settings.ftlh b/src/main/resources/templates/projects/settings.ftlh
index 58309f6c1..f55e4169c 100644
--- a/src/main/resources/templates/projects/settings.ftlh
+++ b/src/main/resources/templates/projects/settings.ftlh
@@ -278,7 +278,7 @@
- <@spring.messageArgs "project.delete.info.uniqueid", p.project.name />
+ <@spring.messageArgs code="project.delete.info.uniqueid" args=[p.project.name] />
-
diff --git a/src/main/resources/templates/projects/versions/view.ftlh b/src/main/resources/templates/projects/versions/view.ftlh
index e226a1356..316485fc1 100644
--- a/src/main/resources/templates/projects/versions/view.ftlh
+++ b/src/main/resources/templates/projects/versions/view.ftlh
@@ -55,8 +55,7 @@
<#if headerData.globalPerm(Permission.Reviewer)>
<#if v.approvedBy?has_content>
- <#assign msgArgs=[v.approvedBy, utils.prettifyDateTime(v.v.approvedAt)] />
- <@spring.messageArgs "version.approved.info" msgArgs />
+ <@spring.messageArgs code="version.approed.info" args=[v.approvedBy, utils.prettifyDateTime(v.v.approvedAt)] />
#if>
#if>
diff --git a/src/main/resources/templates/projects/view.ftlh b/src/main/resources/templates/projects/view.ftlh
index c110525b0..3afecb099 100644
--- a/src/main/resources/templates/projects/view.ftlh
+++ b/src/main/resources/templates/projects/view.ftlh
@@ -48,7 +48,7 @@ Base template for Project overview.
${p.renderVisibilityChange(markdownService, "Unknown")}
<#else>
<#if p.visibility == Visibility.SOFTDELETE>
- <@spring.messageArgs "visibility.notice." + p.visibility.getName(), [p.lastVisibilityChangeUser] />
+ <@spring.messageArgs code="visibility.notice." + p.visibility.getName() args=[p.lastVisibilityChangeUser] />
<#else>
<@spring.message "visibility.notice." + p.visibility.getName() />
${p.renderVisibilityChange(markdownService, "")}
diff --git a/src/main/resources/templates/users/view.ftlh b/src/main/resources/templates/users/view.ftlh
index f7c9e927e..dd2c6788e 100644
--- a/src/main/resources/templates/users/view.ftlh
+++ b/src/main/resources/templates/users/view.ftlh
@@ -26,8 +26,8 @@
CATEGORY_TITLE['${category.apiName}'] = '${category.title}';
CATEGORY_ICON['${category.apiName}'] = '${category.icon}';
#list>
- NO_ACTION_MESSAGE.starred = '<@spring.messageArgs "user.noStars" u.user.name />';
- NO_ACTION_MESSAGE.watching = '<@spring.messageArgs "user.noWatching" u.user.name />';
+ NO_ACTION_MESSAGE.starred = '<@spring.messageArgs code="user.noStars" args=[u.user.name] />';
+ NO_ACTION_MESSAGE.watching = '<@spring.messageArgs code="user.noWatching" args=[u.user.name] />';
${additionalScripts}
#assign>