[wordpress插件] DeutschDate德国日期

wordpress 插件 文章 2020-04-16 01:10 410 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Note: This plugin was intended as a quick fix for displaying various english dates in german.

注意:该插件旨在作为一种快速修复程序,用于以德语显示各种英语日期。

It unfortunately does not fully cover all date displays.

不幸的是,它不能完全覆盖所有日期显示。

Using an english WordPress install and publishing posts in german?

使用德语的英文WordPress安装和发布帖子?

Those pesky English dates produced by

<?php the_time();产生的那些讨厌的英语日期;

?> were getting on my nerves too, hence this plugin.

?> 也让我很紧张,因此这个插件。

Automagically converts english months and days (except for the initials, so far) to their german equivalent.

自动将英语月份和日期(到目前为止,除了首字母缩写之外)转换为德语版本。

Intended usage:

预期用途:

Replacing dates like ‘Thursday, October 22nd’, for instance in your custom built theme or themes that just use the date without ‘posted by..’.

例如,在您自定义的主题或仅使用日期而不是“发布者..”的主题中替换“ 10月22日,星期四”之类的日期。

Please note: It doesn’t completely ‘deutschify’ your theme’s date representation.

请注意:这不能完全“分解”主题的日期表示形式。

Example: Where some themes would say ‘Posted by Annemarie on Thursday, October 22nd’ only the date part is translated, resulting in ‘Posted by Annemarie on Donnerstag, Oktober 22.’.

示例:在某些主题上写着“ Annemarie由10月22日星期四发布”时,只有日期部分被翻译,结果是“ Annemarie由10月22日在Donnerstag发表”。

For complete deutschification one would either, depending on your specific situation:

对于完全的去随机化,取决于您的具体情况之一:

    • Edit Date Format settings under the Settings > General tab in your WordPress admin area.
    • 在WordPress管理区域的“设置”>“常规”标签下,编辑日期格式设置。

    • Edit your theme’s template files, adapting the

    • 使用 <?php the_time();修改主题的模板文件。

      ?> template tag appropriately.

      ?> 模板标签。

      For a howto on editing the time template tag, check the Template Tags/the time Codex page.<

      有关如何编辑时间模板标签的方法,请查看模板标签/时间Codex页面

      /li>

      / li>

    • Or, as an alternative to this plugin, use a german .po language file.
    • 或者,作为此插件的替代,使用德语.po语言文件。

    Dutchify in stead of Deutschify?

    代替Deutschify进行荷兰化吗?

    For the Dutch version of this plugin, visit the Dutchdate Plugin Page

    有关此插件的荷兰语版本,请访问 Dutchdate插件页面

安装步骤

    1. Copy the mp_deutschdate.php file to your WordPress plugin directory.
    2. 将mp_deutschdate.php文件复制到您的WordPress插件目录中。

    3. Activate the plugin via the ‘Plugins’ menu in your WordPress admin.
    4. 通过WordPress管理员中的“插件”菜单激活插件。

    5. Und los geht’s.
    6. Un los geht's。

下载地址
https://downloads.wordpress.org/plugin/deutschdate.zip
-EOF-

AI助手支持GPT4.0