[wordpress插件] Custom Translation Files定制翻译文件

wordpress 插件 文章 2020-04-10 04:20 595 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Custom Translations

自定义翻译

Let’s say, you have translated a plugin or theme and have a mo file ready.

比方说,您已经翻译了插件或主题并准备了mo文件。

But the plugin author does not respond to your submission offer or you cannot contact the author for whatever reasons.

但是,插件作者没有对您的提交报价做出回应,或者您出于任何原因都无法与该作者联系。

In this case, you may be able to upload the file in the location that the plugin uses within the plugin’s directory but this is not ideal because when it is updated, your translation file will be gone.

在这种情况下,您可以将文件上传到插件在插件目录内使用的位置,但这并不理想,因为更新后,翻译文件将消失。

You have to repeat doing it.

你必须重复一遍。

This plugin solves this problem by allowing you to upload the mo file and lets WordPress use it.

此插件通过允许您上传mo文件并允许WordPress使用它来解决此问题。

What you need are:

您需要的是:

    • mo file (the translation file with a text domain prefix)
    • mo文件(带有文本域前缀的翻译文件)

    • text domain (usually the plugin/theme slug)
    • 文本域(通常是插件/主题标签)

    Set these in the setting page and the plugin will take care of the rest.

    在设置页面中进行设置,其余的将由插件处理。

    It’s simple and lightweight.

    简单轻巧。

安装步骤

    1. Upload custom-translation-files.php and other files compressed in the zip folder to the /wp-content/plugins/

    2. custom-translation-files.php 和其他在zip文件夹中压缩的文件上传到 / wp-content / plugins /

      code> directory.

    3. 代码> 目录。

    4. Activate the plugin through the ‘Plugins’ menu in WordPress.
    5. 通过WordPress中的“插件”菜单激活插件。

    6. Go to Dashboard -> Settings -> Custom Translation Files.
    7. 转到仪表板-> 设置-> 自定义翻译文件

    8. Add your items there.
    9. 在此处添加您的物品。

下载地址
https://downloads.wordpress.org/plugin/custom-translation-files.1.0.0.zip
-EOF-

AI助手支持GPT4.0