Changeset 18834


Ignore:
Timestamp:
03/30/09 13:00:17 (12 years ago)
Author:
kjdon
Message:

committing fix 18533 to branch - added Level strings to the list for translation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/branches/2.81-fixed/src/org/greenstone/gatherer/cdm/TranslationView.java

    r13195 r18834  
    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) {
Note: See TracChangeset for help on using the changeset viewer.