-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[ja][WIP] translate 3-5-migration-guide.rst #5134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ja][WIP] translate 3-5-migration-guide.rst #5134
Conversation
bf64f51 to
4b8a152
Compare
a090647 to
4a0929a
Compare
ja/controllers/request-response.rst
Outdated
| automatic view switching features of :php:class:`RequestHandlerComponent` if you | ||
| are using it. | ||
|
|
||
| .. _cake-response-file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既存の内容と重複しています。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご指摘ありがとうございます
|
こちら自社サービスが佳境だったので着手できていなかったのですが週末作業再開します !!! |
|
@ryoichi-u よろしくお願いします。 ちなみに plugins.rst (#5025) は 3.0 ブランチに対応したものがすでに上がっていますので、 |
6d9c0b7 to
7065799
Compare
7065799 to
7f1bd9a
Compare
|
3.5移行ガイドのリンク先をそれぞれ英語版で挿入する作業完了しました。 |
|
@ryoichi-u Thank you! I will take a look later. |
okinaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.5 移行ガイドが作業を始めた時点のままのようです。
最新の更新を取り込んでください。
このファイルだけでも完成させてしまいましょう。
| * ``Cake\Http\Client\CookieCollection`` は非推奨です。 | ||
| 代わりに ``Cake\Http\Cookie\CookieCollection`` を使用してください。 | ||
| * ``Cake\View\Helper\RssHelper`` は非推奨です。 | ||
| まれ利用されることがあるためRssHelperは非推奨となっています。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to infrequent use the RssHelper is deprecated.
「使用がまれなため、 RssHelper は非推奨です。」
| ``Cake\Database\TableSchemaAwareInterface`` を使用してください。 | ||
| * ``Cake\Console\ShellDispatcher`` は非推奨です。アプリケーションでは | ||
| ``Cake\Console\CommandRunner`` を代わりに使用するように更新してください。 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* ``Cake\Database\Schema\TableSchema::column()`` is deprecated. Use
``Cake\Database\Schema\TableSchema::getColumn()`` instead.
* ``Cake\Database\Schema\TableSchema::constraint()`` is deprecated. Use
``Cake\Database\Schema\TableSchema::getConstraint()`` instead.
* ``Cake\Database\Schema\TableSchema::index()`` is deprecated. Use
``Cake\Database\Schema\TableSchema::getIndex()`` instead.
が後から追加されました。
| ``Cake\Datasource\ModelAwareTrait`` | ||
| * ``modelType()`` | ||
| ``Cake\Database\Query`` | ||
| * ``valueBinder()`` (今は ``getValueBinder()``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``Cake\Database\Schema\TableSchema``
* ``columnType()``
が追加されました。
| ``Cake\Database\Query`` | ||
| * ``valueBinder()`` (今は ``getValueBinder()``) | ||
| ``Cake\Datasource\QueryTrait`` | ||
| * ``eagerLoaded()`` (今は ``isEagerLoaded()``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``Cake\Event\EventDispatcherInterface``
* ``eventManager()``
が追加されました。
ja/controllers/middleware.rst
Outdated
| // ミドルウェアのキューにエラーハンドラーを結びつけます。 | ||
| $middlewareStack->add(new ErrorHandlerMiddleware()); | ||
| return $middlewareStack; | ||
| // Bind the error handler into the middleware queue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメント文は変更はありませんので日本語に戻してください。
ja/controllers/middleware.rst
Outdated
| `Packagist <https://packagist.org>`__ で利用可能な、あらゆる PSR-7 互換の | ||
| ミドルウェアを使うことができます。 | ||
| ミドルウエアの視覚的なイメージとしては、あなたの作るアプリケーションは中央で完結していて、 | ||
| ミドルウェアはタマネギのようにアプリケーションの周囲を包み込むに囲っているものになります。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Visually, your application ends up at the center, and middleware is wrapped aroud the app like an onion.
視覚的には、アプリケーションは中央で終了し、ミドルウェアはタマネギのようにアプリの周囲を包み込みます。
okinaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改めて確認したところ、いくつか修正していただきたい部分がありましたので、ご確認いただけますでしょうか?
| ``cookie()`` の結果を使用しなくなりました。代わりに ``Cookie`` ヘッダーと | ||
| ``CookieCollection`` が使用できます。 | ||
| これは、クライアントにカスタムHTTPアダプターを使用しているときにのみ影響があります。 | ||
| * シェルを呼び出すときにサブコマンドに複数文字を用いる場合、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
複数文字
「複数ワード」の方が良さそうです。
| ``cake tool initMyDb`` は ``cake tool init_my_db`` と呼び出すことができます。 | ||
| あなたのシェルが変換規則の異なる2つのサブコマンドを用いていた場合は | ||
| 最後に関連付けた規則のコマンドだけが機能します。 | ||
| * ``SecurityComponent`` はリクエストデータを持たないPOSTリクエストを捕獲します。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
捕獲します。
「破棄します。」の方が意味が通りそうで良さそうです。
| * キャッシュエンジンは失敗または誤って構成されたときに例外を発生させなくなりました。 | ||
| 代わりに、操作不能な ``NullEngine`` としてフォールバックさせます。フォールバックは | ||
| エンジンごとに定義することができます。 | ||
| 詳しくは、 :ref:`configured <cache-configuration-fallback>` をご覧ください |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L152-154 についてですが、
Fallbacks can also be
:ref:`configured <cache-configuration-fallback>` on a per-engine basis.
こちらはあとから更新されたのかもしれません。
「フォールバックは、エンジンごとに :ref:`設定 <cache-configuration-fallback>` することもできます。」
でいかがでしょうか?
| ``Cake\TestSuite\ConsoleIntegrationTestCase`` クラスが追加され、 | ||
| コンソールアプリケーションの結合テストがより簡単になりました。 | ||
| 詳しくは、 :ref:`console-integration-testing` をご覧ください。 | ||
| このテストクラスは、現在の ``Cake\Console\ShellDispatcher`` および |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英語版が "shell dispatcher" なのですが、 ``Cake\Console\ShellDispatcher``
を採用するなら英語版も修正した方がいいと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらについてはより明示的な方が良いと思い、英語版側を修正しました。
| 取り扱うようになりました。これにより、他のORMと似た実装で | ||
| コンポーネントによってページネーションをできるようになりました。 | ||
| * ``Cake\Datasource\Paginator`` を追加して ``ORM/Database/QueryInstances`` を | ||
| ページネーションできるようにしました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cake\Datasource\Paginatorwas added to paginate ORM/Database Query
instances.
「* ``Cake\Datasource\Paginator`` は ORM/Database のクエリーインスタンスをページ制御するために追加されました。」
でいかがでしょう。 私は、 Cake\ORM\Query と Cake\Database\Query という2つのクラスのインスタンスが制御できるようになったと解釈しています。(いままではどうでしたっけ?)
| バリデーション | ||
| -------------- | ||
|
|
||
| * 非整数の値を取得できないようにするため、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ``Cake\Validation\Validator::scalar()`` was added to ensure that fields do not
get non-scalar data.
「* ``Cake\Validation\Validator::scalar()`` は、フィールドが非スカラー型データを取得しないことを保証するために追加されました。」
というのはいかがでしょうか?スカラー型は整数以外もあります。
| * ``Cake\ORM\Query::contain()`` は一つのアソシエーションが入る場合、 | ||
| ラッピング配列なしで呼び出すことができるようになり。つまり、 | ||
| ``contain('Comments', function (){ ... });`` で動作するようになります。 | ||
| この変更で ``leftJoinWith()`` や ``matching()`` のような、他のeagerloading関連の |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eagerloading
イーガーローディング
|
@okinaka 確認ありがとうございます。頂いた部分修正したものをプッシュしました。ご確認をお願いします。 |
I transrated 3-5-migration-guide.rst into japanese.
Please check and merge this PR.ref link