本帖最后由 ldc 于 2017-9-20 19:51 编辑
文本翻译已完成,导出的文件为xliff,如何根据该文件批量替换原始xml?现有一批内含<source><target>一一对应的xliff格式翻译文本,如何按照以下类似的对应关系对游戏原始文件夹下的xml文件进行批量文本替换?
翻译文件形如- Advanced Defence
- 高级防御
- Advanced Defence
- 高级防御
- We need to build more powerful base defenses to take down the bigger threats!
- 我们需要建立更强大的基地防御系统来面对更大的威胁!
- Advanced Logistics
- 高级物流
- Advanced Logistics
- 高级物流
复制代码 待处理文件形如- <Chapter>
- <Handle>Advanced Defence</Handle>
- <Title>Advanced Defence</Title>
- <Icon>>Missile Turret MK1</Icon>
- <Pages>
- <Page>
- <Paragraphs>
- <Title>
- <Text>Advanced Defence</Text>
- </Title>
- <Icon>
- <Name>Missile Turret MK1</Name>
- <Alignment>Center</Alignment>
- </Icon>
- <Paragraph>
- <Text>We need to build more powerful base defenses to take down the bigger threats!</Text>
- </Paragraph>
- </Paragraphs>
- </Page>
- </Pages>
- </Chapter>
复制代码
|