Title: YD Setup Locale
Author: Yann at WP&amp;Co
Published: <strong>2009 年 6 月 5 日</strong>
Last modified: 2009 年 6 月 5 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/yd-setup-locale.svg)

# YD Setup Locale

 作者：[Yann at WP&Co](https://profiles.wordpress.org/ydubois/)

[下载](https://downloads.wordpress.org/plugin/yd-setup-locale.zip)

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

 [支持](https://wordpress.org/support/plugin/yd-setup-locale/)

## 描述

This very simple WordPress plugin automatically sets up the WP language environment
based on the first part of the url of any page.

It will automatically setup the right XML header lang attribute + the internal WordPress
$locale variable that is used to load the right language files for i18n and l10n(.
po, .mo).

#### Usage:

Your blog URL structure should always begin with an official two-letter langage 
code, for example:

 * /en/… for english
 * /es/… for Spanish
 * /ja/… for Japanese
 * /fr/… for French
 * etc.

Please use only lower-case codes.

Pages that don’t comply to this URL scheme will still get your blog’s default locale
setting, as configured in your wp-config.php file.

Sometimes you need to rename or copy some of your po/mo files, for example French
language PO files are usually named like this: `fr_FR.po`;
 just copy it to `fr.
po` to make it work with a two-letter code.

#### Example

This plugin is used for extended multi-language support on the [Post2Peer.com open posts directory](http://post2peer.com/about).

#### Français

Ce plugin permet très simplement de faire fonctionner un blog multilingue ou bilingue,
français/anglais par exemple.

#### Active support

Drop me a line on my [YD Setup Locale plugin support site](http://www.yann.com/wp-plugins/yd-setup-locale)
to report bugs, ask for specific feature or improvement, or just tell me how you’re
using the plugin.

### Revisions

0.1.0 Initial beta release

### Did you like it?

Drop me a line on http://www.yann.com/wp-plugins/yd-setup-locale

## 安装

 1. Unzip yd-setup-locale.zip
 2. Upload the `yd-setup-local` directory and all its contents into your `/wp-content/
    plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Where should I ask questions?

http://www.yann.com/wp-plugins/yd-setup-locale

Use comments.

I will answer only on that page so that all users can benefit from the answer.
 
So please come back to see the answer or subscribe to that page’s post comments.

## 评价

此插件暂无评价。

## 贡献者及开发者

「YD Setup Locale」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Yann at WP&Co ](https://profiles.wordpress.org/ydubois/)

[帮助将「YD Setup Locale」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/yd-setup-locale)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0.0 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/yd-setup-locale/)
 * 标签
 * [i18n](https://cn.wordpress.org/plugins/tags/i18n/)[international](https://cn.wordpress.org/plugins/tags/international/)
   [internationalization](https://cn.wordpress.org/plugins/tags/internationalization/)
   [l10n](https://cn.wordpress.org/plugins/tags/l10n/)[multilingual](https://cn.wordpress.org/plugins/tags/multilingual/)
 *  [高级视图](https://cn.wordpress.org/plugins/yd-setup-locale/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/yd-setup-locale/reviews/#new-post)

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

## 贡献者

 *   [ Yann at WP&Co ](https://profiles.wordpress.org/ydubois/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/yd-setup-locale/)

## 捐助

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

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