diff --git a/chrome/chromeFiles/content/scholar/folderTreeView.js b/chrome/chromeFiles/content/scholar/folderTreeView.js index 74548b1a50..e6e73f5f06 100644 --- a/chrome/chromeFiles/content/scholar/folderTreeView.js +++ b/chrome/chromeFiles/content/scholar/folderTreeView.js @@ -279,7 +279,7 @@ Scholar.ItemGroup.prototype.getName = function() if(this.isCollection()) return this.ref.getName(); else if(this.isLibrary()) - return "Library"; + return Scholar.getString('pane.collections.library'); else return ""; } diff --git a/chrome/chromeFiles/content/scholar/metadataPane.js b/chrome/chromeFiles/content/scholar/metadataPane.js index 55310632a6..ab4bd84ddc 100644 --- a/chrome/chromeFiles/content/scholar/metadataPane.js +++ b/chrome/chromeFiles/content/scholar/metadataPane.js @@ -36,7 +36,7 @@ MetadataPane = new function() function viewItem(thisItem) { if(_editButton.hidden) - toggleEdit(confirm("Save changes to '"+_itemBeingEdited.getField('title')+"'?")); + toggleEdit(confirm(Scholar.getString('metadata.savechanges').replace('%1',_itemBeingEdited.getField('title')))); _itemBeingEdited = thisItem; diff --git a/chrome/chromeFiles/content/scholar/metadataPane.xul b/chrome/chromeFiles/content/scholar/metadataPane.xul index c8591eb588..bcf7b8174c 100644 --- a/chrome/chromeFiles/content/scholar/metadataPane.xul +++ b/chrome/chromeFiles/content/scholar/metadataPane.xul @@ -1,4 +1,5 @@ + @@ -16,7 +17,7 @@ @@ -34,9 +35,9 @@ - - diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index 6b70fcf82a..022a567782 100644 --- a/chrome/chromeFiles/content/scholar/overlay.js +++ b/chrome/chromeFiles/content/scholar/overlay.js @@ -74,13 +74,14 @@ var ScholarPane = new function() */ function newItem(typeID) { + document.getElementById('scholar-floater').hidden=false; MetadataPane.viewItem(new Scholar.Item(typeID)); MetadataPane.toggleEdit(); } function newCollection() { - Scholar.Collections.add('Untitled Collection'); + Scholar.Collections.add(Scholar.getString('pane.collections.untitled')); } function folderSelected() @@ -130,13 +131,13 @@ var ScholarPane = new function() function deleteItemSelection() { - if(itemsView && itemsView.selection.count > 0 && confirm("Are you sure you want to delete the selected items?")) + if(itemsView && itemsView.selection.count > 0 && confirm(Scholar.getString('pane.items.delete'))) itemsView.deleteSelection(); } function deleteCollectionSelection() { - if(foldersView.selection.count > 0 && confirm("Are you sure you want to delete the selected collections?")) + if(foldersView.selection.count > 0 && confirm(Scholar.getString('pane.collections.delete'))) foldersView.deleteSelection(); } @@ -146,7 +147,7 @@ var ScholarPane = new function() { collection = foldersView._getItemAtRow(foldersView.selection.currentIndex); - var newName = prompt('Rename collection:',collection.getName()); + var newName = prompt(Scholar.getString('pane.collections.rename'),collection.getName()); if(newName) collection.ref.rename(newName); } @@ -180,7 +181,7 @@ var ScholarItemsDragObserver = onDragStart: function (evt,transferData,action) { transferData.data=new TransferData(); - transferData.data.addDataForFlavour("text/unicode","finally"); + transferData.data.addDataForFlavour("text/unicode","random data"); } }; diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul index 29d45970db..04a125e823 100644 --- a/chrome/chromeFiles/content/scholar/overlay.xul +++ b/chrome/chromeFiles/content/scholar/overlay.xul @@ -23,14 +23,14 @@