From 1f951dd8fd24c86dce4b1fdd3b8e7ab29596ba22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 30 Jul 2015 22:31:39 +0200 Subject: [PATCH] Use l10n filter instead of replacements --- src/main/resources/i18n/sone.en.properties | 2 +- src/main/resources/templates/deleteAlbum.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 12927a5..cbb18d6 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -268,7 +268,7 @@ Page.EditAlbum.Title=Edit Album - Sone Page.DeleteAlbum.Title=Delete Album - Sone Page.DeleteAlbum.Page.Title=Delete Album -Page.DeleteAlbum.Text.AlbumWillBeGone=This will remove your album “{title}”. Do you really want to do that? +Page.DeleteAlbum.Text.AlbumWillBeGone=This will remove your album “{0}”. Do you really want to do that? Page.DeleteAlbum.Button.Yes=Yes, delete album. Page.DeleteAlbum.Button.No=No, don’t delete album. diff --git a/src/main/resources/templates/deleteAlbum.html b/src/main/resources/templates/deleteAlbum.html index 9b31548..8caad9f 100644 --- a/src/main/resources/templates/deleteAlbum.html +++ b/src/main/resources/templates/deleteAlbum.html @@ -2,7 +2,7 @@

<%= Page.DeleteAlbum.Page.Title|l10n|html>

-

<%= Page.DeleteAlbum.Text.AlbumWillBeGone|l10n|replace needle=="{title}" replacement=album.title|html>

+

<%= Page.DeleteAlbum.Text.AlbumWillBeGone|l10n 0=album.title|html>

-- 2.7.4