| | |
| | | int i = 0; |
| | | foreach (Text item in transArr14) |
| | | { |
| | | |
| | | TextEx tmpTextEx = item as TextEx; |
| | | RichText tmpRichText = item as RichText; |
| | | bool isNeedTrans = true; |
| | | if ((tmpTextEx != null && tmpTextEx.isKey) || (tmpRichText != null && tmpRichText.language))
|
| | | { |
| | | isNeedTrans = false; |
| | | } |
| | | // /Debug.LogFormat("{0}包含文字 {1}-{2}", file, item.name, item.text); |
| | | string temp = item.text.Replace("\r\n","").Replace("\r","").Replace("\n",""); |
| | | string writeline = string.Format("{0}\t{1}\t{2}\t{3}\r\n", file, i, item.name, temp); |
| | | string writeline = string.Format("{0}\t{1}\t{2}\t{3}\t{4}\r\n", file, i, item.name, temp, isNeedTrans); |
| | | byte[] data = System.Text.Encoding.UTF8.GetBytes(writeline); |
| | | fs.Write(data, 0, data.Length); |
| | | i++; |
| | |
| | | var lineStr = lines[startIndex]; |
| | | string[] info = lines[startIndex].Split('\t'); |
| | | startIndex++; |
| | | if (info.Length != 4) |
| | | if (info.Length != 5) |
| | | { |
| | | Debug.LogFormat("异常:长度不对--执行到:第{0}行 {1}", startIndex, lineStr); |
| | | return; |