Changeset 10020


Ignore:
Timestamp:
2005-06-08T10:52:21+12:00 (19 years ago)
Author:
mdewsnip
Message:

Searching now works with multiple words.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti.pl

    r10019 r10020  
    247247    # The code of the target language (ensure it is lowercase)
    248248    my $target_language_code = lc(shift(@_));
    249     print STDERR "Getting language status for " . $target_language_code . "\n";
    250249
    251250    # Check that the necessary arguments were supplied
     
    319318    my $translation_file_key = lc(shift(@_));
    320319    # The query string
    321     my $query_string = shift(@_);
     320    my $query_string = join(' ', @_);
     321    # &log_message("Query string: $query_string");
    322322
    323323    # Check that the necessary arguments were supplied
     
    325325    &throw_fatal_error("Missing command argument.");
    326326    }
    327 
    328     # !! Need to check that multiple words works
    329     print STDERR "Query string: $query_string\n";
    330327
    331328    # Get (and check) the translation configuration
     
    368365    print "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
    369366    print "<GTIResponse>\n";
    370     # print "  <TranslationFile"
    371     # . " key=\"" . $translation_file_key . "\""
    372     # . " target_file_path=\"" . $target_file . "\"\/>\n";
    373367
    374368    print "  <ChunksMatchingQuery size=\"" . scalar(@target_file_keys_matching_query) . "\">\n";
Note: See TracChangeset for help on using the changeset viewer.