Changeset 32517

Show
Ignore:
Timestamp:
15.10.2018 17:40:16 (5 weeks ago)
Author:
ak19
Message:

Fixing a bug that Kathy found: serbian (bosnian herzegovina) cyrillic and latin variants (sr-bh-cyr and sr-bh-lat) were not retrieving all the existing translated strings when viewing the status page. The macros coredm and auxdm modules were certainly not finding the correct translation files to get info on the number of strings already translated in those modules. This has now been fixed.

Files:
1 modified

Legend:

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

    r32096 r32517  
    4848    'file_type' => "macrofile", 
    4949    'source_file' => "macros/english.dm", 
    50     '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}.dm" }, 
     50    'target_file' => "macros/{bn:bengali;fa:farsi;gd:gaelic;id:indo;lv:latvian;pt-br:port-br;pt-pt:port-pt;sr-bh-cyr:serbian-bh-cyr;sr-bh-lat:serbian-bh-lat;zh-tr:chinese-trad;iso_639_1_target_language_name}.dm" }, 
    5151 
    5252{ 'key' => "auxdm", 
     
    831831    my ($source_file, $target_file, $translation_file_type) = 
    832832    &get_translation_data_for($target_language_code, $translation_file_key); 
    833      
     833     
    834834    # Check that the file to translate is defined in the gti.cfg file 
    835835    if (!$source_file || !$target_file || !$translation_file_type) {