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/input/DirectoryInput.java

    r15210 r17514  
    3434    extends OSSpecific {
    3535
    36     private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack");
    37 
    38 
    3936    private boolean abort = false;
    4037    private String create;
     
    5451        if( "".equals(selectedName) ){
    5552            if( InputField.isTrue(create) || InputField.isTrue(checkExists) ){
    56                 mr.printMessage(res.getString("dirNotExist"));
     53                mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("dirNotExist"));
    5754                return false;
    5855            }
     
    6562            if(!file.exists()){
    6663                try {
    67                     if(mr.prompt(res.getString("dirNotExistCreate") + "\n" + file.getAbsolutePath())){
     64                    if(mr.prompt(org.tp23.antinstaller.Installer.langPack.getString("dirNotExistCreate") + "\n" + file.getAbsolutePath())){
    6865                        boolean ok = file.mkdirs();
    6966                        if(!ok){
    70                             mr.printMessage(res.getString("dirNotCreated"));
     67                            mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("dirNotCreated"));
    7168                        }
    7269                    }
    7370                }
    7471                catch (Exception ex) {
    75                     mr.printMessage(res.getString("canNotCreateFile") + "\n" + file.getAbsolutePath());
     72                    mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("canNotCreateFile") + "\n" + file.getAbsolutePath());
    7673                    //FIXME should not throw here, should do something better so users on linux can chmod where necessary
    7774                    // then try again
    78                     throw new ValidationException(res.getString("canNotCreateFile"),ex);
     75                    throw new ValidationException(org.tp23.antinstaller.Installer.langPack.getString("canNotCreateFile"),ex);
    7976                   
    8077                }
     
    8683//          }
    8784            if(!file.exists() || !file.isDirectory()){
    88                 mr.printMessage(res.getString("dirNotExist") + "\n" + file.getAbsolutePath());
     85                mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("dirNotExist") + "\n" + file.getAbsolutePath());
    8986                return false;
    9087            }
Note: See TracChangeset for help on using the changeset viewer.