Ignore:
Timestamp:
2008-10-10T09:05:07+13:00 (16 years ago)
Author:
oranfry
Message:

changes to the way ant-installer loads and reloads the language packs, and a new attribute to the select input which triggers it to change the language to the input value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/PropertyLoaderFilter.java

    r15210 r17514  
    4040import org.tp23.antinstaller.runtime.VersionHelper;
    4141import org.tp23.antinstaller.runtime.exe.ExecuteRunnerFilter.AbortException;
    42 
    4342
    4443/**
     
    6059public class PropertyLoaderFilter implements ExecuteFilter {
    6160   
    62     private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack");
    63    
    6461    public static final String LOAD = "true";
    6562    public static final String PROMPT = "prompt";
     
    128125
    129126        if( foundProps && PROMPT.equals(loadDefaults) ) {
    130             load = ctx.getMessageRenderer().prompt(res.getString("promptLoadDefaults"));
     127            load = ctx.getMessageRenderer().prompt(org.tp23.antinstaller.Installer.langPack.getString("promptLoadDefaults"));
    131128        }
    132129        else if( foundProps && PROMPT_AUTO.equals(loadDefaults)) {
    133             load = ctx.getMessageRenderer().prompt(res.getString("promptLoadDefaults"));
     130            load = ctx.getMessageRenderer().prompt(org.tp23.antinstaller.Installer.langPack.getString("promptLoadDefaults"));
    134131        }
    135132        else if( foundProps && LOAD.equals(loadDefaults) ) {
     
    159156                    // let major versions pass but prompt for differences
    160157                    if( (! ctx.isAutoBuild()) && helper.majorVersionCompatible(configVersion , propertiesVersion) ){
    161                         if( ! ctx.getMessageRenderer().prompt(res.getString("propertiesVersionMismatch")) ){
     158                        if( ! ctx.getMessageRenderer().prompt(org.tp23.antinstaller.Installer.langPack.getString("propertiesVersionMismatch")) ){
    162159                            throw new AbortException("Install Aborted: existing configuration is not compatible, config version: " + configVersion);
    163160                        }
     
    224221                    if(field instanceof PasswordTextInput) {
    225222                        if(value == null ){
    226                             ctx.getMessageRenderer().printMessage(res.getString("promptMissingDefaultPassword"));
     223                            ctx.getMessageRenderer().printMessage(org.tp23.antinstaller.Installer.langPack.getString("promptMissingDefaultPassword"));
    227224
    228225                        }
Note: See TracChangeset for help on using the changeset viewer.