• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

「言語ファイルのインストール」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(en:Installing WordPress in Your Language 18:58, 27 May 2007 Converting2wp 版)
 
(HelpHub 移動メッセージ)
 
(2人の利用者による、間の6版が非表示)
1行目: 1行目:
Although WordPress displays in U.S. English by default, the software has the built-in capability to be used in any language. The WordPress community has already translated WordPress into many languages, and there are Themes, translation files, and support available in many other languages (see [[WordPress in Your Language]]).
+
このページは https://ja.wordpress.org/support/article/installing-wordpress-in-your-language/ へ移動しました。
 
+
To install an international version of WordPress, you have two choices.
+
 
+
# Follow the instructions provided for your language listed at [[WordPress in Your Language]]
+
# If specific instructions are not available, follow the instructions below to manually install language files to your Wordpress site.
+
 
+
== Manually Installing Language Files ==
+
 
+
Here are the steps you will need to follow to install an international version of WordPress.
+
 
+
* Download the <tt>.mo</tt> language file for your language (see [[WordPress in Your Language]] for hints on how to find one). The naming convention of the <tt>.mo</tt> files is based on the ISO-639 language code (e.g. ''pt'' for Portuguese) followed by the ISO-3166 country code (e.g. ''_PT'' for Portugal or ''_BR'' for Brazil). So, the Brazilian Portuguese file would be called <tt>pt_BR.mo</tt>, and a non-specific Portuges file would be called <tt>pt.mo</tt>.  Complete lists of codes can be found at  [http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#SEC222 (country codes)]  and [http://www.gnu.org/software/gettext/manual/html_chapter/gettext_15.html#SEC221 (language codes)].
+
 
+
* Open your wp-config.php file in a [[Glossary#Text_editor|text editor]] and search for:
+
<pre>define ('WPLANG', '');</pre>
+
 
+
* Edit this line according to the <tt>.mo</tt> file you've just downloaded, e.g. for the Portuguese spoken in Brazil you must add:
+
<pre>define ('WPLANG', 'pt_BR');</pre>
+
 
+
* Save the file.
+
 
+
* On your site server, create a new folder in your <tt>/wp-includes</tt> directory called <tt>/languages</tt>.
+
 
+
* Upload the .mo file to <tt>/wp-includes/languages</tt>.
+
 
+
*  Upload the modified <tt>wp-config.php</tt> file into the WordPress root directory.
+
 
+
* Open your browser and go to your WordPress site. It should now display in the newly-installed language.
+
 
+
* If you want to customize the translations displayed on your screen, or add translations for terms that are still displaying in English after installation, you will need to download the <tt>.po</tt> file corresponding to the <tt>.mo</tt> language file you installed. Then you will need to translate additional terms and create a new <tt>.mo</tt> file -- see [[Translating WordPress]] for more information.
+
 
+
* You may also need to translate a few other files -- see [[Files For Direct Translation]] for more information.
+
 
+
'''Note:''' If there was an error in the steps above or you did not specify the correct language, WordPress will default back to English. For more help Installing WordPress, see [[Installing WordPress]] and [[FAQ Installation]].
+
 
+
[[Category:Translating WordPress]]
+
[[Category:Advanced Topics]]
+
[[Category:WordPress Development]]
+

2020年1月18日 (土) 18:00時点における最新版

このページは https://ja.wordpress.org/support/article/installing-wordpress-in-your-language/ へ移動しました。