Title: Language Code Classification
Author: sillinguist
Published: <strong>mars 13, 2009</strong>
Last modified: januar 1, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Language Code Classification

 By [sillinguist](https://profiles.wordpress.org/sillinguist/)

[Download](https://downloads.wordpress.org/plugin/language-code.zip)

 * [Details](https://fao.wordpress.org/plugins/language-code/#description)
 * [Reviews](https://fao.wordpress.org/plugins/language-code/#reviews)
 *  [Installation](https://fao.wordpress.org/plugins/language-code/#installation)
 * [Development](https://fao.wordpress.org/plugins/language-code/#developers)

 [Support](https://wordpress.org/support/plugin/language-code/)

## Description

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](http://www.language-archives.org/).

### 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 `<?php do_action('plugin_name_hook'); ?>` 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](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](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.

## Screenshots

 * [[
 * `screenshot-1.jpg` This is the input field in the admin area.
 * [[
 * `screenshot-2.jpg` You can search for a language code or a language name.
 * [[
 * `screenshot-3.jpg` Or part of the name of the language for example **ench** returns“
   French”.

## Installation

 1. Upload the entire folder language_code to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Start adding language codes to your post by typing a three letter ISO 639-3 code
    or the language name. (See screenshots 2 & 3)
 4. Edit your Theme to display custome field data.

## FAQ

  What is ISO 639-3?

ISO 639-3 codes are codes for the representation of names of languages. ISO 639-
3 attempts to provide as complete an enumeration of languages as possible, including
living, extinct, ancient, and constructed languages, whether major or minor, written
or unwritten. More information can be found at [http://www.sil.org/iso639-3/](http://www.sil.org/iso639-3/).

  Who controls ISO 639-3?

The ISO does but, you can contact the registrar, [SIL International](http://www.sil.org/iso639-3/default.asp#contact/).

  What are the plugin dependencies?

Everything you need to make this plugin work with wordpress ships with the plugin.

However in our code we have used the ISO 639-3 UTF-8 table provided by SIL International
[http://www.sil.org/ISO639-3/iso-639-3_20090210.tab](http://www.sil.org/ISO639-3/iso-639-3_20090210.tab)
This table is updated annualy. We also have used and modified the jQuery autocomplete
script made availible by PengoWorks.Com (http://www.pengoworks.com/workshop/jquery/
autocomplete.htm “http://www.pengoworks.com/workshop/jquery/autocomplete.htm”)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Language Code Classification” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ sillinguist ](https://profiles.wordpress.org/sillinguist/)
 *   [ superkc9 ](https://profiles.wordpress.org/superkc9/)
 *   [ philfreo ](https://profiles.wordpress.org/philfreo/)

[Translate “Language Code Classification” into your language.](https://translate.wordpress.org/projects/wp-plugins/language-code)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/language-code/), check
out the [SVN repository](https://plugins.svn.wordpress.org/language-code/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/language-code/) 
by [RSS](https://plugins.trac.wordpress.org/log/language-code/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

0.1.3: CURRENT VERSION

 * bug fix: changed the plugin folder name from language_code to language-code to
   follow WP Extend conventions. This also affected several paths to. js files.

0.1.2:

 * Promoted at the WordPress Plugin Database as 0.1.2 beta
 * The autocomplete seems to work better now. Can do accent/case insensitive searches.
    - fixed bug for `MYSQL SELECT` query for searching (`values.php` line 23)
    - specified `TABLE language_code` to be `utf8_general_ci` to be accent/case 
      insensitive for searching (`language_code.php` line 27)
    - specified for client browser to request `MYSQL` to receive/send search in `
      utf8_general_ci` for accent/case insensitive searching (`values.php` line 
      24)
 * Works under:
    - Appache 2.2.11
    - MySQL version: 5.1.30 (K) and 5.0.32 (H)
    - PHP version: 5.2.8 (K) And 5.2.6 (H)
    - WordPress Version: 2.7.1
    - Language_Code Plugin version 0.1.2 Beta
    - Database version: 1.0

0.1.1:

 * General working plug-in but some language’s ISO codes would not show up when 
   typed in. e.g. typing in ‘gel’ did not bring up ‘Kag-Fer-Jiir-Koor-Ror-Us-Zuksun’
   this was a big bug.

0.0.1:

 * Import ISO 639-3 to WP_ table Creation

## Meta

 *  Version **0.1.3 Beta**
 *  Last updated **16 ár ago**
 *  Active installations **10+**
 *  WordPress version ** 2.7 or higher **
 *  Tested up to **2.9.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/language-code/)
 * Tags
 * [custom field](https://fao.wordpress.org/plugins/tags/custom-field/)[language](https://fao.wordpress.org/plugins/tags/language/)
   [library](https://fao.wordpress.org/plugins/tags/library/)[linguistics](https://fao.wordpress.org/plugins/tags/linguistics/)
   [metadata](https://fao.wordpress.org/plugins/tags/metadata/)
 *  [Advanced View](https://fao.wordpress.org/plugins/language-code/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/language-code/reviews/)

## Contributors

 *   [ sillinguist ](https://profiles.wordpress.org/sillinguist/)
 *   [ superkc9 ](https://profiles.wordpress.org/superkc9/)
 *   [ philfreo ](https://profiles.wordpress.org/philfreo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/language-code/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://pro.thejourneyler.org/partnership)