Changeset 10097
- Timestamp:
- 2005-06-15T12:03:02+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/gtiaction.cpp
r10092 r10097 233 233 // Set the gtitfkselection macro 234 234 text_t gti_tfk_selection = "<table>"; 235 text_tmap::iterator translation_file = gti_response.translation_files_ key_to_null_mapping.begin();236 while (translation_file != gti_response.translation_files_ key_to_null_mapping.end()) {237 text_t translation_file_key = translation_file-> first;235 text_tmap::iterator translation_file = gti_response.translation_files_index_to_key_mapping.begin(); 236 while (translation_file != gti_response.translation_files_index_to_key_mapping.end()) { 237 text_t translation_file_key = translation_file->second; 238 238 239 239 gti_tfk_selection += "<tr><td>"; … … 496 496 497 497 if (element_name == "TranslationFile") { 498 int translation_file_index = gti_response->translation_files_index_to_key_mapping.size(); 498 499 gti_response->translation_file_key = xml_get_attribute(attributes, "key"); 499 gti_response->translation_files_ key_to_null_mapping[gti_response->translation_file_key] = "";500 gti_response->translation_files_index_to_key_mapping[translation_file_index] = gti_response->translation_file_key; 500 501 gti_response->translation_files_key_to_target_file_path_mapping[gti_response->translation_file_key] = xml_get_attribute(attributes, "target_file_path"); 501 502 gti_response->translation_files_key_to_num_chunks_translated_mapping[gti_response->translation_file_key] = xml_get_attribute(attributes, "num_chunks_translated"); -
trunk/gsdl/src/recpt/gtiaction.h
r10035 r10097 37 37 { 38 38 text_t translation_file_key; 39 text_tmap translation_files_ key_to_null_mapping;39 text_tmap translation_files_index_to_key_mapping; 40 40 text_tmap translation_files_key_to_num_chunks_translated_mapping; 41 41 text_tmap translation_files_key_to_num_chunks_requiring_translation_mapping;
Note:
See TracChangeset
for help on using the changeset viewer.