简体   繁体   English

多语言 wordpress 外部 wp-content

[英]multilingual wordpress outside wp-content

So, i just create a folder outside wp-content and i script pages with php language on my custom folder.所以,我只是在 wp-content 之外创建一个文件夹,并在我的自定义文件夹上使用 php 语言编写页面。 And i want to translate all my pages that i have made when i upload to wordpress.我想翻译我上传到 wordpress 时所做的所有页面。 The directory just like this:目录就像这样:

wordpress folder wordpress文件夹

  • wp_admin wp_admin
  • wp_content wp_content
  • wp_include wp_include
  • my_custom_folder_with_php_pages_inside my_custom_folder_with_php_pages_inside

can i use plugin to translate the php file inside my custom folder?我可以使用插件翻译自定义文件夹中的 php 文件吗? any advice for me?对我有什么建议吗?

thanks in advance anyone:)提前感谢任何人:)

Short answer: no.简短的回答:没有。

WordPress is completely unaware of your PHP scripts since none of its PHP code is including them. WordPress 完全不知道您的 PHP 脚本,因为它的 PHP 代码都不包含它们。

If you want to use WPML to translate "pages", you need to first create them from within WordPress, eg from the administration dashboard:如果您想使用 WPML 翻译“页面”,您需要首先从 WordPress 中创建它们,例如从管理仪表板:

https://wordpress.org/support/article/pages/ https://wordpress.org/support/article/pages/

You can then use WPML translation flow to translate these pages:然后,您可以使用 WPML 翻译流程来翻译这些页面:

https://wpml.org/documentation/getting-started-guide/ https://wpml.org/documentation/getting-started-guide/

I'm not sure what you mean by "i want to translate all my pages that i have made when i upload to wordpress" , perhaps I'm not understanding completely your process.我不确定您所说的“我想翻译我上传到 wordpress 时制作的所有页面”是什么意思,也许我不完全理解您的过程。 You may want to edit your question to clarify this part.您可能需要编辑您的问题以澄清这部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM