[wordpress插件] Date Translate日期翻译

wordpress 插件 文章 2020-04-13 02:40 543 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

Allows the user to insert a hook to WordPress and replace english version of the dates and translate them to their own language.

允许用户在WordPress上插入一个钩子,并替换日期的英文版本,并将其翻译成自己的语言。

It uses a modular function that takes as input 3 arguments:

它使用模块化函数,将3个参数作为输入:

    1. Days
    2. Months
    3. Months (shorthand)
    4. 月(简写)

    It then searches for the English versions and replaces them.

    然后搜索英文版本并替换它们。

安装步骤

    1. Upload date_translate.php to the /wp-content/plugins/ directory
    2. date_translate.php 上载到 / wp-content / plugins / 目录

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

    5. Array-ize the days
    6. 将天数数组化 <?php $ days =(星期日,星期一,...)?>

    7. Repeat procedure for months and shorthand (Jan, Feb, …)
    8. 重复数月和速记的程序(1月,2月,…)

    9. Finalize by hooking – of course, replace array names with your own.
    10. 通过挂接 <?php qnt_date_translate($ days,$ months,$ months_shorthand)?> 来完成–当然,用您自己的数组名替换。

    Examples at plugin GitHub page.

    GitHub插件页面上的示例。

下载地址
https://downloads.wordpress.org/plugin/date-translate.1.0.1.zip
-EOF-

AI助手支持GPT4.0