[WordPress] 外掛分享: Language Code Classification

前言介紹

  • 這款 WordPress 外掛「Language Code Classification」是 2009-03-12 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2010-01-01,距離現在已有 5609 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.7 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

philfreo | superkc9 | sillinguist |

外掛標籤

library | language | metadata | linguistics | custom field |

內容簡介

這個外掛旨在允許 WordPress 使用者將 ISO 639-3 語言代碼添加到與其文章相關的自定義欄位中,以便按照 ISO 639-3 代碼組織其文章。其中一個優點是將其 WordPress 安裝列為具有 OLAC(Open Language Archives Community)的語言資源。

已知的錯誤和/或衝突

版本 0.1.3 無

版本 0.1.2-beta 插件資料夾需要更名為 langauge_code,此問題在版本 0.1.3 中得到修正

開發計劃

0.1.4:進行中

很好的功能會讓作者使用功能取代或插入任何文本欄位,該功能自動建議語言代碼,通過呼叫函數。它應該具有類似以下順序或形式的語法:將 放置模板/小工具中。對用戶的最終結果是,他們可以從不僅僅是管理區創建元數據輸入(例如另一個外掛中的表單創建器或 WP 的前端)

需要驗證輸入格式是否正確(因此不直接將輸入寫入 DB,而寫入快取,驗證後再寫入 DB),例如,如果有人輸入“zzz”,而“zzz”不是語言代碼,會發生什麼?

動態將多個代碼添加到文章中,例如(我有一個數據文件,其中將2種語言與一個帖子相關聯,但不是每個帖子都是如此)

翻譯文件(一個 po 文件,這是一個雙重問題,不同語言的語言名稱不同,例如德語,德語,法語。這可能是 ISO 639 標準的另一部分正在開發的表,可能是639-6 參見這篇維基百科文章http://en.wikipedia.org/wiki/ISO_639-6)

為每個鍵添加顯示的掛鉤

由於 ISO 639-3 代碼都存儲在自定義欄位中,而每個自定義欄位都有兩個部分,即鍵和值,因此有必要能夠設置鍵和值(以及默認鍵)。目前,外掛僅關注於添加鍵值對的值部分。對於開發人員來說,重要的是要知道單個帖子應該能夠有多個包含語言代碼的鍵。例如,如果我有一個關於音韻學的語言學習帖子,那麼我可能希望在一個鍵中放置練習指示語言的代碼,而在另一個鍵中放置練習數據的語言代碼。

完全不同的方案是一個帖子具有一個鍵下的兩種語言。目前,外掛尚未考慮到此問題。例如,如果在帖子正文中作者同時使用兩種語言,則可能希望使用同一個鍵來表示兩種語言。

在 Weblog Tools Collection 進行宣傳
在社交網絡上進行宣傳
在自己的博客上進行宣傳

0.1.5:

在 SIL 更新他們的 tab 檔案時,自動檢測和匯入 SIL's tab 檔案:http://www.sil.org/ISO639-3/iso-639-3_20090210.tab。
更新提示用戶,讓他們知道每年都要更新插件,當 SIL 在 http://www.sil.org/iso639-3/codes.asp 上添加新的語言代碼時。

原文外掛簡介

This plugin is designed to allow a WordPress user to add an ISO 639-3 language code to in a custom field related to their post so that their posts can be organized by ISO 639-3 code. One advantage of this would be to list their WordPress install as a language resource with OLAC.
Known bugs and/or conflicts

version 0.1.3 None

version 0.1.2-beta plugin folder needs to be renamed to langauge_code this is corrected in version 0.1.3

Development Plan
0.1.4: IN PROGRESS

It would be nice to add the functionality to the plugin to allow an author to replace or insert any text field with the one auto suggesting language codes, by calling a function. It should probably have syntax or form after the order of: place in the templates/widget/. The end result for the user would be that they could create a meta-data input from more than just the admin area (i.e. a from in another plugin, like a form creator, or the front end of WP.)

Need to Validate input against table (instead of writing straight to the DB, write to cache, validate and then to DB) e.g. what if someone types in ‘zzz’ and ‘zzz’ is not a language code?

Add multiple codes to a post dynamically e.g. (I have a data file with 2 languages connected to one post, but not every post.)

Translation file (A .po file This is a two fold issue Language names are different in different languages i.e. Deutsch, German, Allemand. This might be a table being developed by another part of the ISO 639 standard. Possibly, 639-6 See this wikipedia article http://en.wikipedia.org/wiki/ISO_639-6)

Add hook for disply in theme per key

Because each of the ISO 639-3 codes are stored in a custom field, and each custom field has two parts, a key and a value, It is necessary to be able to set the key as well as the value (and the default key). The Plug-in in its current state has only focused on adding the value part of the key-value pair. It is important for developers to know that a single post should be able to have more than one key with language codes in them. For example, if I have a post which is a linguistics exercise in phonology, then I might want to put the language of the instructions of the exercise in one key and the language code of the exercise data in another key.
An entirely different scenario is one where a post has two languages under one key. This is currently unaccounted for with the current state of the plug-in. E.g. If in the body of a post an author were to use two languages equally then they might want to use the same key to represent both languages.

Promote at Weblog Tools Collection
Promote Using Social Networking
Promote On Your Own Blog

The download location.
A list of features.
Contact or support information (or comments enabled)

0.1.5:

Auto detect and import of SIL’s tab file when SIL updates their tab file at: http://www.sil.org/ISO639-3/iso-639-3_20090210.tab.

Update notice to the user so that they know to update their plug-in every year when SIL updates their ISO changes. Or decide to follow a regular release cycle (at least annually) and maintenance with this plugin.

pursue use of ISO 639-3 in conjunction with the doublin core metadata standard

Doublin Core metadata plugin

http://www.brainonfire.net/blog/add-dublin-core-metadata-to-wordpress/
http://www.brainonfire.net/resources/files/dublin-core-for-wordpress/
http://dublincore.org/documents/dcmi-terms/
http://dublincore.org/documents/dcmi-terms/#ses-ISO639-3

2.0 :

Consider development beyond ISO 639-3 to ISO 639.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Language Code Classification」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon