Changeset 10050
- Timestamp:
- 2005-06-13T13:05:34+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gti.pl
r10041 r10050 97 97 print &search_chunks(@gti_command_arguments); 98 98 } 99 if ($gti_command =~ /^submit-translation $/i) {99 if ($gti_command =~ /^submit-translations$/i) { 100 100 # This command cannot produce any output since it reads input 101 &submit_translation (@gti_command_arguments);101 &submit_translations(@gti_command_arguments); 102 102 } 103 103 … … 384 384 385 385 386 sub submit_translation 386 sub submit_translations 387 387 { 388 388 # The code of the target language (ensure it is lowercase) … … 1002 1002 my $target_file_chunk = $source_file_chunk; 1003 1003 $target_file_chunk =~ s/$source_file_chunk_text/$target_file_chunk_text/; 1004 $target_file_chunk =~ s/(\s)*$//; 1004 1005 print TARGET_FILE "$target_file_chunk"; 1005 1006 } … … 1008 1009 else { 1009 1010 print TARGET_FILE "$macrofile_key [l=$target_language_code] {$target_file_chunk_text}"; 1010 if ($target_file_key_to_comment_date_mapping->{$chunk_key}) {1011 print TARGET_FILE " # Updated " . $target_file_key_to_comment_date_mapping->{$chunk_key};1012 }1013 print TARGET_FILE "\n";1014 1011 } 1012 1013 # Add the update date, if one exists 1014 if ($target_file_key_to_comment_date_mapping->{$chunk_key}) { 1015 print TARGET_FILE " # Updated " . $target_file_key_to_comment_date_mapping->{$chunk_key}; 1016 } 1017 print TARGET_FILE "\n"; 1015 1018 } 1016 1019
Note:
See TracChangeset
for help on using the changeset viewer.