|
Post by account_disabled on Dec 13, 2023 6:59:26 GMT
Loco Translate 将需要尝试从源代码中提取字符串,这在某些情况下可能不起作用(这很大程度上取决于开发人员如何编码以及他们是否遵循最佳实践)。 您可以创建自己的翻译模板来解决该问题。但是,您需要具备开发知识才能做到这一点,因此这不适用于临时用户。您最好的选择是联系扩展程序背后的开发人员,向他们寻求帮助。 Loco Translate 翻译文件不断消失 如果您遇到 Loco Translate 翻译文件消失的问题,最常见的问题是 WordPress 自动更新和您保存翻译文件的位置。 如果您将翻译文件保存在要翻译的内容的插件或主题文件夹中,则每当您更新相关主题或插件时,这些翻译文件通常都会被覆盖。 当 WordPress 更新站点上安装的语言时,核心翻译也会发生这 WhatsApp 号码数据 种情况。 如果您为主题和插件启用了自动更新,即使您无需手动更新扩展,这种情况也可能会自动发生。 要解决此问题,您应该确保将翻译文件保存在 Loco Translate 提供的“安全”目录中。它位于以下文件夹中您可以在创建/移动文件时通过选择“自定义”选项来选择此选项。 如何选择自定义文件位置以避免 Loco Translate 无法工作的问题 通过将翻译文件保存在此文件夹中,您可以确信它们在 WordPress 更新期间不会被覆盖。 对于核心翻译文件,您还可以通过将以下过滤器添加到站点的 件来禁用自动翻译文件更新 保存 Loco Translate 时出现 400 级 HTTP 错误 如果您在尝试保存 Loco Translate 时遇到 400 级 HTTP 错误,最常见的问题是服务器配置存在问题。 这里常见的错误代码包括以下内容: 404 未找到 403 禁忌 410 走了 这些问题可能比较棘手,因为它涉及服务器的配置方式。 因此,您可能需要一些技术知识来调试这些问题。 以下是一些需要考虑的领域的提示: 检查 Gzip 压缩配置– 某些服务器压缩模块(例如 mod_deflate)可能会导致问题。您可以尝试在向 发出请求时禁用 Gzip 压缩。 尝试禁用 PHP 的设置。 尝试暂时禁用站点的防火墙- 您可能会因为 等服务器模块而遇到问题。不过,您不应该让防火墙永久禁用,因此如果这导致了问题,您将需要找到更长期的解决方案。
|
|