C# 和 PHP 的多语言文件管理
我有一个用 C# 和 PHP 组合编写的大型内部系统。我正打算尝试使其成为多语言版本。
根据我迄今为止的研究,完成这项工作的最佳方法似乎是在 C# 端使用 resx 文件,并在 PHP 中使用 .po/.mo 文件。这些文件之间会有很多重复,因为代码的双方都需要相同的短语。
我想知道的是,一旦确定了初始翻译,是否有任何自动化工具可以帮助我管理/生成这些数据?
具体来说,我正在寻找某种能够生成 .resx 和 .po/.mo 文件输出的翻译管理工具,以便这些文件可以轻松地保持彼此同步。
任何建议非常感谢。 感谢您抽出时间。
I have a large inhouse system written in a combination of C# and PHP. I'm about to try to make it multilingual.
Based on my research so far it looks like the best way to make this work is by using resx files on the C# side and .po/.mo files in PHP. There will be a lot of duplication between these files as the same phrases will be needed for both sides of the code.
What I am wondering is are there any automated tools in existance that can help me manage/generate this data once the initial translations have been figured out?
Specifically I am looking for some sort of translation management tool that is capable of generating both .resx and .po/.mo file outputs so that these files can easily be kept in sync with one another.
Any suggestions greatly appreciated.
Thank you for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
宾果游戏。 ResourceBlender 可以导入和导出 po 和 resx 文件。惊人的。额外加分;它是开源的。 (我与该产品无关)
Bingo. ResourceBlender can import and export to and from both po and resx files. Awesome. Extra plus; it is open source. (I'm not affiliated with this product)
我设法找到一个专门为 resx 文件提供翻译管理的插件。它由该公司 http://www.hexadigm.com/ 提供。 (我与这家公司没有任何关系)它直接插入 Visual Studio。看起来它可以解决我的一些问题。
遗憾的是它没有任何东西可以处理 po/mo 方面的事情。我想我可以使用这个工具将字符串转发给我们的翻译公司并控制 C# 方面的事情。然后构建一个单独的脚本来根据 resx 文件的内容生成 po 文件。
必须有一种更简洁的方法来做到这一点?我想我必须构建一个完全定制的解决方案。
I've managed to find a plugin to provide translation management specifically for the resx files. It is supplied by this company http://www.hexadigm.com/. (I have no affiliation with this company) It plugs directly into Visual Studio. Looks like it may solve some of my problems.
Sadly it does not have anything to handle the po/mo side of things. I'm thinking I could use this tool to forward the strings to our translation company and keep the C# side of things in check. Then build a separate script to generate the po files based on the contents of the resx files.
There has got to be a neater way of doing this? Thinking I'll have to build a completely custom solution.
尝试看看 Microsoft MAT。这还将为您提供行业标准 xlf 文件:https://marketplace.visualstudio。 com/items?itemName=MultilingualAppToolkit.MultilingualAppToolkit-18308
try to have also a look at Microsoft MAT. This will also give you industry standard xlf files: https://marketplace.visualstudio.com/items?itemName=MultilingualAppToolkit.MultilingualAppToolkit-18308