コード例 #1
0
ファイル: PoResourceReader.cs プロジェクト: Treer/resgenEx
        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;
            }
        }
コード例 #2
0
ファイル: PoResourceReader.cs プロジェクト: austhomp/resgenEx
        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;
            }
        }