如何从Symfony2/Silex项目生成翻译文件(.po,.xliff,.yml等)? [英] How to generate translation file (.po, .xliff, .yml,...) from a Symfony2/Silex project?
问题描述
我要构建一个Silex/Symfony2项目,并且我一直在寻找一种方法,用于根据项目内要翻译的文本生成XLIFF/PO/YAML翻译文件,但未找到任何说明或文档.它.
Im going to build a Silex/Symfony2 project and I have been looking around for a method to generate XLIFF/PO/YAML translation files based on texts-to-be-translated inside the project but not found any instruction or documentation on it.
我的问题是:是否有一种自动方法来为Symfony2/Silex项目生成特定格式的翻译文件?
如果是,请告诉我如何生成文件,然后再更新翻译.
If yes, please tell me how to generate the file then update the translation after that.
如果否,请告诉我如何创建翻译文件,然后为我的项目添加更多文本?我正在寻找一个基于桌面或基于Web的编辑器,而不是使用Transifex,GetLocalization等普通编辑器(但他们没有选择创建新文件或添加更多文本的选择)
If no, please tell me how to create translation file(s) then adding up more text for my project? I am looking for an editor desktop based or web-based instead of using normal editor such as Transifex, GetLocalization (but they dont have option to create a new file or add more text)
推荐答案
长时间搜索互联网后,我发现了一个不错的选择:
After a long time searching the internet, I found a good one:
https://github.com/schmittjoh/JMSTranslationBundle
这篇关于如何从Symfony2/Silex项目生成翻译文件(.po,.xliff,.yml等)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!