From: David ‘Bombe’ Roden Date: Thu, 30 Jul 2015 20:31:39 +0000 (+0200) Subject: Use l10n filter instead of replacements X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1f951dd8fd24c86dce4b1fdd3b8e7ab29596ba22;p=Sone.git Use l10n filter instead of replacements --- 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>