Translate texts on “Known Sones” page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Oct 2011 20:34:28 +0000 (22:34 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Oct 2011 20:34:28 +0000 (22:34 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/knownSones.html

index 539f0e2..4210930 100644 (file)
@@ -87,6 +87,17 @@ Page.Index.PostList.Text.NoPostYet=Nobody has written any posts yet. You should
 Page.KnownSones.Title=Known Sones - Sone
 Page.KnownSones.Page.Title=Known Sones
 Page.KnownSones.Text.NoKnownSones=There are currently no known Sones.
+Page.KnownSones.Label.Sort=Sort:
+Page.KnownSones.Label.FollowedSones=Followed Sones:
+Page.KnownSones.Sort.Field.Name=Name
+Page.KnownSones.Sort.Field.LastActivity=Last activity
+Page.KnownSones.Sort.Field.Posts=Number of posts
+Page.KnownSones.Sort.Field.Images=Number of images
+Page.KnownSones.Sort.Order.Ascending=Ascending
+Page.KnownSones.Sort.Order.Descending=Descending
+Page.KnownSones.FollowedSones.ShowOnly=Show only followed Sones
+Page.KnownSones.FollowedSones.Hide=Hide followed Sones
+Page.KnownSones.Button.Apply=Apply
 Page.KnownSones.Button.FollowAllSones=Follow all Sones
 Page.KnownSones.Button.UnfollowAllSones=Unfollow all Sones
 
index e8c0642..eebfdf3 100644 (file)
        <div id="sort-options">
                <form action="knownSones.html" method="get">
                        <div>
-                               Sort:
+                               <%= Page.KnownSones.Label.Sort|l10n|html>
                                <select name="sort">
-                                       <option value="name"<%if sort|match value="name"> selected="selected"<%/if>>Name</option>
-                                       <option value="activity"<%if sort|match value="activity"> selected="selected"<%/if>>Last activity</option>
-                                       <option value="posts"<%if sort|match value="posts"> selected="selected"<%/if>>Number of posts</option>
-                                       <option value="images"<%if sort|match value="images"> selected="selected"<%/if>>Number of images</option>
+                                       <option value="name"<%if sort|match value="name"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.Name|l10n|html></option>
+                                       <option value="activity"<%if sort|match value="activity"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.LastActivity|l10n|html></option>
+                                       <option value="posts"<%if sort|match value="posts"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.Posts|l10n|html></option>
+                                       <option value="images"<%if sort|match value="images"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Field.Images|l10n|html></option>
                                </select>
                                <select name="order">
-                                       <option value="asc"<%if order|match value="asc"> selected="selected"<%/if>>Ascending</option>
-                                       <option value="desc"<%if order|match value="desc"> selected="selected"<%/if>>Descending</option>
+                                       <option value="asc"<%if order|match value="asc"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Order.Ascending|l10n|html></option>
+                                       <option value="desc"<%if order|match value="desc"> selected="selected"<%/if>><%= Page.KnownSones.Sort.Order.Descending|l10n|html></option>
                                </select>
                        </div>
                        <%ifnull !currentSone>
                                <div>
-                                       Followed Sones:
+                                       <%= Page.KnownSones.Label.FollowedSones|l10n|html>
                                        <select name="followedSones">
                                                <option value="none"></option>
-                                               <option value="show-only"<%if followedSones|match value="show-only"> selected="selected"<%/if>>Show only followed Sones</option>
-                                               <option value="hide"<%if followedSones|match value="hide"> selected="selected"<%/if>>Hide followed Sones</option>
+                                               <option value="show-only"<%if followedSones|match value="show-only"> selected="selected"<%/if>><%= Page.KnownSones.FollowedSones.ShowOnly|l10n|html></option>
+                                               <option value="hide"<%if followedSones|match value="hide"> selected="selected"<%/if>><%= Page.KnownSones.FollowedSones.Hide|l10n|html></option>
                                        </select>
                                </div>
                        <%/if>
                        <div>
-                               <button type="submit">Apply</button>
+                               <button type="submit"><%= Page.KnownSones.Button.Apply|l10n|html></button>
                        </div>
                </form>
        </div>