Changeset 9091


Ignore:
Timestamp:
2005-02-17T17:25:30+13:00 (19 years ago)
Author:
mdewsnip
Message:

Added a "-show_complete_translations" option to see just the translations that are finished.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/translator/writetranslationmedium.pl

    r8922 r9091  
    6666
    6767my $option_show_all_translations = 0;
     68my $option_show_complete_translations = 0;
    6869
    6970
     
    8384    while ($optionalarg) {
    8485    if ($optionalarg eq "-show_all_translations") { $option_show_all_translations = 1; }
     86    if ($optionalarg eq "-show_complete_translations") { $option_show_complete_translations = 1; }
    8587    $optionalarg = shift(@_);
    8688    }
     
    183185        $translationstowrite{$key}[0] = $sourcehash{$key};
    184186        $translationstowrite{$key}[1] = $translationdata{$key} || "";
     187        }
     188    }
     189    }
     190
     191    elsif ($option_show_complete_translations) {
     192    foreach $key (keys(%translationdata)) {
     193        if ($key !~ /\*$/ && $translationdata{$key} ne "") {
     194        $translationstowrite{$key}[0] = $sourcehash{$key};
     195        $translationstowrite{$key}[1] = $translationdata{$key};
    185196        }
    186197    }
Note: See TracChangeset for help on using the changeset viewer.