Skip to content

Commit 59ee47c

Browse files
committed
add supports i18n
1 parent f220ab6 commit 59ee47c

3 files changed

Lines changed: 160 additions & 7 deletions

File tree

_includes/footer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@
4949
};
5050
</script>
5151

52+
<script src="https://code.jquery.com/jquery-3.0.0.min.js" integrity="sha256-JmvOoLtYsmqlsWxa7mDSLMwa6dZ9rrIdtrrVYRnDRH0=" crossorigin="anonymous"></script>
53+
<script src="/assets/js/i18n.js"></script>
5254
</body>
5355
</html>

assets/css/stylesheet.css

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ code {
211211
}
212212
/* Oh I want SASS here */
213213
h3 > code {
214-
214+
215215
display: inline-block;
216216
margin-bottom: 0.5em;
217217
padding-bottom: 0;
@@ -302,7 +302,7 @@ header h1 a:active {
302302

303303
header h1:before {
304304
content: ". / ";
305-
305+
306306
letter-spacing: 1px;
307307
}
308308

@@ -380,7 +380,7 @@ footer {
380380
color: #292929;
381381
}
382382
.main-nav .rounded:hover {
383-
color: #7AD03A;
383+
color: #7AD03A;
384384
}
385385

386386
/* Search in header */
@@ -389,7 +389,7 @@ footer {
389389
width: 200px;
390390
background: #292929;
391391
color: #f1f1f1;
392-
392+
393393
-webkit-transition-duration: 400ms;
394394
-webkit-transition-property: width, background;
395395
-webkit-transition-timing-function: ease;
@@ -484,7 +484,7 @@ body.display-global-parameters #main_content {
484484
padding-left: 30px
485485
}
486486

487-
@media (max-width: 690px) {
487+
@media (max-width: 690px) {
488488
.global-parameters {
489489
width: auto;
490490
margin:0;
@@ -521,12 +521,12 @@ body.command-line-interface-for-wordpress .global-parameters,
521521
body.configuration .global-parameters{
522522
display: none;
523523
background: green;
524-
}
524+
}
525525

526526
body.configuration .global-parameters{
527527
display: none;
528528
background: green;
529-
}
529+
}
530530

531531

532532
.blog aside.global-parameters {
@@ -690,6 +690,19 @@ hr:after,
690690
width: 150px;
691691
}
692692

693+
/* i18n menu */
694+
.cf .container
695+
{
696+
position: relative;
697+
}
698+
699+
.cf .container select
700+
{
701+
position: absolute;
702+
top: 0px;
703+
right: 0px;
704+
}
705+
693706
@media screen and (-webkit-min-device-pixel-ratio:0) {
694707
header h2,
695708
.main-nav a {

ja/index.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
layout: default
3+
title: Command line interface for WordPress
4+
---
5+
6+
[WP-CLI](https://wp-cli.org/)[WordPress](https://wordpress.org/)を管理するためのコマンドラインツールです。
7+
プラグインのアップデートやマルチサイトのセットアップなどの多くのことをブラウザ無しで行うことができます。
8+
9+
最新情報を得たい人は、[@wpcli on Twitter](https://twitter.com/wpcli)をフォローするか、[メーリングリストにサインアップ](http://wp-cli.us13.list-manage.com/subscribe?u=0615e4d18f213891fc000adfd&id=8c61d7641e)してください。
10+
11+
[![Build Status](https://travis-ci.org/wp-cli/wp-cli.png?branch=master)](https://travis-ci.org/wp-cli/wp-cli) [![Dependency Status](https://gemnasium.com/badges/github.com/wp-cli/wp-cli.svg)](https://gemnasium.com/github.com/wp-cli/wp-cli) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/wp-cli/wp-cli.svg)](http://isitmaintained.com/project/wp-cli/wp-cli "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/wp-cli/wp-cli.svg)](http://isitmaintained.com/project/wp-cli/wp-cli "Percentage of issues still open")
12+
13+
<div style="
14+
border: 1px solid #7AD03A;
15+
-webkit-border-radius: 5px;
16+
-moz-border-radius: 5px;
17+
border-radius: 5px;
18+
padding-left: 10px;
19+
padding-right: 10px;
20+
">
21+
<p><strong>A more RESTful WP-CLI</strong>は、コマンドラインによってWP REST APIのポテンシャルを解放します。このプロジェクトはPressed、Chris Lema、Human Made、Pagely、Pantheon、その他大勢のひとたちによって支援されています。<a href="https://wp-cli.org/restful/">さらに詳しく &rarr;</a></p>
22+
</div>
23+
24+
Quick links: [使い方](#使い方) &#124; [インストール方法](#インストール方法) &#124; [サポート](#サポート) &#124; [拡張](#拡張) &#124; [貢献](#貢献) &#124; [クレジット](#クレジット)
25+
26+
## 使い方
27+
28+
WP-CLIのゴールは、みなさんがWordPressの管理画面でやりたいとおもうことをコマンドラインで提供することです。
29+
たとえば、`wp plugin install --activate` ([ドキュメント](https://wp-cli.org/commands/plugin/install/)) は、プラグインをインストールし有効化します。
30+
31+
```
32+
$ wp plugin install rest-api --activate
33+
Installing WordPress REST API (Version 2) (2.0-beta13)
34+
Downloading install package from https://downloads.wordpress.org/plugin/rest-api.2.0-beta13.zip...
35+
Unpacking the package...
36+
Installing the plugin...
37+
Plugin installed successfully.
38+
Activating 'rest-api'...
39+
Success: Plugin 'rest-api' activated.
40+
```
41+
42+
さらにWP-CLIは、WordPressの管理画面ではできない多くのことが可能です。たとえば、`wp transient delete-all` ([doc](https://wp-cli.org/commands/transient/delete-all/)) は、Transientに保存されているすべてのデータを削除することを可能にしています。
43+
44+
```
45+
$ wp transient delete-all
46+
Success: 34 transients deleted from the database.
47+
```
48+
49+
WP-CLIの使い方にかんするさらに詳しい情報は、[クイックスタートガイド](https://wp-cli.org/docs/quick-start/)を読んでください。
50+
51+
もし、すでに基本的なことを理解しているなら、[コマンドリスト](https://wp-cli.org/ja/commands/)にジャンプして、テーマやプラグインの管理、データのインポートやエクスポート、データベースの操作などについての詳細をみてください。
52+
53+
## インストール方法
54+
55+
Pharファイルをダウンロードする方法が、わたしたちが推奨するインストールする方法です。必要なら[上級者向けインストール方法](https://wp-cli.org/docs/installing/)(英語)をみてください。
56+
57+
WP-CLIをインストールする前に、動作環境を確認してください。
58+
59+
- UNIX系の環境 (OS X, Linux, FreeBSD, Cygwin); Windowsでは一部の機能に制限があります。
60+
- PHP 5.3.29 またはそれ以降のバージョン
61+
- WordPress 3.7 またはそれ以降のバージョン
62+
63+
動作条件を再度確認してから、`wget`または`curl`を使用して[wp-cli.phar](https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar)をダウンロードしてください。
64+
65+
```
66+
$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
67+
```
68+
69+
次に、それが動作しているかを確認してください。
70+
71+
```
72+
$ php wp-cli.phar --info
73+
```
74+
75+
WP-CLIコマンドを`wp`で実行するには、それに実行権限があることとPATHに登録されていることが必要です。
76+
77+
```
78+
$ chmod +x wp-cli.phar
79+
$ sudo mv wp-cli.phar /usr/local/bin/wp
80+
```
81+
82+
もし、WP-CLIのインストールが成功していれば、`wp --info`を実行したら以下のように出力されるはずです。
83+
84+
```
85+
$ wp --info
86+
PHP binary: /usr/bin/php5
87+
PHP version: 5.5.9-1ubuntu4.14
88+
php.ini used: /etc/php5/cli/php.ini
89+
WP-CLI root dir: /home/wp-cli/.wp-cli
90+
WP-CLI packages dir: /home/wp-cli/.wp-cli/packages/
91+
WP-CLI global config: /home/wp-cli/.wp-cli/config.yml
92+
WP-CLI project config:
93+
WP-CLI version: 0.23.0
94+
```
95+
96+
WP-CLIをアップデートするには、`wp cli update` ([doc](https://wp-cli.org/commands/cli/update/)) を実行するか、上述のインストール方法を再度行う必要があります。
97+
98+
## サポート
99+
100+
WP-CLIのメンテナーとプロジェクトの貢献者たちは、新しいIssueに対して、より迅速に返信したいと思っています。これらのボランティアの時間を節約するために、過去に同じ質問に対する回答がないかを確認してください。
101+
102+
- [Common issues and their fixes](https://wp-cli.org/docs/common-issues/)
103+
- [Best practices for submitting a bug report](https://wp-cli.org/docs/bug-reports/)
104+
- [Documentation portal](https://wp-cli.org/docs/)
105+
- [Open or closed issues on Github](https://github.com/wp-cli/wp-cli/issues?utf8=%E2%9C%93&q=is%3Aissue)
106+
- [WordPress StackExchange forums](http://wordpress.stackexchange.com/questions/tagged/wp-cli)
107+
108+
もしあなたがWordPress.orgのアカウントを持っているなら、[WordPress.org Slack organization](https://make.wordpress.org/chat/)`#cli`チャンネルに参加することもできます。
109+
110+
## Extending
111+
112+
それぞれの **コマンド** は、WP-CLIの関数の一つとして定義されています。`wp plugin install` ([doc](https://wp-cli.org/commands/plugin/install/)) はそのうちのひとつであり、`wp plugin activate` ([doc](https://wp-cli.org/commands/plugin/activate/)) は別のもうひとつです。
113+
114+
WP-CLIは、多くのコマンドにより構成されており、カスタムコマンドを作ることは意外と簡単です。[commands cookbook](https://wp-cli.org/docs/commands-cookbook/)を読んでください。
115+
116+
## 貢献
117+
118+
開発に参加するには、まずはじめに[creating an issue](https://wp-cli.org/docs/bug-reports/) or [submitting a pull request](https://wp-cli.org/docs/pull-requests/)を読んでください。
119+
120+
### プロジェクトリーダー
121+
122+
* [Daniel Bachhuber](https://github.com/danielbachhuber/) - current maintainer
123+
* [Cristi Burcă](https://github.com/scribu) - previous maintainer
124+
* [Andreas Creten](https://github.com/andreascreten) - founder
125+
126+
プロジェクトの[ガバナンス](https://wp-cli.org/docs/governance/)[完全な貢献者リスト](https://github.com/wp-cli/wp-cli/contributors)も読んでください。
127+
128+
## クレジット
129+
130+
[composer.json](composer.json)に記載されているライブラリに依存しており、以下のプロジェクトからコードやアイディアを得ています。
131+
132+
* [Drush](http://drush.ws/) for... a lot of things
133+
* [wpshell](http://code.trac.wordpress.org/browser/wpshell) for `wp shell`
134+
* [Regenerate Thumbnails](http://wordpress.org/plugins/regenerate-thumbnails/) for `wp media regenerate`
135+
* [Search-Replace-DB](https://github.com/interconnectit/Search-Replace-DB) for `wp search-replace`
136+
* [WordPress-CLI-Exporter](https://github.com/Automattic/WordPress-CLI-Exporter) for `wp export`
137+
* [WordPress-CLI-Importer](https://github.com/Automattic/WordPress-CLI-Importer) for `wp import`
138+
* [wordpress-plugin-tests](https://github.com/benbalter/wordpress-plugin-tests/) for `wp scaffold plugin-tests`

0 commit comments

Comments
 (0)