Changeset 10027 for trunk/gsdl/bin/script/gti.pl
- Timestamp:
- 2005-06-08T14:03:53+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gti.pl
r10020 r10027 386 386 # The key of the file to translate (ensure it is lowercase) 387 387 my $translation_file_key = lc(shift(@_)); 388 # Whether to submit a target chunk even if it hasn't changed 389 my $force_submission_flag = shift(@_); 388 390 389 391 # Check that the necessary arguments were supplied … … 489 491 next; 490 492 } 491 492 # Apply the submitted translations 493 if (defined($target_file_key_to_submission_mapping{$chunk_key})) { 494 $target_file_key_to_text_mapping{$chunk_key} = $target_file_key_to_submission_mapping{$chunk_key}; 493 } 494 495 # Apply the submitted translations 496 foreach my $chunk_key (keys(%target_file_key_to_submission_mapping)) { 497 if ($force_submission_flag || $target_file_key_to_submission_mapping{$chunk_key} ne $target_file_key_to_text_mapping{$chunk_key}) { 498 $target_file_key_to_text_mapping{$chunk_key} = $target_file_key_to_submission_mapping{$chunk_key}; 495 499 $target_file_key_to_comment_date_mapping{$chunk_key} = $submission_date; 496 500 } 497 501 } 498 502 … … 845 849 $i++; 846 850 $line = $file_lines[$i]; 847 $line =~ s/ (\s*)$//; # Remove any nasty whitespace, carriage returns etc.851 $line =~ s/\s*([^\\]\#.+)?$//; # Remove any comments and nasty whitespace 848 852 } 849 853
Note:
See TracChangeset
for help on using the changeset viewer.