Ignore:
Timestamp:
2018-07-16T17:20:12+12:00 (6 years ago)
Author:
ak19
Message:

Fixed a bug discovered when trying to get screenshots for Dr Nichols. I thought he needed screenshots of GEMS in French/any translated non-English language. When attempting to make the screenshots, I found I wasn't unable to launch GEMS in any other language than English. I found the infrastructure was there (strings were loaded from the Dictionary object, and GEMS strings had been translated into various languages), however, in the Dictionary object for GEMS was never initialised to use the specified locale. Fixed it now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java

    r28628 r32276  
    144144    JarTools.initialise(this);       
    145145    screen_size = Configuration.screen_size;
     146
     147    // Load GLI config file: set up the Configuration so we can set up the Dictionary language
     148    // Determine the GLI user directory path
     149    String gli_user_directory_path = System.getProperty("user.home") + File.separator;
     150        if (Utility.isWindows()) {
     151        gli_user_directory_path += "Application Data" + File.separator + "Greenstone" + File.separator + "GLI" + File.separator;
     152        }
     153        else {
     154            gli_user_directory_path += ".gli" + File.separator;
     155        }   
     156    new Configuration(gli_user_directory_path, gsdl_path, gsdl3_path,
     157              null /*gsdl3_src_path*/, null /*site_name*/, null /*fedora_info*/); // null for parameters unknown to GEMS
     158       
     159    // Read Dictionary in the locale specified in the config.xml
     160    new Dictionary(Configuration.getLocale("general.locale", true), Configuration.getFont("general.font", true));
     161   
    146162        msm = new MetadataSetManager(gsdl_path,gsdl3_path);       
    147163        stand_alone = standalone;
Note: See TracChangeset for help on using the changeset viewer.