Changeset 32902

Show
Ignore:
Timestamp:
13.03.2019 22:48:34 (10 days ago)
Author:
ak19
Message:

Replacing alerts with fixed language strings with 2 new properties in interface_default2.properties. Not sure how to do newlines in there that won't break the Javascript.

Location:
main/trunk/greenstone3/web
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/classes/interface_default2.properties

    r32835 r32902  
    150150dse.browse_cannot_validate_xml=Your browser cannot handle XML validation 
    151151dse.create_new_document=Create new document 
     152dse.setarchives_error=An error occurred during setArchivesMetadata. Not proceeding further with saving and rebuilding. See browser's console log for details. 
     153dse.setarchives_server_error=A server side error occurred during setArchivesMetadata. (Is the server running?) Not proceeding further with saving and rebuilding. 
    152154dse.untitled_section=UNTITLED SECTION 
    153155dse.insert_new_section=Insert new section 
  • main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts_util.js

    r32893 r32902  
    543543     
    544544    var errorCallback = function() {         
    545         alert("A server side error occurred during setArchivesMetadata. (Is the server running?)\nNot proceeding further with saving and rebuilding."); 
     545        alert(gs.text.dse.setarchives_server_error); // "A server side error occurred during setArchivesMetadata. (Is the server running?)\nNot proceeding further with saving and rebuilding." 
    546546        return true; 
    547547         
     
    563563            var status_code = xmlDoc.getElementsByTagName("status")[0].getAttribute("code"); 
    564564            if(status_code === "3") { // status code 3 means error (see GSStatus.java::ERROR) 
    565                 alert("An error occurred during setArchivesMetadata.\nNot proceeding further with saving and rebuilding.\nSee browser's console log for details."); 
     565                alert(gs.text.dse.setarchives_error); // "An error occurred during setArchivesMetadata.\nNot proceeding further with saving and rebuilding.\nSee browser's console log for details." 
    566566                console.log("@@@ Error on setting archive metadata. Got error message: " + response); 
    567567                return true;