void AddData(string msgid, string msgstr, string rawComments, bool fuzzy, int sourceLineNumber) { if (String.IsNullOrEmpty(msgid)) { Console.WriteLine("Error: Found empty msgid - will skip it. Line: " + sourceLineNumber); } else { PoItem item = new PoItem(msgid, msgstr, rawComments, fuzzy); item.Metadata_OriginalSourceLine = sourceLineNumber; if (data.ContainsKey(msgid)) { Console.WriteLine(String.Format("Error: Found duplicate msgid {0} at line {1} - will overwrite the value from earlier instances.", msgid, sourceLineNumber)); } data[msgid] = item; } }