Use l10n property for album permalink
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Jul 2015 15:07:49 +0000 (17:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Jul 2015 15:07:49 +0000 (17:07 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/include/viewAlbum.html

index 1793b09..3f54c1b 100644 (file)
@@ -371,6 +371,7 @@ View.Post.NotDownloaded=This post has not yet been downloaded, or it has been de
 View.Post.ShowMore=show more
 View.Post.ShowLess=show less
 
+View.Album.Permalink=link album
 View.Album.SizeAndAuthor={1,number} {1,choice,0#images|1#image|1<images} by [link]{0}[/link]
 
 View.Image.Permalink=link image
@@ -470,4 +471,4 @@ Notification.Mention.Text=You have been mentioned in the following posts:
 Notification.SoneIsInserting.Text=Your Sone sone://{0} is now being inserted.
 Notification.SoneIsInserted.Text=Your Sone sone://{0} has been inserted in {1,number} {1,choice,0#seconds|1#second|1<seconds}.
 Notification.SoneInsertAborted.Text=Your Sone sone://{0} could not be inserted.
-# 72-74
+# 72-74, 374-377
index fe19191..fb2d7f0 100644 (file)
@@ -9,7 +9,7 @@
                </a>
        </div>
        <div class="information">
-               <div class="link"><a href="album://<% album.id|html>">[link album]</a></div>
+               <div class="link"><a href="album://<% album.id|html>">[<%= View.Album.Permalink|l10n|html>]</a></div>
                <div class="title"><a href="imageBrowser.html?album=<% album.id|html>"><% album.title|html></a></div>
                <div class="author"><% =View.Album.SizeAndAuthor|l10n 0=album.sone.niceName 1=album.images.size|html|replace needle=="[link]" replacement=='<a href="viewSone.html?sone=<sone-id>">'|replace needle=='[/link]' replacement=='</a>'|replace needle=='<sone-id>' replacement=album.sone.id></div>
                <div class="description"><% album.description|parse sone=album.sone|render></div>