i18n updates to javascript files and related templates

This commit is contained in:
tworrall 2013-06-11 12:25:01 -04:00
parent 57c962e82a
commit d74176f18d
40 changed files with 373 additions and 106 deletions

View file

@ -1,6 +1,9 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
$(document).ready(function(){
$.extend(this, i18nStringsUriRdf);
// This function creates and styles the "qTip" tooltip that displays the resource uri and the rdf link when the user clicks the uri/rdf icon.
$('span#iconControlsLeftSide').children('img#uriIcon').each(function()
{
@ -8,7 +11,7 @@ $(document).ready(function(){
{
content: {
prerender: true, // We need this for the .click() event listener on 'a.close'
text: '<h5>share the URI for this profile</h5> <input id="uriLink" type="text" value="' + $('#uriIcon').attr('title') + '" /><h5><a class ="rdf-url" href="' + individualRdfUrl + '">view profile in RDF format</a></h5><a class="close" href="#">close</a>'
text: '<h5>' + i18nStringsUriRdf.shareProfileUri + '</h5> <input id="uriLink" type="text" value="' + $('#uriIcon').attr('title') + '" /><h5><a class ="rdf-url" href="' + individualRdfUrl + '">' + i18nStringsUriRdf.viewRDFProfile + '</a></h5><a class="close" href="#">' + i18nStringsUriRdf.closeString + '</a>'
},
position: {
corner: {
@ -40,7 +43,7 @@ $(document).ready(function(){
{
content: {
prerender: true, // We need this for the .click() event listener on 'a.close'
text: '<h5>share the URI for this profile</h5> <input id="uriLink" type="text" value="' + $('#uriIcon').attr('title') + '" /><h5><a class ="rdf-url" href="' + individualRdfUrl + '">view profile in RDF format</a></h5><a class="close" href="#">close</a>'
text: '<h5>' + i18nStringsUriRdf.shareProfileUri + '</h5> <input id="uriLink" type="text" value="' + $('#uriIcon').attr('title') + '" /><h5><a class ="rdf-url" href="' + individualRdfUrl + '">' + i18nStringsUriRdf.viewRDFProfile + '</a></h5><a class="close" href="#">' + i18nStringsUriRdf.closeString + '</a>'
},
position: {
corner: {
@ -72,7 +75,7 @@ $(document).ready(function(){
{
content: {
prerender: true, // We need this for the .click() event listener on 'a.close'
text: '<h5>share the URI for this profile</h5> <input id="uriLink" type="text" value="' + $('#uriIcon').attr('title') + '" /><h5><a class ="rdf-url" href="' + individualRdfUrl + '">view profile in RDF format</a></h5><a class="close" href="#">close</a>'
text: '<h5>' + i18nStringsUriRdf.shareProfileUri + '</h5> <input id="uriLink" type="text" value="' + $('#uriIcon').attr('title') + '" /><h5><a class ="rdf-url" href="' + individualRdfUrl + '">' + i18nStringsUriRdf.viewRDFProfile + '</a></h5><a class="close" href="#">' + i18nStringsUriRdf.closeString + '</a>'
},
position: {
corner: {

View file

@ -16,6 +16,7 @@ var manageLabels = {
// Get the custom form data from the page
$.extend(this, customFormData);
$.extend(this, i18nStrings);
},
// Initial page setup. Called only at page load.
@ -81,7 +82,7 @@ var manageLabels = {
window.location = $('a.cancel').attr('href');
}
else {
alert('Error processing request: the unchecked labels could not be deleted.');
alert(manageLabels.errorProcessingLabels);
selectedRadio.removeAttr('checked');
$('span.or').show();
$('a.cancel').show();

View file

@ -13,6 +13,7 @@ var menuManagement = {
// Add variables from menupage template
mergeFromTemplate: function() {
$.extend(this, menuManagementData);
$.extend(this, i18nStrings);
},
// Create references to frequently used elements for convenience
@ -30,7 +31,7 @@ var menuManagement = {
this.menuItemsList.addClass('dragNdrop');
menuItems.attr('title', 'Drag and drop to reorder menu items');
menuItems.attr('title', menuManagement.dragDropMenus);
@ -95,7 +96,7 @@ var menuManagement = {
ui.item.appendTo(menuItems);
}
alert('Reordering of menu items failed.');
alert(menuManagement.reorderingFailed);
}
}
});

View file

@ -33,7 +33,7 @@ $(document).ready(function(){
$propertyGroupLi.removeClass("nonSelectedGroupTab clickable");
$propertyGroupLi.addClass("selectedGroupTab clickable");
}
if ( $propertyGroupLi.text() == "View All" ) {
if ( $propertyGroupLi.attr("groupname") == "viewAll" ) {
processViewAllTab();
}
else {