Changeset 3859
- Timestamp:
- 2003-03-12T14:03:36+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/langaction.cpp
r3723 r3859 62 62 // if file isn't opened, print error and return 63 63 if (!readfile) { 64 logout << "File " << logfile .getcstr()<< " could not be found.\n";64 logout << "File " << logfile << " could not be found.\n"; 65 65 return pagenos; 66 66 } … … 219 219 //informs user and returns if output stream not opened 220 220 if(!argsout) { 221 logout << "File " << argsfile .getcstr()<< " could not be opened\n";221 logout << "File " << argsfile << " could not be opened\n"; 222 222 return; 223 223 } … … 232 232 //close the argsout output stream 233 233 argsout.close(); 234 234 235 235 //sets the current foreign language 236 236 if (args["ownchoice"] != "") { … … 271 271 //calls the translator file to create HTML files 272 272 cmd = "perl " + filename_cat(gsdlhome, "bin", "script", "fromsearch.pl") + " " + macroname + " " + lang + " " + baselanguage; 273 logout << "COMMAND: " << cmd .getcstr()<<endl;273 logout << "COMMAND: " << cmd <<endl; 274 274 275 275 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"; 277 277 return; 278 278 } … … 292 292 cmd = "perl " + filename_cat(gsdlhome, "bin", "script", "translator.pl") + " " + lang + " " + baselanguage; 293 293 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"; 295 295 return; 296 296 } … … 302 302 logout << "@ the 1st pg\n"; 303 303 cmd = "perl " + filename_cat(gsdlhome, "bin", "script", "picklanguage.pl"); 304 logout << cmd .getcstr()<< " PICKLANGUAGE\n" <<endl;304 logout << cmd << " PICKLANGUAGE\n" <<endl; 305 305 if(gsdl_system(cmd,true,logout) != 0) 306 306 return; … … 328 328 //give command to system to execute submission of translation 329 329 if((gsdl_system(cmd, true, logout)) != 0) 330 logout << "Process " << cmd .getcstr()<< " did not execute\n";330 logout << "Process " << cmd << " did not execute\n"; 331 331 332 332 //increments which page is displayed when translation is submitted … … 364 364 ifstream readfile(formfile.getcstr(), ios::in); 365 365 if (!readfile) { 366 logout << "File " << formfile .getcstr()<< " could not be found.\n";366 logout << "File " << formfile << " could not be found.\n"; 367 367 return; 368 368 } … … 457 457 // set the formcontent as the content of the form-page 458 458 459 logout << text.getcstr() <<endl;460 461 459 disp.setmacro("formcontent", "translang", text); 462 460 … … 470 468 navigationbar += "<td align=right>_javalinks_</td><td>"; 471 469 472 //PUT THIS LINE BACK IN TO RE CREATE THE LINK TO THE MACRO SEARCH FACILITY473 // if (pageno != "picklanguage")474 // navigationbar += "_imageserch_";470 if (pageno != "picklanguage") { 471 navigationbar += "_imageserch_"; 472 } 475 473 navigationbar += "</td></tr></table>\n</nobr>\n"; 476 474 navigationbar += "<!-- End of Navigation Bar -->\n";
Note:
See TracChangeset
for help on using the changeset viewer.