Changeset 30582
- Timestamp:
- 2016-06-17T20:12:30+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gti.pl
r30581 r30582 158 158 if ($gti_command =~ /^get-all-chunks$/i) { 159 159 # Check that GS3 interface is the target 160 if ($module eq "gs3interface" || $module eq "gs3colcfg") {160 if ($module =~ m/^gs3/) { # gs3interface, gs3colcfg 161 161 print &get_all_chunks_for_gs3(@gti_command_arguments); 162 162 } else { … … 165 165 } 166 166 elsif ($gti_command =~ /^get-first-n-chunks-requiring-work$/i) { 167 if ($module eq "gs3interface" || $module eq "gs3colcfg") {167 if ($module =~ m/^gs3/) { 168 168 print &get_first_n_chunks_requiring_work_for_gs3(@gti_command_arguments); 169 169 } else { … … 172 172 } 173 173 elsif ($gti_command =~ /^get-uptodate-chunks$/i) { 174 if ($module eq "gs3interface" || $module eq "gs3colcfg") {174 if ($module =~ m/^gs3/) { 175 175 print &get_uptodate_chunks_for_gs3(@gti_command_arguments); 176 176 } else { … … 407 407 my $target_file_name = ""; 408 408 409 if ($translation_file->{'key'} eq "gs3interface" || $translation_file->{'key'} eq "gs3colcfg") {409 if ($translation_file->{'key'} =~ m/^gs3/) { # gs3interface, gs3colcfg 410 410 my (%source_file_key_to_text_mapping, %target_file_key_to_text_mapping, %source_file_key_to_last_update_date_mapping, %target_file_key_to_last_update_date_mapping ) = (); 411 411 &build_gs3_configuration($translation_file->{'key'}, $target_language_code, \%source_file_key_to_text_mapping, \%target_file_key_to_text_mapping, \%source_file_key_to_last_update_date_mapping, \%target_file_key_to_last_update_date_mapping ); … … 501 501 502 502 503 if ($translation_file_key ne "gs3interface" && $translation_file_key ne "gs3colcfg") {503 if ($translation_file_key !~ m/^gs3/) { 504 504 # Get (and check) the translation configuration 505 505 ($source_file, $target_file, $translation_file_type) = &get_translation_configuration($target_language_code, $translation_file_key); … … 590 590 591 591 592 if ($translation_file_key ne "gs3interface" && $translation_file_key ne "gs3colcfg") {592 if ($translation_file_key !~ m/^gs3/) { 593 593 # Get (and check) the translation configuration 594 594 ($source_file, $target_file, $translation_file_type) … … 710 710 } 711 711 712 if ($translation_file_key ne "gs3interface" && $translation_file_key ne "gs3colcfg") {712 if ($translation_file_key !~ m/^gs3/) { 713 713 eval "&write_translated_${translation_file_type}(\$source_file, \\\@source_file_lines, \\\%source_file_key_to_text_mapping, \$target_file, \\\@target_file_lines, \\\%target_file_key_to_text_mapping, \\\%target_file_key_to_gti_comment_mapping, \$target_language_code)"; 714 714 } else {
Note:
See TracChangeset
for help on using the changeset viewer.