Show
Ignore:
Timestamp:
13.03.2019 22:48:34 (12 months 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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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;