admin管理员组文章数量:1129123
My setup
I have a custom PHP application that uses po/mo files in a locale directory to provide translations for the website strings. All works perfectly. I have Wordpress installed in a sub-directory (/articles). My Wordpress template includes components from the app above it eg:
<?php include_once( $_SERVER['DOCUMENT_ROOT']."/shared_assets/navigation.php"); ?>
What I tried
I have installed WPML String Translation. My plan was to scan the theme, and import the po file I already have, but of course the WPML scan cannot "see" the included files from the main app above it. At this point I think I have started down entirely the wrong path.
My question
What is the best technique for translating Wordpress templates in a subfolder style installation?
本文标签: plugin wpmlHandling gettextstring translation when WP is installed in subfolder
版权声明:本文标题:plugin wpml - Handling gettextstring translation when WP is installed in subfolder 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736736024a1950257.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论