Title: Multilingual post
Author: imluke
Published: <strong>2007 年 7 月 23 日</strong>
Last modified: 2007 年 12 月 18 日

---

搜索插件

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

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

# Multilingual post

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

[下载](https://downloads.wordpress.org/plugin/multilingual-posts.0.2.zip)

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

 [支持](https://wordpress.org/support/plugin/multilingual-posts/)

## 描述

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](http://www.w3.org/International/tutorials/language-decl/en/all.html),
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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Multilingual post」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/multilingual-posts)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **0.2**
 *  最后更新：**18 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0 或更高版本 **
 *  已测试的最高版本为 **2.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/multilingual-posts/)
 * 标签
 * [language](https://cn.wordpress.org/plugins/tags/language/)[post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/multilingual-posts/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://www.imluke.com/)