Ignore:
Timestamp:
2004-03-04T16:37:57+13:00 (20 years ago)
Author:
mdewsnip
Message:

Changed the way display in different languages is done. Instead of passing a language variable throughout the process, the desired resource bundle is explicitly loaded during the initialization of each program (buildcol.pl, classinfo.pl, exportcol.pl, import.pl mkcol.pl, pluginfo.pl).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/BasClas.pm

    r6918 r6925  
    9393{
    9494    local $self = shift(@_);
    95     local $language = shift(@_);
    9695
    9796    &PrintUsage::print_xml_header();
    98     $self->print_xml($language);
     97    $self->print_xml();
    9998}
    10099
     
    103102{
    104103    local $self = shift(@_);
    105     local $language = shift(@_);
    106104
    107105    local $optionlistref = $self->{'option_list'};
     
    117115    print STDERR "  <Arguments>\n";
    118116    if (defined($classifieroptions->{'args'})) {
    119     &PrintUsage::print_options_xml($language, $classifieroptions->{'args'});
     117    &PrintUsage::print_options_xml($classifieroptions->{'args'});
    120118    }
    121119
    122120    # Recurse up the classifier hierarchy
    123     $self->print_xml($language);
     121    $self->print_xml();
    124122
    125123    print STDERR "  </Arguments>\n";
     
    131129{
    132130    local $self = shift(@_);
    133     local $language = shift(@_);
    134131
    135132    # Print the usage message for a classifier (recursively)
    136133    local $descoffset = $self->determine_description_offset(0);
    137     $self->print_classifier_usage($language, $descoffset, 1);
     134    $self->print_classifier_usage($descoffset, 1);
    138135}
    139136
     
    168165{
    169166    local $self = shift(@_);
    170     local $language = shift(@_);
    171167    local $descoffset = shift(@_);
    172168    local $isleafclass = shift(@_);
     
    198194
    199195    # Display the classifier options
    200     &PrintUsage::print_options_txt($language, $classifierargs, $optiondescoffset);
     196    &PrintUsage::print_options_txt($classifierargs, $optiondescoffset);
    201197    }
    202198
    203199    # Recurse up the classifier hierarchy
    204     $self->print_classifier_usage($language, $descoffset, 0);
     200    $self->print_classifier_usage($descoffset, 0);
    205201    $self->{'option_list'} = \@optionlist;
    206202}
Note: See TracChangeset for help on using the changeset viewer.