在开发Java应用程序时,我可以使用ResourceManger进行国际化(i18n)。 许多IDE(例如Intellij IDEA)支持这些文件 - 我可以在调用ResourceManager时单击id并直接获取资源文件。 我可以在资源文件中看到,在应用程序中实际使用了id,我有一个图形编辑器:
PHP有类似的东西吗? 在我正在开发的应用程序中,我们有一个自行开发的i18n工具 - 显然没有IDE支持。 我很乐意在例如PhpStorm中提供类似的IDE支持,因为IDE支持的强大之处在于爆破。 这个问题的可能解决方案是什么? 是不是可以在PhpStorm中做到这一点?
When developing a Java application I can use a ResourceManger for internationalization (i18n). Many IDEs (like for example Intellij IDEA) support these files - I can click on the id in the call to the ResourceManager and get directly to the resource file. I can see in the resource file wich ids are actually used in the application and I have a graphical editor:
Is there something similar for PHP? In the application I am developing, we have a self-developed tool for i18n - clearly there is no IDE-support for that. I'd love to have similar IDE support in for example PhpStorm, since the power of the IDE support is blasting. What are possible solutions to this problem? Is it possible to do that in PhpStorm?
最满意答案
是的PHP有Gettext支持。 对于PHPStorm来说,它可能很难。 但你仍然可以使用体面的第三方应用程序,如POEdit
Yes PHP has Gettext support. For PHPStorm its maybe difficult. but you can still use decent 3rd party apps for it such as POEdit
更多推荐
发布评论