Changeset 10027 for trunk/gsdl/src/recpt/gtiaction.cpp
- Timestamp:
- 2005-06-08T14:03:53+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/gtiaction.cpp
r10026 r10027 181 181 } 182 182 183 // Process a user submission183 // Process user translations 184 184 if (args["p"] == "submit") { 185 process_gti_submission (disp, args, logout);185 process_gti_submissions(disp, args, logout, true); 186 186 } 187 187 … … 270 270 text_t translation_file_key = args["tfk"]; 271 271 text_t query_string = to_utf8(args["q"]); 272 273 // Process user corrections 274 if (args["sp"] != "") { 275 process_gti_submissions(disp, args, logout, false); 276 } 272 277 273 278 disp.setmacro("gtiformcontent", "gti", "_gti:gtifind_"); … … 318 323 chunk_key_iterator++; 319 324 } 325 gti_find_form_content += "_gtifindformfooter_\n"; 320 326 321 327 disp.setmacro("gtifindformcontent", "gti", gti_find_form_content); … … 402 408 403 409 404 void gtiaction::process_gti_submission (displayclass& disp, cgiargsclass &args, ostream& logout)410 void gtiaction::process_gti_submissions(displayclass& disp, cgiargsclass &args, ostream& logout, bool force_submission) 405 411 { 406 412 // Get the target language code and file to translate from the CGI arguments … … 442 448 // Send the submission to gti.pl 443 449 text_t gti_arguments = "submit-translation " + target_language_code + " " + translation_file_key; 450 if (force_submission) { 451 gti_arguments += " -force_submission"; 452 } 444 453 do_gti_submission(gti_arguments, submission_text, logout); 445 454 logout << "Done." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.