このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Multilingual post

説明

If you can write your posts in 2 or more(Woo…) languages within one blog, you might want to tell the client browser the language attribute of you posts.

According to the tutorial on W3C, language attribute can be declared in the container html tag of your post like this:
<div id=”post_id” class=”post_entry” lang=”zh-Hant” xml:lang=”zh-Hant” dir=”ttb”>…
Here “zh-Hans” is the language attribute of your post which means it’s written in Simplified Chinese.

This plugin gives your post a language tag by adding a meta deta to that post.

To add language tag, select it from the language box when you compose/edit a post. Select “None” will delete the language tag.

Revisions

2007-12-18,
0.2: Now you can difine language direction.
Insert CSS style into page head automatically to support pretty printing.

readme file updated for new feature and fixed a error

2007-07-23
0.1: First release

インストール

To use this plugin, you have to upload the plugin file, active it and edit your theme.

  1. First upload the folder “multilingual-posts” to plugin folder
  2. Open file “languages.php” and select languages that might be used.
    Simply uncomment the row that contains language you will use.
  3. if you need to specify language directions, define it in the bottom of “languages.php”
  4. Edit your wordpress theme.

    In the loop(inside a while(have_posts()) loop), find the top html container which is normally a div block and add a function call before the “>” mark:
    <?php /* Support for multilingual posts plugin/ if(function_exists(‘theLangTag’)) theLangTag($post->ID);?>
    It should look like this(wp2.2 default theme):
    <div class=”post” id=”post-<?php the_ID(); ?>” <?php /
    Support for multilingual posts plugin*/ if(function_exists(‘theLangTag’)) theLangTag($post->ID);?> >
  5. activate this plugin in wordpress admin panel

評価

このプラグインにはレビューがありません。

貢献者と開発者

Multilingual post はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Multilingual post” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。