System.Globalization.Message.Encode C# (CSharp) Method

Encode() private method

Encodes a string line of text suitable for msgstr
private Encode ( string text ) : string
text string
return string
        private string Encode(string text)
        {
            return (text ?? string.Empty).Replace("\"", "\\\\").Replace("\n", "\\n\"\n\"");
        }