home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / browser / net_linx / java40.jar / netscape / softupdate / Strings.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  4.2 KB  |  193 lines

  1. package netscape.softupdate;
  2.  
  3. import java.util.ResourceBundle;
  4.  
  5. class Strings {
  6.    private static ResourceBundle gbundle;
  7.  
  8.    public static ResourceBundle bundle() {
  9.       if (gbundle == null) {
  10.          try {
  11.             gbundle = ResourceBundle.getBundle("netscape.softupdate.SoftUpdateResourceBundle");
  12.          } catch (Throwable var1) {
  13.             System.err.println("Could not get localized\tresources:");
  14.             var1.printStackTrace();
  15.             System.err.println("Using English Language Default.");
  16.             gbundle = new SoftUpdateResourceBundle();
  17.          }
  18.       }
  19.  
  20.       return gbundle;
  21.    }
  22.  
  23.    public static String getString(String var0) {
  24.       try {
  25.          return bundle().getString(var0);
  26.       } catch (Throwable var2) {
  27.          System.err.println("Could not get resource " + var0 + ":");
  28.          var2.printStackTrace();
  29.          return var0 + "(!)";
  30.       }
  31.    }
  32.  
  33.    static String targetRiskLow() {
  34.       return getString("s1");
  35.    }
  36.  
  37.    static String targetRiskColorLow() {
  38.       return "#aaffaa";
  39.    }
  40.  
  41.    static String targetRiskMedium() {
  42.       return getString("s2");
  43.    }
  44.  
  45.    static String targetRiskColorMedium() {
  46.       return "#ffffaa";
  47.    }
  48.  
  49.    static String targetRiskHigh() {
  50.       return getString("s3");
  51.    }
  52.  
  53.    static String targetRiskColorHigh() {
  54.       return "#ffaaaa";
  55.    }
  56.  
  57.    static String targetDesc_LimitedInstall() {
  58.       return getString("s4");
  59.    }
  60.  
  61.    static String targetUrl_LimitedInstall() {
  62.       return "http://iapp16.mcom.com/java/signing/Games.html";
  63.    }
  64.  
  65.    static String targetDesc_FullInstall() {
  66.       return getString("s5");
  67.    }
  68.  
  69.    static String targetUrl_FullInstall() {
  70.       return "http://iapp16.mcom.com/java/signing/FileRead.html";
  71.    }
  72.  
  73.    static String targetDesc_SilentInstall() {
  74.       return getString("s6");
  75.    }
  76.  
  77.    static String targetUrl_SilentInstall() {
  78.       return "http://iapp16.mcom.com/java/signing/FileWrite.html";
  79.    }
  80.  
  81.    static String targetDesc_WinIni() {
  82.       return getString("s7");
  83.    }
  84.  
  85.    static String targetUrl_WinIni() {
  86.       return "http://iapp16.mcom.com/java/signing/FileWrite.html";
  87.    }
  88.  
  89.    static String targetDesc_WinReg() {
  90.       return getString("s8");
  91.    }
  92.  
  93.    static String targetUrl_WinReg() {
  94.       return "http://iapp16.mcom.com/java/signing/FileWrite.html";
  95.    }
  96.  
  97.    static String progress_Title() {
  98.       return getString("s9");
  99.    }
  100.  
  101.    static String progress_GettingReady() {
  102.       return getString("s10");
  103.    }
  104.  
  105.    static String progress_ReadyToInstall1() {
  106.       return getString("s11");
  107.    }
  108.  
  109.    static String progress_ReadyToInstall2() {
  110.       return getString("s12");
  111.    }
  112.  
  113.    static String details_Explain(String var0) {
  114.       return getString("s13") + var0 + getString("s14");
  115.    }
  116.  
  117.    static String details_WinTitle() {
  118.       return getString("s15");
  119.    }
  120.  
  121.    static String details_ExecuteProgress() {
  122.       return getString("s16");
  123.    }
  124.  
  125.    static String error_Prefix() {
  126.       return getString("s17");
  127.    }
  128.  
  129.    static String error_NoCertificate() {
  130.       return error_Prefix() + getString("s18");
  131.    }
  132.  
  133.    static String error_TooManyCertificates() {
  134.       return error_Prefix() + getString("s19");
  135.    }
  136.  
  137.    static String error_SilentModeDenied() {
  138.       return error_Prefix() + getString("s20");
  139.    }
  140.  
  141.    static String error_WinProfileMustCallStart() {
  142.       return error_Prefix() + getString("s21");
  143.    }
  144.  
  145.    static String error_MismatchedCertificate() {
  146.       return error_Prefix() + getString("s22");
  147.    }
  148.  
  149.    static String error_BadPackageName() {
  150.       return error_Prefix() + getString("s23");
  151.    }
  152.  
  153.    static String error_Unexpected() {
  154.       return error_Prefix() + getString("s24");
  155.    }
  156.  
  157.    static String error_BadPackageNameAS() {
  158.       return error_Prefix() + getString("s25");
  159.    }
  160.  
  161.    static String error_IllegalPath() {
  162.       return error_Prefix() + getString("s26");
  163.    }
  164.  
  165.    static String error_InstallFileUnexpected() {
  166.       return error_Prefix() + getString("s27");
  167.    }
  168.  
  169.    static String error_BadJSArgument() {
  170.       return error_Prefix() + getString("s28");
  171.    }
  172.  
  173.    static String error_SmartUpdateDisabled() {
  174.       return error_Prefix() + getString("s29");
  175.    }
  176.  
  177.    static String error_NoInstallerFile() {
  178.       return "";
  179.    }
  180.  
  181.    static String error_VerificationFailed() {
  182.       return error_Prefix() + getString("s30");
  183.    }
  184.  
  185.    static String error_MissingInstaller() {
  186.       return error_Prefix() + getString("s31");
  187.    }
  188.  
  189.    static String error_ExtractFailed() {
  190.       return error_Prefix() + getString("s32");
  191.    }
  192. }
  193.