Changeset 10097


Ignore:
Timestamp:
2005-06-15T12:03:02+12:00 (19 years ago)
Author:
mdewsnip
Message:

Translation files are now displayed in the order they are defined in gti.pl.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

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

    r10092 r10097  
    233233  // Set the gtitfkselection macro
    234234  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;
    238238
    239239    gti_tfk_selection += "<tr><td>";
     
    496496
    497497  if (element_name == "TranslationFile") {
     498    int translation_file_index = gti_response->translation_files_index_to_key_mapping.size();
    498499    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;
    500501    gti_response->translation_files_key_to_target_file_path_mapping[gti_response->translation_file_key] = xml_get_attribute(attributes, "target_file_path");
    501502    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  
    3737{
    3838  text_t translation_file_key;
    39   text_tmap translation_files_key_to_null_mapping;
     39  text_tmap translation_files_index_to_key_mapping;
    4040  text_tmap translation_files_key_to_num_chunks_translated_mapping;
    4141  text_tmap translation_files_key_to_num_chunks_requiring_translation_mapping;
Note: See TracChangeset for help on using the changeset viewer.