Skip to content

Commit ae403dc

Browse files
committed
csrfページまで翻訳。
1 parent fd9fe90 commit ae403dc

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

translation-ja/collections.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ $multiplied->all();
17321732
class Currency
17331733
{
17341734
/**
1735-
* Create a new currency instance.
1735+
* 新しい通貨インスタンスを生成
17361736
*/
17371737
function __construct(
17381738
public string $code,
@@ -2120,7 +2120,7 @@ $piped = $collection->pipe(function (Collection $collection) {
21202120
class ResourceCollection
21212121
{
21222122
/**
2123-
* Create a new ResourceCollection instance.
2123+
* 新しいResourceCollectionインスタンスの生成
21242124
*/
21252125
public function __construct(
21262126
public Collection $collection,
@@ -3997,7 +3997,7 @@ LazyCollection::make(function () {
39973997
})->chunk(4)->map(function (array $lines) {
39983998
return LogEntry::fromLines($lines);
39993999
})->each(function (LogEntry $logEntry) {
4000-
// Process the log entry...
4000+
// ログエントリを処理する…
40014001
});
40024002
```
40034003

@@ -4225,12 +4225,12 @@ Invoice::pending()->cursor()
42254225
`each`メソッドはコレクション中の各アイテムに対し、指定したコールバックを即時に呼び出しますが、`tapEach`メソッドはリストから一つずつアイテムを抜き出し、指定したコールバックを呼び出します。
42264226

42274227
```php
4228-
// Nothing has been dumped so far...
4228+
// ここまで何もダンプされていない
42294229
$lazyCollection = LazyCollection::times(INF)->tapEach(function (int $value) {
42304230
dump($value);
42314231
});
42324232

4233-
// Three items are dumped...
4233+
// 3アイテムダンブ
42344234
$array = $lazyCollection->take(3)->all();
42354235

42364236
// 1
@@ -4250,7 +4250,7 @@ User::where('vip', true)
42504250
->cursor()
42514251
->throttle(seconds: 1)
42524252
->each(function (User $user) {
4253-
// Call external API...
4253+
// 外部APIの呼び出し…
42544254
});
42554255
```
42564256

@@ -4260,14 +4260,14 @@ User::where('vip', true)
42604260
`remember`メソッドは、すでに列挙されている値を記憶し、後続のコレクション列挙でそれらを再度取得しない新しいレイジーコレクションを返します。
42614261

42624262
```php
4263-
// No query has been executed yet...
4263+
// クエリはまだ実行されていない
42644264
$users = User::cursor()->remember();
42654265

4266-
// The query is executed...
4267-
// The first 5 users are hydrated from the database...
4266+
// クエリが実行された
4267+
// 最初の5ユーザーがデータベースからハイドレイトされる
42684268
$users->take(5)->all();
42694269

4270-
// First 5 users come from the collection's cache...
4271-
// The rest are hydrated from the database...
4270+
// 最初の5ユーザーはコレクションのキャッシュから取得
4271+
// 残りはデータベースからハイドレイトされる
42724272
$users->take(20)->all();
42734273
```

translation-ja/configuration.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ $environment = App::environment();
118118

119119
```php
120120
if (App::environment('local')) {
121-
// The environment is local
121+
// 環境はlocal
122122
}
123123

124124
if (App::environment(['local', 'staging'])) {
125-
// The environment is either local OR staging...
125+
// 環境はlocalかstagingのどちらか
126126
}
127127
```
128128

@@ -205,7 +205,7 @@ $value = Config::get('app.timezone');
205205

206206
$value = config('app.timezone');
207207

208-
// Retrieve a default value if the configuration value does not exist...
208+
// 設定値が存在しない場合はデフォルト値が取得される
209209
$value = config('app.timezone', 'Asia/Seoul');
210210
```
211211

@@ -322,7 +322,7 @@ php artisan down --with-secret
322322

323323
Laravelはデフォルトで、ファイルベースのシステムを使ってアプリケーションがメンテナンスモードかを判断します。つまり、メンテナンスモードを有効にするには、アプリケーションをホストしている各サーバ上で`php artisan down`コマンドを実行する必要があります。
324324

325-
Alternatively, Laravel offers a cache-based method for handling maintenance mode. This method requires running the `php artisan down` command on just one server. To use this approach, modify the "driver" setting in the `config/app.php` file of your application to `cache`. Then, select a cache `store` that is accessible by all your servers. This ensures the maintenance mode status is consistently maintained across every server:
325+
もしくは、Laravelはメンテナンスモードをキャッシュベースで処理する方法を提供しています。この方法では、ただ1つのサーバ上で`php artisan down`コマンドを実行するだけです。この方法を使用するには、アプリケーションの`config/app.php`ファイルの"driver"設定を`cache`へ変更してください。それから、すべてのサーバからアクセス可能なキャッシュ`store`を選択する。これにより、メンテナンスモードの状態がすべてのサーバで一貫して維持されるようになります。
326326

327327
```php
328328
'maintenance' => [
@@ -371,4 +371,4 @@ php artisan up
371371
<a name="alternatives-to-maintenance-mode"></a>
372372
#### メンテナンスモードの代替
373373

374-
Since maintenance mode requires your application to have several seconds of downtime, consider running your applications on a fully-managed platform like [Laravel Cloud](https://cloud.laravel.com) to accomplish zero-downtime deployment with Laravel.
374+
メンテナンスモードには、アプリケーションに数秒のダウンタイムが必要なため、Laravelでゼロダウンタイムのデプロイを達成するためには、[Laravel Cloud](https://cloud.laravel.com)のようなフルマネージドプラットフォーム上でアプリケーションを実行することを検討してください。

translation-ja/container.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ use Illuminate\View\View;
3838
class PodcastController extends Controller
3939
{
4040
/**
41-
* Create a new controller instance.
41+
* 新しいコントローラインスタンスの生成
4242
*/
4343
public function __construct(
4444
protected AppleMusic $apple,
4545
) {}
4646

4747
/**
48-
* Show information about the given podcast.
48+
* 指定ポッドキャストの情報を表示
4949
*/
5050
public function show(string $id): View
5151
{
@@ -144,7 +144,7 @@ $this->app->bindIf(Transistor::class, function (Application $app) {
144144
});
145145
```
146146

147-
For convenience, you may omit providing the class or interface name that you wish to register as a separate argument and instead allow Laravel to infer the type from the return type of the closure you provide to the `bind` method:
147+
使いやすいように、登録したいクラス名やインターフェイス名を別の引数として与えるのを省略し、代わりに`bind`メソッドの引数のクロージャの戻り値の型から、Laravelに型を推測させることもできます。
148148

149149
```php
150150
App::bind(function (Application $app): Transistor {
@@ -233,7 +233,7 @@ $this->app->bind(EventPusher::class, RedisEventPusher::class);
233233
use App\Contracts\EventPusher;
234234

235235
/**
236-
* Create a new class instance.
236+
* 新しいクラスインスタンスの生成
237237
*/
238238
public function __construct(
239239
protected EventPusher $pusher,
@@ -418,7 +418,7 @@ use App\Services\Logger;
418418
class Firewall
419419
{
420420
/**
421-
* The filter instances.
421+
* フィルターインスタンス
422422
*
423423
* @var array
424424
*/
@@ -450,7 +450,7 @@ $this->app->when(Firewall::class)
450450
});
451451
```
452452

453-
利便性のため、いつでも`Firewall``Filter`インスタンスを必要とするときは、コンテナが解決するクラス名の配列も渡せます。
453+
使いやすくするため、いつでも`Firewall``Filter`インスタンスを必要とするときは、コンテナが解決するクラス名の配列も渡せます。
454454

455455
```php
456456
$this->app->when(Firewall::class)
@@ -556,7 +556,7 @@ Laravelコンテナインスタンス自体をコンテナにより解決中の
556556
use Illuminate\Container\Container;
557557

558558
/**
559-
* Create a new class instance.
559+
* 新しいクラスインスタンスの生成
560560
*/
561561
public function __construct(
562562
protected Container $container,
@@ -580,14 +580,14 @@ use App\Services\AppleMusic;
580580
class PodcastController extends Controller
581581
{
582582
/**
583-
* Create a new controller instance.
583+
* 新しいコントローラインスタンスの生成
584584
*/
585585
public function __construct(
586586
protected AppleMusic $apple,
587587
) {}
588588

589589
/**
590-
* Show information about the given podcast.
590+
* 指定ポッドキャストの情報を表示
591591
*/
592592
public function show(string $id): Podcast
593593
{
@@ -611,7 +611,7 @@ use App\Services\AppleMusic;
611611
class PodcastStats
612612
{
613613
/**
614-
* Generate a new podcast stats report.
614+
* 新しいポッドキャスト状態レポートの生成
615615
*/
616616
public function generate(AppleMusic $apple): array
617617
{
@@ -652,11 +652,11 @@ use App\Services\Transistor;
652652
use Illuminate\Contracts\Foundation\Application;
653653

654654
$this->app->resolving(Transistor::class, function (Transistor $transistor, Application $app) {
655-
// Called when container resolves objects of type "Transistor"...
655+
// コンテナが"Transistor"型のオブジェクトを解決するときに呼び出される
656656
});
657657

658658
$this->app->resolving(function (mixed $object, Application $app) {
659-
// Called when container resolves object of any type...
659+
// どんな型のオブジェクトを解決するときにも呼び出される
660660
});
661661
```
662662

@@ -682,7 +682,7 @@ $this->app->rebinding(
682682
},
683683
);
684684

685-
// New binding will trigger rebinding closure...
685+
// 新しい結合が再インデックスクロージャを起動する
686686
$this->app->bind(PodcastPublisher::class, TransistorPublisher::class);
687687
```
688688

translation-ja/contracts.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ use Illuminate\Contracts\Redis\Factory;
5050
class CacheOrderInformation
5151
{
5252
/**
53-
* Create a new event handler instance.
53+
* 新しいイベントハンドラインスタンス生成
5454
*/
5555
public function __construct(
5656
protected Factory $redis,
5757
) {}
5858

5959
/**
60-
* Handle the event.
60+
* イベントの処理
6161
*/
6262
public function handle(OrderWasPlaced $event): void
6363
{

translation-ja/controllers.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use Illuminate\View\View;
4646
class UserController extends Controller
4747
{
4848
/**
49-
* Show the profile for a given user.
49+
* 指定ユーザーのプロファイル表示
5050
*/
5151
public function show(string $id): View
5252
{
@@ -83,7 +83,7 @@ namespace App\Http\Controllers;
8383
class ProvisionServer extends Controller
8484
{
8585
/**
86-
* Provision a new web server.
86+
* 新しいWebサーバのプロビジョン
8787
*/
8888
public function __invoke()
8989
{
@@ -154,7 +154,7 @@ use Closure;
154154
use Illuminate\Http\Request;
155155

156156
/**
157-
* Get the middleware that should be assigned to the controller.
157+
* コントローラへ指定すべきミドルウエア取得
158158
*/
159159
public static function middleware(): array
160160
{
@@ -561,7 +561,7 @@ use App\Repositories\UserRepository;
561561
class UserController extends Controller
562562
{
563563
/**
564-
* Create a new controller instance.
564+
* 新しいコントローラインスタンスの生成
565565
*/
566566
public function __construct(
567567
protected UserRepository $users,
@@ -585,13 +585,13 @@ use Illuminate\Http\Request;
585585
class UserController extends Controller
586586
{
587587
/**
588-
* Store a new user.
588+
* 新規ユーザー保存
589589
*/
590590
public function store(Request $request): RedirectResponse
591591
{
592592
$name = $request->name;
593593

594-
// Store the user...
594+
// ユーザーの保存… 
595595

596596
return redirect('/users');
597597
}
@@ -619,11 +619,11 @@ use Illuminate\Http\Request;
619619
class UserController extends Controller
620620
{
621621
/**
622-
* Update the given user.
622+
* 指定ユーザーの更新
623623
*/
624624
public function update(Request $request, string $id): RedirectResponse
625625
{
626-
// Update the user...
626+
// ユーザーの更新…
627627

628628
return redirect('/users');
629629
}

0 commit comments

Comments
 (0)