Skip to content

Conversation

@ryoichi-u ryoichi-u force-pushed the ja_3.5-migration-guide_transration branch from bf64f51 to 4b8a152 Compare July 29, 2017 17:16
@ryoichi-u ryoichi-u changed the title [ja] translate 3-5-migration-guide.rst [ja][WIP] translate 3-5-migration-guide.rst Jul 29, 2017
@okinaka okinaka added this to the 3.x milestone Jul 29, 2017
@ryoichi-u ryoichi-u force-pushed the ja_3.5-migration-guide_transration branch from a090647 to 4a0929a Compare August 1, 2017 04:09
automatic view switching features of :php:class:`RequestHandlerComponent` if you
are using it.

.. _cake-response-file:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既存の内容と重複しています。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご指摘ありがとうございます

@ryoichi-u
Copy link
Contributor Author

ryoichi-u commented Aug 24, 2017

こちら自社サービスが佳境だったので着手できていなかったのですが週末作業再開します !!!

@okinaka
Copy link
Member

okinaka commented Aug 25, 2017

@ryoichi-u よろしくお願いします。

ちなみに plugins.rst (#5025) は 3.0 ブランチに対応したものがすでに上がっていますので、
git merge か git rebase で取り込んでいただければと思います。

@ryoichi-u ryoichi-u force-pushed the ja_3.5-migration-guide_transration branch from 6d9c0b7 to 7065799 Compare September 2, 2017 03:42
@ryoichi-u ryoichi-u force-pushed the ja_3.5-migration-guide_transration branch from 7065799 to 7f1bd9a Compare September 3, 2017 13:17
@ryoichi-u
Copy link
Contributor Author

@okinaka

3.5移行ガイドのリンク先をそれぞれ英語版で挿入する作業完了しました。
手元で各リンク先が表示できていることを確認しています。ご確認いただきマージいただけると幸いです

@okinaka
Copy link
Member

okinaka commented Sep 4, 2017

@ryoichi-u Thank you!

I will take a look later.

Copy link
Member

@okinaka okinaka left a 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は非推奨となっています。
Copy link
Member

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`` を代わりに使用するように更新してください。

Copy link
Member

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()``)
Copy link
Member

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()``)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``Cake\Event\EventDispatcherInterface``
    * ``eventManager()``

が追加されました。

// ミドルウェアのキューにエラーハンドラーを結びつけます。
$middlewareStack->add(new ErrorHandlerMiddleware());
return $middlewareStack;
// Bind the error handler into the middleware queue.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメント文は変更はありませんので日本語に戻してください。

`Packagist <https://packagist.org>`__ で利用可能な、あらゆる PSR-7 互換の
ミドルウェアを使うことができます。
ミドルウエアの視覚的なイメージとしては、あなたの作るアプリケーションは中央で完結していて、
ミドルウェアはタマネギのようにアプリケーションの周囲を包み込むに囲っているものになります。
Copy link
Member

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.

視覚的には、アプリケーションは中央で終了し、ミドルウェアはタマネギのようにアプリの周囲を包み込みます。

@ryoichi-u
Copy link
Contributor Author

@okinaka
翻訳開始当初からの英語版3.5移行ガイド更新を取り込み( b1d3d66 )、頂いた修正点の対応( fcee199 ) を行いました。ご確認をお願いします

Copy link
Member

@okinaka okinaka left a 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アダプターを使用しているときにのみ影響があります。
* シェルを呼び出すときにサブコマンドに複数文字を用いる場合、
Copy link
Member

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リクエストを捕獲します。
Copy link
Member

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>` をご覧ください
Copy link
Member

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`` および
Copy link
Member

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``
を採用するなら英語版も修正した方がいいと思います。

Copy link
Contributor Author

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`` を
ページネーションできるようにしました。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Cake\Datasource\Paginator was added to paginate ORM/Database Query
    instances.

「* ``Cake\Datasource\Paginator`` は ORM/Database のクエリーインスタンスをページ制御するために追加されました。」

でいかがでしょう。 私は、 Cake\ORM\Query と Cake\Database\Query という2つのクラスのインスタンスが制御できるようになったと解釈しています。(いままではどうでしたっけ?)

バリデーション
--------------

* 非整数の値を取得できないようにするため、
Copy link
Member

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関連の
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eagerloading

イーガーローディング

@ryoichi-u
Copy link
Contributor Author

@okinaka 確認ありがとうございます。頂いた部分修正したものをプッシュしました。ご確認をお願いします。

@okinaka okinaka merged commit 21ae928 into cakephp:3.0 Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants