Changeset 29411

Show
Ignore:
Timestamp:
04.11.2014 18:49:04 (5 years ago)
Author:
ak19
Message:

There is rudimentary support for translating Greenstone 3 online via the GTI, activating that support, with slight modifications.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gti.pl

    r28992 r29411  
    5454    'target_file' => "macros/{bn:bengali;fa:farsi;gd:gaelic;id:indo;lv:latvian;pt-br:port-br;pt-pt:port-pt;zh-tr:chinese-trad;iso_639_1_target_language_name}2.dm" }, 
    5555 
    56 { 'key' => "paperspastdm", 
    57     'file_type' => "macrofile", 
    58     'source_file' => "macros/paperspast-english.dm", 
    59     'target_file' => "macros/paperspast-{bn:bengali;fa:farsi;gd:gaelic;id:indo;lv:latvian;pt-br:port-br;pt-pt:port-pt;zh-tr:chinese-trad;iso_639_1_target_language_name}.dm" }, 
     56#{ 'key' => "paperspastdm", 
     57#   'file_type' => "macrofile", 
     58#   'source_file' => "macros/paperspast-english.dm", 
     59#   'target_file' => "macros/paperspast-{bn:bengali;fa:farsi;gd:gaelic;id:indo;lv:latvian;pt-br:port-br;pt-pt:port-pt;zh-tr:chinese-trad;iso_639_1_target_language_name}.dm" }, 
    6060 
    6161# GLI dictionary 
     
    9494    'source_file' => "greenstoneorg/website/classes/Gsc.properties", 
    9595    'target_file' => "greenstoneorg/website/classes/Gsc_{target_language_code}.properties"  
    96 } 
    97  
    98 # { 'key' => "gs3interface", 
    99 #'file_type' => "resource_bundle", 
    100 #'source_file' => "greenstone3", 
    101 #'target_file' => "greenstone3" 
    102 #} 
     96}, 
     97 
     98{ 'key' => "gs3interface", 
     99'file_type' => "resource_bundle", 
     100'source_file' => "greenstone3", 
     101'target_file' => "greenstone3" 
     102} 
    103103]; 
    104104 
    105 my @gs3_interface_files = ("AbstractBrowse", "AbstractGS2FieldSearch", "AbstractSearch", "Authentication", "CrossCollectionSearch", "GS2Construct", "GS2LuceneSearch", "interface_default", "interface_default2", "IViaSearch", "LuceneSearch", "MapRetrieve", "MapSearch", "metadata_names", "PhindPhraseBrowse", "SharedSoleneGS2FieldSearch"); 
     105my @gs3_interface_files = ("AbstractBrowse", "AbstractGS2FieldSearch", "AbstractSearch", "AbstractTextSearch", "Authentication", "CrossCollectionSearch", "GS2Construct", "GS2LuceneSearch", "interface_default", "interface_default2", "IViaSearch", "LuceneSearch", "MapRetrieve", "MapSearch", "metadata_names", "PhindPhraseBrowse", "SharedSoleneGS2FieldSearch"); 
    106106 
    107107# Auxilliary GS3 interface files. This list is not used at present 
     
    119119 
    120120    # for GS3, set gsdl_root_dir to GSDL3HOME 
    121     if($module && $module eq "gs3interface"){ # module is empty when the gti-command is create-glihelp-zip-file 
    122     if($ENV{'GSDL3SRCHOME'}) { 
    123         $gsdl_root_directory = (defined $ENV{'GSDL3HOME'}) ? $ENV{'GSDL3HOME'} : &util::filename_cat($ENV{'GSDL3SRCHOME'}, "web"); 
    124         $gti_log_file = &util::filename_cat($gsdl_root_directory, "logs", "gti.log"); 
    125     } 
    126     } 
     121    #if($module && $module eq "gs3interface"){ # module is empty when the gti-command is create-glihelp-zip-file 
     122    #if($ENV{'GSDL3SRCHOME'}) { 
     123     #   $gsdl_root_directory = (defined $ENV{'GSDL3HOME'}) ? $ENV{'GSDL3HOME'} : &util::filename_cat($ENV{'GSDL3SRCHOME'}, "web"); 
     124     #   $gti_log_file = &util::filename_cat($gsdl_root_directory, "logs", "gti.log"); 
     125    #} 
     126    #} 
    127127     
    128128    # Open the GTI log file for appending, or write to STDERR if that fails