template updates for internationalization, including updated all.properties
This commit is contained in:
parent
dbcc75dc20
commit
639f0450ac
86 changed files with 917 additions and 448 deletions
|
@ -11,14 +11,14 @@
|
|||
<#macro accountsNav accountsCount=counts>
|
||||
|
||||
<section class="accounts">
|
||||
<input type="submit" name="delete-account" class="delete-account delete" value="Delete" onClick="changeAction(this.form, '${formUrls.delete}')" />
|
||||
<input type="submit" name="delete-account" class="delete-account delete" value="${i18n().delete_button}" onClick="changeAction(this.form, '${formUrls.delete}')" />
|
||||
<!--
|
||||
When this is clicked, the checkboxes are noticed and all other fields are ignored.
|
||||
submit the form (submit action is formUrls.delete)
|
||||
-->
|
||||
|
||||
<nav class="display-tools">
|
||||
<span>| ${total} accounts | </span>
|
||||
<span>| ${total} ${i18n().accounts} | </span>
|
||||
|
||||
<select name="accountsPerPage" class="accounts-per-page">
|
||||
<#list accountsCount as count>
|
||||
|
@ -32,14 +32,14 @@
|
|||
-->
|
||||
</select>
|
||||
|
||||
accounts per page <input type="submit" name="accounts-per-page" value="Update" /> |
|
||||
${i18n().accounts_per_page} <input type="submit" name="accounts-per-page" value="${i18n().update_button}" /> |
|
||||
|
||||
<#if page.previous?has_content>
|
||||
<a href="${formUrls.list}?accountsPerPage=${accountsPerPage}&pageIndex=${page.previous}" title="previous">Previous</a> <!-- only present if current page is not 1.-->
|
||||
<a href="${formUrls.list}?accountsPerPage=${accountsPerPage}&pageIndex=${page.previous}" title="${i18n().previous}">${i18n().previous}</a> <!-- only present if current page is not 1.-->
|
||||
</#if>
|
||||
${page.current} of ${page.last}
|
||||
<#if page.next?has_content>
|
||||
<a href="${formUrls.list}?accountsPerPage=${accountsPerPage}&pageIndex=${page.next}" title="next">Next</a><!-- only present if current page is not last page.-->
|
||||
<a href="${formUrls.list}?accountsPerPage=${accountsPerPage}&pageIndex=${page.next}" title="${i18n().next_capitalized}">${i18n().next_capitalized}</a><!-- only present if current page is not last page.-->
|
||||
</#if>
|
||||
</nav>
|
||||
</section>
|
||||
|
|
|
@ -24,7 +24,7 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/browseClassGrou
|
|||
<#elseif classGroup.uri == group.uri>
|
||||
<#assign activeGroup = selected />
|
||||
</#if>
|
||||
<li role="listitem"><a ${activeGroup}href="${urls.currentPage}?classgroupUri=${group.uri?url}#browse" title="Browse ${group.displayName?capitalize}" data-uri="${group.uri}" data-count="${group.individualCount}">${group.displayName?capitalize} <span class="count-classes">(${group.individualCount})</span></a></li>
|
||||
<li role="listitem"><a ${activeGroup}href="${urls.currentPage}?classgroupUri=${group.uri?url}#browse" title="${i18n().browse_capitalized} ${group.displayName?capitalize}" data-uri="${group.uri}" data-count="${group.individualCount}">${group.displayName?capitalize} <span class="count-classes">(${group.individualCount})</span></a></li>
|
||||
</#if>
|
||||
</#list>
|
||||
</#assign>
|
||||
|
@ -32,7 +32,7 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/browseClassGrou
|
|||
<#-- Display the class group browse only if we have at least one populated class group -->
|
||||
<#if firstPopulatedClassGroup??>
|
||||
<section id="browse" role="region">
|
||||
<h4>Browse by</h4>
|
||||
<h4>${i18n().browse_by}</h4>
|
||||
|
||||
<ul id="browse-classgroups" role="list">
|
||||
${classGroupList}
|
||||
|
@ -77,14 +77,14 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/browseClassGrou
|
|||
<#else>
|
||||
<#-- Would be nice to update classgroups-checkForData.ftl with macro so it could be used here as well -->
|
||||
<#-- <#include "classgroups-checkForData.ftl"> -->
|
||||
<h3>There is currently no content in the system, or you need to create class groups and assign your classes to them.</h3>
|
||||
<h3>${i18n().no_content_create_groups_classes}</h3>
|
||||
|
||||
<#if user.loggedIn>
|
||||
<#if user.hasSiteAdminAccess>
|
||||
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
||||
<p>${i18n().you_can} <a href="${urls.siteAdmin}" title="${i18n().add_content_manage_site}">${i18n().add_content_manage_site}</a> ${i18n().from_site_admin_page}</p>
|
||||
</#if>
|
||||
<#else>
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||
<p>${i18n().please} <a href="${urls.login}" title="${i18n().login_to_manage_site}">${i18n().log_in}</a> ${i18n().to_manage_content}</p>
|
||||
</#if>
|
||||
</#if>
|
||||
</#macro>
|
||||
|
|
|
@ -18,19 +18,19 @@
|
|||
<#if user.loggedIn>
|
||||
<#if user.authorizedToRebuildSearchIndex>
|
||||
<span class="contentNote">
|
||||
<h4>Expecting content?</h4>
|
||||
<p>Try <a title="Rebuild the search index for this site" href="${urls.base}/SearchIndex">rebuilding the search index</a>.</p>
|
||||
<h4>${i18n().expecting_content}</h4>
|
||||
<p><a title="${i18n().try_rebuilding_index}" href="${urls.base}/SearchIndex">${i18n().try_rebuilding_index}</a>.</p>
|
||||
</span>
|
||||
</#if>
|
||||
<#else>
|
||||
<span class="contentNote">
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||
<p>${i18n().please} <a href="${urls.login}" title="${i18n().login_to_manage_site}">${i18n().log_in}</a> ${i18n().to_manage_content}</p>
|
||||
</span>
|
||||
</#if>
|
||||
|
||||
<h3>There is currently no content in the system, or you need to create class groups and assign your classes to them.</h3>
|
||||
<h3>${i18n().no_content_create_groups_classes}</h3>
|
||||
|
||||
<#if user.loggedIn && user.hasSiteAdminAccess>
|
||||
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
||||
<p>${i18n().you_can} <a href="${urls.siteAdmin}" title="${i18n().add_content_manage_site}">${i18n().add_content_manage_site}</a> ${i18n().from_site_admin_page}</p>
|
||||
</#if>
|
||||
</#assign>
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<#import "lib-string.ftl" as str>
|
||||
<noscript>
|
||||
<p style="padding: 20px 20px 20px 20px;background-color:#f8ffb7">This browse page requires javascript, but your browser is set to disable javascript. Either enable javascript or use the <a href="http://localhost:8080/vivo/browse" title="index page">index page</a> to browse for information.</p>
|
||||
<p style="padding: 20px 20px 20px 20px;background-color:#f8ffb7">${i18n().browse_page_javascript_one} <a href="${urls.base}/browse" title="${i18n().index_page}">${i18n().index_page}</a> ${i18n().browse_page_javascript_two}</p>
|
||||
</noscript>
|
||||
|
||||
<section id="noJavascriptContainer" class="hidden">
|
||||
|
@ -20,7 +20,7 @@
|
|||
<#assign vClassCamel = str.camelCase(vClass.name) />
|
||||
<#-- Only display vClasses with individuals -->
|
||||
<#if (vClass.entityCount > 0)>
|
||||
<li id="${vClassCamel}"><a href="#${vClassCamel}" title="Browse all individuals in this class" data-uri="${vClass.URI}">${vClass.name} <span class="count-classes">(${vClass.entityCount})</span></a></li>
|
||||
<li id="${vClassCamel}"><a href="#${vClassCamel}" title="${i18n().browse_all_in_class}" data-uri="${vClass.URI}">${vClass.name} <span class="count-classes">(${vClass.entityCount})</span></a></li>
|
||||
</#if>
|
||||
</#list>
|
||||
</ul>
|
||||
|
@ -28,9 +28,9 @@
|
|||
<h3 class="selected-class"></h3>
|
||||
<#assign alphabet = ["A", "B", "C", "D", "E", "F", "G" "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] />
|
||||
<ul id="alpha-browse-individuals">
|
||||
<li><a href="#" class="selected" data-alpha="all" title="select all">All</a></li>
|
||||
<li><a href="#" class="selected" data-alpha="all" title="${i18n().select_all}">${i18n().all}</a></li>
|
||||
<#list alphabet as letter>
|
||||
<li><a href="#" data-alpha="${letter?lower_case}" title="Browse all individuals whose name starts with ${letter}">${letter}</a></li>
|
||||
<li><a href="#" data-alpha="${letter?lower_case}" title="${i18n().browse_all_starts_with(letter)}">${letter}</a></li>
|
||||
</#list>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
@ -22,19 +22,19 @@
|
|||
<#if user.authorizedToRebuildSearchIndex>
|
||||
<span class="contentNote">
|
||||
<h4>Expecting content?</h4>
|
||||
<p>Try <a title="Rebuild the search index for this site" href="${urls.base}/SearchIndex">rebuilding the search index</a>.</p>
|
||||
<p><a title="${i18n().try_rebuilding_index}" href="${urls.base}/SearchIndex">${i18n().try_rebuilding_index}</a>.</p>
|
||||
</span>
|
||||
</#if>
|
||||
<#else>
|
||||
<span class="contentNote">
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||
<p>${i18n().please} <a href="${urls.login}" title="${i18n().login_to_manage_site}">${i18n().log_in}</a> ${i18n().to_manage_content}</p>
|
||||
</span>
|
||||
</#if>
|
||||
|
||||
<h3>There is currently no ${page.title} content in the system</h3>
|
||||
<h3>${i18n().no_content_in_system(page.title)}</h3>
|
||||
<#if user.loggedIn && user.hasSiteAdminAccess>
|
||||
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
||||
<p>${i18n().you_can} <a href="${urls.siteAdmin}" title="Manage content">${i18n().add_content_manage_site}</a> ${i18n().from_site_admin_page}</p>
|
||||
</#if>
|
||||
|
||||
<p>You can browse all of the public content currently in the system using the <a href="${urls.index}" title="browse all content">index page</a>.</p>
|
||||
<p>${i18n().browse_all_public_content} <a href="${urls.index}" title="${i18n().browse_all_content}">${i18n().index_page}</a>.</p>
|
||||
</#assign>
|
|
@ -13,7 +13,7 @@
|
|||
<#else>
|
||||
<#assign classGroupIndividualCount = classGroupIndividualCount + vClass.entityCount />
|
||||
</#if>
|
||||
<li role="listitem"><a href="#browse-by" title="Browse all individuals in this class" data-uri="${vClass.URI}">${vClass.name} <span class="count-classes">(${vClass.entityCount})</span></a></li>
|
||||
<li role="listitem"><a href="#browse-by" title="${i18n().browse_all_in_class}" data-uri="${vClass.URI}">${vClass.name} <span class="count-classes">(${vClass.entityCount})</span></a></li>
|
||||
</#if>
|
||||
</#list>
|
||||
</ul>
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
<#if (individual.thumbUrl)??>
|
||||
<img src="${individual.thumbUrl}" width="90" alt="${individual.name}" />
|
||||
<h1 class="thumb">
|
||||
<a href="${individual.profileUrl}" title="View the profile page for ${individual.name}}">${individual.name}</a>
|
||||
<a href="${individual.profileUrl}" title="${i18n().view_profile_page_for} ${individual.name}}">${individual.name}</a>
|
||||
</h1>
|
||||
<#else>
|
||||
<h1>
|
||||
<a href="${individual.profileUrl}" title="View the profile page for ${individual.name}}">${individual.name}</a>
|
||||
<a href="${individual.profileUrl}" title="${i18n().view_profile_page_for} ${individual.name}}">${individual.name}</a>
|
||||
</h1>
|
||||
</#if>
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
|
||||
<#import "lib-properties.ftl" as p>
|
||||
|
||||
<a href="${individual.profileUrl}" title="name">${individual.name}</a>
|
||||
<a href="${individual.profileUrl}" title="${i18n().name}">${individual.name}</a>
|
||||
|
||||
<@p.mostSpecificTypes individual />
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<#import "lib-properties.ftl" as p>
|
||||
|
||||
<a href="${individual.profileUrl}" title="name">${individual.name}</a>
|
||||
<a href="${individual.profileUrl}" title="${i18n().name}">${individual.name}</a>
|
||||
|
||||
<@p.mostSpecificTypes individual />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue