Show
Ignore:
Timestamp:
29.01.2001 14:54:58 (19 years ago)
Author:
sjboddie
Message:

Tidied up language support stuff.

Files:
1 modified

Legend:

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

    r1861 r1870  
    353353      } 
    354354 
    355       if (pref_langs.find("zh") == pref_langs.end()) 
    356     disp.setmacro ("encodingoption", "preferences", ""); 
    357  
    358355    } else { 
    359356      while (tlang != elang) { 
     
    373370    // create the "encoding" selection box for the preferences page 
    374371    text_t &arg_w = args["w"]; 
    375     // put encodings in another map to sort them by longname 
    376     text_tmap encodings; 
    377     encodinginfo_tmap::const_iterator thisenc = configinfo.encodings.begin(); 
    378     encodinginfo_tmap::const_iterator endenc = configinfo.encodings.end(); 
     372    text_t encodingoption; 
     373    text_tmap::const_iterator thisenc = configinfo.encodings.begin(); 
     374    text_tmap::const_iterator endenc = configinfo.encodings.end(); 
    379375    while (thisenc != endenc) { 
    380       encodings[(*thisenc).second.longname] = (*thisenc).first; 
    381       thisenc++; 
    382     } 
    383     text_tmap::iterator tenc = encodings.begin(); 
    384     text_tmap::iterator eenc = encodings.end(); 
    385  
    386     text_t encodingoption; 
    387     while (tenc != eenc) { 
    388       encodingoption += "<option value=\"" + (*tenc).second + "\""; 
    389       if ((*tenc).second == arg_w) encodingoption += " selected"; 
    390       encodingoption += ">" + (*tenc).first + "\n"; 
    391       tenc ++; 
     376      encodingoption += "<option value=\"" + (*thisenc).second + "\""; 
     377      if ((*thisenc).second == arg_w) encodingoption += " selected"; 
     378      encodingoption += ">" + (*thisenc).first + "\n"; 
     379      thisenc ++; 
    392380    } 
    393381