GetClientLocale() public static méthode

public static GetClientLocale ( ) : string
Résultat string
Exemple #1
0
 public static string GetHeader(string fileName)
 {
     return("# TrinityCore - WowPacketParser" + Environment.NewLine +
            "# File name: " + Path.GetFileName(fileName) + Environment.NewLine +
            "# Detected build: " + ClientVersion.Build + Environment.NewLine +
            "# Detected locale: " + BinaryPacketReader.GetClientLocale() + Environment.NewLine +
            "# Parsing date: " + DateTime.Now.ToString(CultureInfo.InvariantCulture) + Environment.NewLine);
 }
Exemple #2
0
 public void WriteHeader(string headers)
 {
     try
     {
         var s = "# TrinityCore - WowPacketParser" + Environment.NewLine +
                 "# File name: " + Path.GetFileName(headers) + Environment.NewLine +
                 "# Detected build: " + ClientVersion.Build + Environment.NewLine +
                 "# Detected locale: " + BinaryPacketReader.GetClientLocale() + Environment.NewLine +
                 "# Targeted database: " + Settings.TargetedDatabase + Environment.NewLine +
                 "# Parsing date: " + DateTime.Now.ToString(CultureInfo.InvariantCulture) + Environment.NewLine;
         _writer.WriteStartElement("headers");
         _writer.WriteString(sanitizeString(s));
         _writer.WriteEndElement();
     }catch (Exception e)
     {
         _writer.WriteStartElement("exception");
         _writer.WriteString(e.GetType() + e.Message);
         _writer.WriteEndElement();
     }
 }