Changeset 18533

Show
Ignore:
Timestamp:
18.02.2009 11:48:00 (11 years ago)
Author:
kjdon
Message:

added Level strings to the list for translation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/TranslationView.java

    r18412 r18533  
    5454    static final private String GENERAL_STR = "General:"; 
    5555    static final private String INDEX_STR = "Index:"; 
     56    static final private String LEVEL_STR = "Level:"; 
    5657    static final private String PARTITION_STR = "Partitions:"; 
    5758 
     
    9394        } 
    9495    } 
    95  
     96    // Add the levels, if any 
     97    ArrayList levels = CollectionDesignManager.index_manager.getLevels(); 
     98    int levels_size = levels.size(); 
     99    for (int j=0; j<levels.size(); j++) { 
     100        Object bob = new BobTheMagicalComparableWrapper(levels.get(j)); 
     101        if(!features_model.contains(bob)) { 
     102          features_model.add(bob); 
     103        } 
     104    } 
     105       
    96106    // We also add subindexes. 
    97107    ArrayList subindexes = CollectionDesignManager.subcollectionindex_manager.getSubcollectionIndexes(); 
     
    151161        return StaticStrings.STOP_CHARACTER + ((Index)content).getID(); 
    152162        } 
     163        // level 
     164        else if (content instanceof IndexOption) { 
     165          return StaticStrings.STOP_CHARACTER + ((IndexOption)content).getName(); 
     166        } 
    153167        else if (content instanceof SubcollectionIndex) { 
    154168            return StaticStrings.STOP_CHARACTER + ((SubcollectionIndex)content).getID(); 
     
    167181        if(content instanceof Index) { 
    168182            text = INDEX_STR + temp; 
     183        } 
     184        else if (content instanceof IndexOption) { 
     185          text = LEVEL_STR + temp; 
    169186        } 
    170187        else if(content instanceof SubcollectionIndex) {