internal static string Localize(string key, string context, CultureInfo culture)
 {
     try
     {
         string str = new ResourceManager("Microsoft.JScript", typeof(JScriptException).Module.Assembly).GetString(key, culture);
         if (str == null)
         {
             return key;
         }
         int index = str.IndexOf(ContextStringDelimiter);
         if (index == -1)
         {
             return str;
         }
         if (context == null)
         {
             return str.Substring(0, index);
         }
         return string.Format(culture, str.Substring(index + 2), new object[] { context });
     }
     catch (MissingManifestResourceException)
     {
     }
     return key;
 }