Title: Unit Converter
Author: miknight
Published: <strong>2009 年 3 月 19 日</strong>
Last modified: 2019 年 11 月 5 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/unit-converter.svg)

# Unit Converter

 作者：[miknight](https://profiles.wordpress.org/miknight/)

[下载](https://downloads.wordpress.org/plugin/unit-converter.0.5.3.zip)

 * [详情](https://cn.wordpress.org/plugins/unit-converter/#description)
 * [评价](https://cn.wordpress.org/plugins/unit-converter/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/unit-converter/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/unit-converter/#developers)

 [支持](https://wordpress.org/support/plugin/unit-converter/)

## 描述

This plugin detects units of measurement (e.g. “10 lbs”) and will add the metric
or non-metric equivalent (e.g. “4.5 kilograms”). The converted measurement can be
added in several ways:

 * as a mouse-over, or
 * in brackets after the original measurement, e.g. “10 lbs (4.5 kilograms)”.

It is useful if you use lots of measurements and are writing for an international
audience.

#### Currently Supported Conversions

 * Celsius Fahrenheit
 * Centimetres inches
 * Grams ounces
 * Kilograms pounds
 * Kilometres miles
 * Kilojoules (food) calories
 * Litres gallons
 * Metres feet
 * Millilitres fluid ounces

Note that these non-metric units are in [US customary units](http://en.wikipedia.org/wiki/United_States_customary_units).

### Bugs

 * Converted measurements will always be written in their canonical/long name, e.
   g. ‘kilograms’ instead of ‘kg’.
 * Cannot handle quoted aliases (e.g. 5′ or 9″) or composite measurements, e.g. 
   5’9″.

To report any bugs please do so from the [plugin homepage](http://miknight.com/projects/unit-converter/).

### Plans

 * An options page to configure various aspects of the plugin.
 * Auto-detection for which measurement abbreviation to use for the converted unit(
   lbs -> kg, pounds -> kilograms).
 * An option to use Imperial measurements as distinct from US customary units.

## 安装

 1. Upload the `unit-converter/` directory to the `/wp-content/plugins/` directory,
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

  The mouseover method is the default. How do I use the parentheses?

As there is no options page (yet), you will need to edit the `/wp-content/plugins/
unit-converter.php` file around line 31 and change:

    ```
    $display_mode = 'mouseover';
    ```

to

    ```
    $display_mode = 'parentheses';
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Unit Converter」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ miknight ](https://profiles.wordpress.org/miknight/)

[帮助将「Unit Converter」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/unit-converter)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/unit-converter/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/unit-converter/)，或通过[RSS](https://plugins.trac.wordpress.org/log/unit-converter/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/unit-converter/)。

## 更新日志

#### 0.5.3 – 2014-05-23

 * Bump version properly so WordPress picks it up.
 * Tested up to WordPress 4.2.2.

#### 0.5.2 – 2014-05-02

 * Fixed compatibility with PHP 5.4+.
 * Tested up to WordPress 4.2.1.

#### 0.5.1 – 2009-12-19

 * Tested up to WordPress 2.9.

#### 0.5 – 2009-07-26

 * Added Celsius Fahrenheit converter.
 * Tested up to WordPress 2.8.2.

#### 0.4 – 2009-06-12

 * Added millilitre fluid ounce converter.
 * Tested up to WordPress 2.8.

#### 0.3 – 2009-03-24

 * Fixed the kilojoule calorie converter (was using calories instead of food calories).
 * Added grams ounces converter.
 * Increased the precision of all conversions.

#### 0.2 – 2009-03-22

 * Added kilojoule calorie converter.
 * Now require the match text to be case sensitive (e.g. 2L or 5kg only, not 2l 
   or 5KG).

#### 0.1 – 2009-03-19

 * Initial version.

## 额外信息

 *  版本 **0.5.3**
 *  最后更新：**7 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/unit-converter/)
 * 标签
 * [metric](https://cn.wordpress.org/plugins/tags/metric/)[standard](https://cn.wordpress.org/plugins/tags/standard/)
   [unit](https://cn.wordpress.org/plugins/tags/unit/)
 *  [高级视图](https://cn.wordpress.org/plugins/unit-converter/advanced/)

## 评级

 1 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/unit-converter/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/unit-converter/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/unit-converter/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/unit-converter/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/unit-converter/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/unit-converter/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/unit-converter/reviews/)

## 贡献者

 *   [ miknight ](https://profiles.wordpress.org/miknight/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/unit-converter/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4076962)