[WordPress] 外掛分享: JKL Unit Converter

首頁外掛目錄 › JKL Unit Converter
WordPress 外掛 JKL Unit Converter 的封面圖片
90+
安裝啟用
尚無評分
3621 天前
最後更新
問題解決
WordPress 3.5+ v1.0.0 上架:2016-04-19

內容簡介

我是一個居住在南韓的美國外籍人士,因此我經常需要在不同的單位之間進行轉換。我的家人在 Skype 上與我交談時使用華氏溫度計;在線食譜需要使用8盎司一些東西,而我總是想知道韓國房屋尺寸和房屋格局面積(坪)實際上是平方米或平方英尺。

現在,我已經創建了一款插件,可以處理所有這些種類的轉換。它目前包括14種不同的轉換公式(如長度、重量、溫度、速度等),但還計劃增加約20種!

此插件的靈感來自 Google 的單位轉換器,並包括他們網站上列出的大部分單位(包括我發現的一些額外可笑的單位和一些韓國特定的度量衡單位)

需要 WordPress 3.5 和 PHP 5.4 或更高版本。

特點

提供不同級別的轉換列表(基本-6種類型,默認-14種類型)
提供每個列表中最常見的單位的默認清單,但也提供一個復選框,以啟用所有單位類型(包括一些來自古代歷史和幻想的晦澀單位)
通過JavaScript動態控制列表值,因此只要更改列表類型,測量單位就會立即切換(無需刷新頁面)

註釋

同時允許多個小部件(在同一個帖子/頁面上)
禁用多個短代碼(在同一個帖子/頁面上) - 多個短代碼僅會顯示一個表單
在帶有短碼的帖子/頁面上,widget將被禁用

計劃中的新功能

AJAX表單提交以防止頁面重新加載
高級轉換公式列表-32種類型
支持更多轉換單位
可能允許用戶選擇是否在短代碼和/或小部件中顯示多個表單

翻譯

英文(EN) - 默認
韓文(KO)-即將推出

如果您想幫助翻譯插件成您的語言,請查看包含所有定義的.pot文件,並可以使用[gettext]編輯器。

如果您已創建自己的語言包,或者更新現有的語言包,您可以將自己的[gettext .po或.mo文件]發送給我,以便我將其打包在插件中。

聯繫我

如果您對此插件有問題,問題或改進建議,請在WordPress.org支持論壇上告訴我

想了解我的其他WordPress插件,主題或教程的更新?關注我@jekkilekki

支持

點擊此處訪問此插件的論壇

致謝

此插件使用:

與Google網站上列出的相似的單位列表

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「JKL Unit Converter」→ 直接安裝(推薦)

原文外掛簡介

I’m an American expat in South Korea so I find I’m constantly wanting to convert
between various units of measurement for different things. My family talks to me
over Skype in Fahrenheit; recipes online call for 8 ounces of something; and I always
wondered what various Korean house sizes and floor plans (pyoung) actually were in
square meters or square feet.
Well now, I’ve created just the plugin to take care of all of those kinds of
conversions. It currently includes functions for 14 different conversion formulas
(like length, weight, temperature, speed, etc), but there are plans for about 20
more! (For a full list of conversion formulas and units, see the plugin NOTES
section below.)
This plugin was inspired by Google’s Unit Converter and includes the majority of
the units listed on their website
(including some extra silly ones I’ve found and a handful of Korea specific units
of measurement).
Requires WordPress 3.5 and PHP 5.4 or later.
Special Features

Provides varying levels of complexity for conversion lists (Basic – 6 types,
Default – 14 types)
Provides a default list of the most common units for each list, but also a checkbox
to enable ALL unit types (including some obscure ones from ancient history and fiction)
Lists values are dynamically controlled with JavaScript so that as soon as you
change list types, the units of measurement are immediately switched (without page
refresh)

Notes

Multiple widgets are allowed at once (on the same Post/Page)
Multiple shortcodes (on the same Post/Page) are disabled – multiple shortcodes
will display only ONE form
On Posts/Pages with a shortcode, the widget will be disabled

Planned Upcoming Features

AJAX form submission to prevent page reload
An Advanced List of conversion formulas – 32 types
More conversion units supported
Possibly allow users to select whether or not to display multiple forms in shortcodes
and/or widgets

Translations

English (EN) – default
Korean (KO) – upcoming

If you want to help translate the plugin into your language, please have a look
at the .pot file which contains all definitions and may be used with a [gettext]
editor.
If you have created your own language pack, or have an update of an existing one,
you can send your [gettext .po or .mo file] to me so that I can bundle it in the
plugin.
Contact Me
If you have questions about, problems with, or suggestions for improving this
plugin, please let me know at the WordPress.org support forums
Want updates about my other WordPress plugins, themes, or tutorials? Follow me
@jekkilekki
Support
Click here to visit the forum for this plugin
Acknowledgements
This plugin uses:

A similar list of units as those on the Google website

License
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this
program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
Floor, Boston, MA 02110-1301 USA

延伸相關外掛

文章
Filter
Apply Filters
Mastodon