Changeset 13941


Ignore:
Timestamp:
2007-02-21T16:34:26+13:00 (17 years ago)
Author:
nzdl
Message:

when processing the submissions, the translation keys are encoded to be URL safe but not decoded, so translator cannot find the source string with the wrong keys. Added the decode function.

File:
1 edited

Legend:

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

    r13692 r13941  
    563563    if (strncmp(cgi_argument_name_cstr, source_chunk_key_start_cstr, strlen(source_chunk_key_start_cstr)) == 0) {
    564564      submission_text += "<SourceFileText key=\"";
    565       submission_text += &cgi_argument_name_cstr[strlen(source_chunk_key_start_cstr)];
     565      text_t source_key = &cgi_argument_name_cstr[strlen(source_chunk_key_start_cstr)];
     566      decode_cgi_arg(source_key);
     567      submission_text += source_key;
     568      //submission_text += &cgi_argument_name_cstr[strlen(source_chunk_key_start_cstr)];
    566569      submission_text += "\">\n";
    567570
     
    576579    if (strncmp(cgi_argument_name_cstr, target_chunk_key_start_cstr, strlen(target_chunk_key_start_cstr)) == 0) {
    577580      submission_text += "<TargetFileText key=\"";
    578       submission_text += &cgi_argument_name_cstr[strlen(target_chunk_key_start_cstr)];
     581      text_t target_key = &cgi_argument_name_cstr[strlen(target_chunk_key_start_cstr)];
     582      decode_cgi_arg(target_key);
     583      submission_text += target_key;
     584      //submission_text += &cgi_argument_name_cstr[strlen(target_chunk_key_start_cstr)];
    579585      submission_text += "\">\n";
    580586
Note: See TracChangeset for help on using the changeset viewer.