Ignore:
Timestamp:
2022-09-08T11:08:46+12:00 (20 months ago)
Author:
kjdon
Message:

modified Dictionary, so that if a lang fragment starts with [PENDING], then don't use it. This is to allow the addition of old strings which will help the translators, but which are too out of date to display in the interface. OTher classes use of Dictionary modified so that they go through getTextString, or createDictionaryAndGetString, thereby benifitting from the pending stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/ServiceRack.java

    r33774 r36592  
    575575     * getTextString - retrieves a language specific text string for the given
    576576     * key and locale, from the specified resource_bundle (dictionary)
     577         * dictionary may be null, in which case it will use class names
    577578     */
    578579    protected String getTextString(String key, String lang, String dictionary, String[] args)
     
    584585    protected String getMetadataNameText(String key, String lang)
    585586    {
    586 
    587         String properties_name = "metadata_names";
    588         Dictionary dict = new Dictionary(properties_name, lang);
    589 
    590         String result = dict.get(key);
    591         if (result == null)
    592         { // not found
    593             return null;
    594         }
    595         return result;
     587          return Dictionary.getTextString(key, lang, null, "metadata_names", null, null, this.class_loader);
    596588    }
    597589}
Note: See TracChangeset for help on using the changeset viewer.