Changeset 3859


Ignore:
Timestamp:
2003-03-12T14:03:36+13:00 (21 years ago)
Author:
davidb
Message:

Improvements to translator facility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/langaction.cpp

    r3723 r3859  
    6262  // if file isn't opened, print error and return
    6363  if (!readfile) {
    64     logout << "File " << logfile.getcstr() << " could not be found.\n";
     64    logout << "File " << logfile << " could not be found.\n";
    6565    return pagenos;
    6666  }
     
    219219  //informs user and returns if output stream not opened
    220220  if(!argsout) {
    221     logout << "File " << argsfile.getcstr() << " could not be opened\n";
     221    logout << "File " << argsfile << " could not be opened\n";
    222222      return;
    223223  }
     
    232232  //close the argsout output stream
    233233  argsout.close();
    234  
     234
    235235  //sets the current foreign language
    236236  if (args["ownchoice"] != "") {
     
    271271    //calls the translator file to create HTML files
    272272    cmd = "perl " + filename_cat(gsdlhome, "bin", "script", "fromsearch.pl") + " " + macroname + " " + lang + " " + baselanguage;
    273     logout << "COMMAND: " << cmd.getcstr() <<endl;
     273    logout << "COMMAND: " << cmd <<endl;
    274274   
    275275    if ((gsdl_system(cmd, true, logout)) != 0) {
    276       logout << "Process " << cmd.getcstr() << " did not execute.../;-D\n";
     276      logout << "Process " << cmd << " did not execute.../;-D\n";
    277277      return;
    278278    }
     
    292292    cmd = "perl " + filename_cat(gsdlhome, "bin", "script", "translator.pl") + " " + lang + " " + baselanguage;
    293293    if ((gsdl_system(cmd, true, logout)) != 0) {
    294       logout << "Process " << cmd.getcstr() << " did not execute.../;-D\n";
     294      logout << "Process " << cmd << " did not execute.../;-D\n";
    295295      return;
    296296    }
     
    302302    logout << "@ the 1st pg\n";
    303303    cmd = "perl " + filename_cat(gsdlhome, "bin", "script", "picklanguage.pl");
    304     logout << cmd.getcstr() << " PICKLANGUAGE\n" <<endl;
     304    logout << cmd << " PICKLANGUAGE\n" <<endl;
    305305    if(gsdl_system(cmd,true,logout) != 0)
    306306      return;
     
    328328    //give command to system to execute submission of translation
    329329    if((gsdl_system(cmd, true, logout)) != 0)
    330       logout << "Process " << cmd.getcstr() << " did not execute\n";
     330      logout << "Process " << cmd << " did not execute\n";
    331331   
    332332    //increments which page is displayed when translation is submitted
     
    364364  ifstream readfile(formfile.getcstr(), ios::in);
    365365  if (!readfile) {
    366     logout << "File " << formfile.getcstr() << " could not be found.\n";
     366    logout << "File " << formfile << " could not be found.\n";
    367367    return;
    368368  }
     
    457457  // set the formcontent  as the content of the form-page
    458458 
    459   logout << text.getcstr() <<endl;
    460 
    461459  disp.setmacro("formcontent", "translang", text);
    462460 
     
    470468  navigationbar += "<td align=right>_javalinks_</td><td>";
    471469
    472   //PUT THIS LINE BACK IN TO RE CREATE THE LINK TO THE MACRO SEARCH FACILITY
    473   //  if (pageno != "picklanguage")
    474   //  navigationbar += "_imageserch_";
     470  if (pageno != "picklanguage") {
     471    navigationbar += "_imageserch_";
     472  }
    475473  navigationbar += "</td></tr></table>\n</nobr>\n";
    476474  navigationbar += "<!-- End of Navigation Bar -->\n";
Note: See TracChangeset for help on using the changeset viewer.