Use l10n filter instead of replacements
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Jul 2015 20:31:39 +0000 (22:31 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Jul 2015 20:31:39 +0000 (22:31 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/deleteAlbum.html

index 12927a5..cbb18d6 100644 (file)
@@ -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.
 
index 9b31548..8caad9f 100644 (file)
@@ -2,7 +2,7 @@
 
        <h1><%= Page.DeleteAlbum.Page.Title|l10n|html></h1>
 
-       <p><%= Page.DeleteAlbum.Text.AlbumWillBeGone|l10n|replace needle=="{title}" replacement=album.title|html></p>
+       <p><%= Page.DeleteAlbum.Text.AlbumWillBeGone|l10n 0=album.title|html></p>
 
        <form method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />