Skip to content

Commit 7bb82fc

Browse files
committed
ルーティングまで翻訳。
1 parent 44f44d9 commit 7bb82fc

File tree

7 files changed

+39
-39
lines changed

7 files changed

+39
-39
lines changed

translation-ja/rate-limiting.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if (RateLimiter::tooManyAttempts('send-message:'.$user->id, $perMinute = 5)) {
7575

7676
RateLimiter::increment('send-message:'.$user->id);
7777

78-
// Send message...
78+
// メッセージ送信処理…
7979
```
8080

8181
他にも、`remaining`メソッドを使って、指定キーの残りの試行回数を取得することも可能です。指定キーに再試行回数が残っている場合は、`increment`メソッドを呼び出して総試行回数を増やせます。
@@ -112,7 +112,7 @@ if (RateLimiter::tooManyAttempts('send-message:'.$user->id, $perMinute = 5)) {
112112

113113
RateLimiter::increment('send-message:'.$user->id);
114114

115-
// Send message...
115+
// メッセージ送信処理…
116116
```
117117

118118
<a name="clearing-attempts"></a>
@@ -125,7 +125,7 @@ use App\Models\Message;
125125
use Illuminate\Support\Facades\RateLimiter;
126126

127127
/**
128-
* Mark the message as read.
128+
* メッセージを既読にする
129129
*/
130130
public function read(Message $message): Message
131131
{

translation-ja/redirects.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Route::get('/dashboard', function () {
2020

2121
```php
2222
Route::post('/user/profile', function () {
23-
// Validate the request...
23+
// リクエスのバリデート処理…
2424

2525
return back()->withInput();
2626
});
@@ -38,12 +38,12 @@ return redirect()->route('login');
3838
ルートにパラメータが必要な場合は、`route`メソッドの第2引数として渡してください。
3939

4040
```php
41-
// For a route with the following URI: profile/{id}
41+
// profile/{id}ルートへのリダイレクト
4242

4343
return redirect()->route('profile', ['id' => 1]);
4444
```
4545

46-
For convenience, Laravel also offers the global `to_route` function:
46+
使い勝手を良くするため, Laravelは`to_route`グローバル関数も提供しています。
4747

4848
```php
4949
return to_route('profile', ['id' => 1]);
@@ -55,7 +55,7 @@ return to_route('profile', ['id' => 1]);
5555
あるEloquentモデルの"ID"パラメータを含むルートへリダイレクトする場合は、そのモデル自身を渡してください。IDは自動的に取り出されます。
5656

5757
```php
58-
// For a route with the following URI: profile/{id}
58+
// profile/{id}ルートへのリダイレクト
5959

6060
return redirect()->route('profile', [$user]);
6161
```
@@ -64,7 +64,7 @@ return redirect()->route('profile', [$user]);
6464

6565
```php
6666
/**
67-
* Get the value of the model's route key.
67+
* モデルのルートキー値の取得
6868
*/
6969
public function getRouteKey(): mixed
7070
{
@@ -98,7 +98,7 @@ return redirect()->action(
9898

9999
```php
100100
Route::post('/user/profile', function () {
101-
// Update the user's profile...
101+
// ユーザープロフィールの更新処理…
102102

103103
return redirect('/dashboard')->with('status', 'Profile updated!');
104104
});

translation-ja/redis.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -369,21 +369,21 @@ use Illuminate\Support\Facades\Redis;
369369
class RedisSubscribe extends Command
370370
{
371371
/**
372-
* The name and signature of the console command.
372+
* consoleコマンドの名前と使用方法
373373
*
374374
* @var string
375375
*/
376376
protected $signature = 'redis:subscribe';
377377

378378
/**
379-
* The console command description.
379+
* コンソールコマンドの説明
380380
*
381381
* @var string
382382
*/
383383
protected $description = 'Subscribe to a Redis channel';
384384

385385
/**
386-
* Execute the console command.
386+
* consoleコマンドの実行
387387
*/
388388
public function handle(): void
389389
{

translation-ja/requests.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ use Illuminate\Http\Request;
4545
class UserController extends Controller
4646
{
4747
/**
48-
* Store a new user.
48+
* 新しいユーザーを保存
4949
*/
5050
public function store(Request $request): RedirectResponse
5151
{
5252
$name = $request->input('name');
5353

54-
// Store the user...
54+
// ユーザーの保存処理…
5555

5656
return redirect('/users');
5757
}
@@ -92,11 +92,11 @@ use Illuminate\Http\Request;
9292
class UserController extends Controller
9393
{
9494
/**
95-
* Update the specified user.
95+
* 指定ユーザーを更新
9696
*/
9797
public function update(Request $request, string $id): RedirectResponse
9898
{
99-
// Update the user...
99+
// ユーザーの更新処理…
100100

101101
return redirect('/users');
102102
}
@@ -548,9 +548,9 @@ $request->whenFilled('name', function (string $input) {
548548

549549
```php
550550
$request->whenFilled('name', function (string $input) {
551-
// The "name" value is filled...
551+
// "name"の値が空でない
552552
}, function () {
553-
// The "name" value is not filled...
553+
// "name"の値が空
554554
});
555555
```
556556

@@ -562,9 +562,9 @@ if ($request->missing('name')) {
562562
}
563563

564564
$request->whenMissing('name', function () {
565-
// The "name" value is missing...
565+
// "name"の値がない
566566
}, function () {
567-
// The "name" value is present...
567+
// "name"が存在している
568568
});
569569
```
570570

translation-ja/responses.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Route::get('/dashboard', function () {
190190

191191
```php
192192
Route::post('/user/profile', function () {
193-
// Validate the request...
193+
// リクエストのバリデーション処理…
194194

195195
return back()->withInput();
196196
});
@@ -208,7 +208,7 @@ return redirect()->route('login');
208208
ルートにパラメータがある場合は、`route`メソッドの第2引数として渡してください。
209209

210210
```php
211-
// For a route with the following URI: /profile/{id}
211+
// profile/{id}のURIを持つルートの場合
212212

213213
return redirect()->route('profile', ['id' => 1]);
214214
```
@@ -219,7 +219,7 @@ return redirect()->route('profile', ['id' => 1]);
219219
Eloquentモデルの"ID"をルートパラメータとしてリダイレクトする場合は、モデルをそのまま渡してください。IDは自動的に取り出されます。
220220

221221
```php
222-
// For a route with the following URI: /profile/{id}
222+
// profile/{id}のURIを持つルートの場合
223223

224224
return redirect()->route('profile', [$user]);
225225
```
@@ -228,7 +228,7 @@ return redirect()->route('profile', [$user]);
228228

229229
```php
230230
/**
231-
* Get the value of the model's route key.
231+
* モデルのルートキー値の取得
232232
*/
233233
public function getRouteKey(): mixed
234234
{
@@ -376,7 +376,7 @@ Route::get('/stream', function () {
376376
echo $chunk;
377377
ob_flush();
378378
flush();
379-
sleep(2); // Simulate delay between chunks...
379+
sleep(2); // チャンク間の遅延をシミュレート
380380
}
381381
}, 200, ['X-Accel-Buffering' => 'no']);
382382
});

translation-ja/reverb.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
- [リスタート](#restarting)
1313
- [監視](#monitoring)
1414
- [実機でのReverb実行](#production)
15-
- [Open Files](#open-files)
15+
- [ファイルオープン](#open-files)
1616
- [イベントループ](#event-loop)
1717
- [Webサーバ](#web-server)
1818
- [ポート](#ports)
1919
- [プロセス管理](#process-management)
20-
- [Scaling](#scaling)
20+
- [スケーリング](#scaling)
2121

2222
<a name="イントロダクション"></a>
2323
## イントロダクション

translation-ja/routing.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function boot(): void
387387

388388
```php
389389
Route::get('/user/{id}', function (string $id) {
390-
// Only executed if {id} is numeric...
390+
// {id}が数値の場合にのみ実行される
391391
});
392392
```
393393

@@ -434,10 +434,10 @@ Route::get(
434434
特定のルートに名前を割り当てたら、Laravelの`route`および`redirect`ヘルパ関数を使い、URLやリダイレクトを生成するときにルートの名前を使用できます。
435435

436436
```php
437-
// Generating URLs...
437+
// RLを生成
438438
$url = route('profile');
439439

440-
// Generating Redirects...
440+
// リダイレクトの生成
441441
return redirect()->route('profile');
442442

443443
return to_route('profile');
@@ -508,11 +508,11 @@ public function handle(Request $request, Closure $next): Response
508508
```php
509509
Route::middleware(['first', 'second'])->group(function () {
510510
Route::get('/', function () {
511-
// Uses first & second middleware...
511+
// 1番目と2番目のミドルウェアを使用
512512
});
513513

514514
Route::get('/user/profile', function () {
515-
// Uses first & second middleware...
515+
// 1番目と2番目のミドルウェアを使用
516516
});
517517
});
518518
```
@@ -555,7 +555,7 @@ Route::domain('{account}.example.com')->group(function () {
555555
```php
556556
Route::prefix('admin')->group(function () {
557557
Route::get('/users', function () {
558-
// Matches The "/admin/users" URL
558+
// /admin/usersのURLに一致
559559
});
560560
});
561561
```
@@ -568,7 +568,7 @@ Route::prefix('admin')->group(function () {
568568
```php
569569
Route::name('admin.')->group(function () {
570570
Route::get('/users', function () {
571-
// Route assigned name "admin.users"...
571+
// ルートを"admin.users"と名付ける
572572
})->name('users');
573573
});
574574
```
@@ -599,10 +599,10 @@ Route::get('/users/{user}', function (User $user) {
599599
use App\Http\Controllers\UserController;
600600
use App\Models\User;
601601

602-
// Route definition...
602+
// ルート定義
603603
Route::get('/users/{user}', [UserController::class, 'show']);
604604

605-
// Controller method definition...
605+
// コントローラメソッドの定義
606606
public function show(User $user)
607607
{
608608
return view('user.profile', ['user' => $user]);
@@ -639,7 +639,7 @@ Route::get('/posts/{post:slug}', function (Post $post) {
639639

640640
```php
641641
/**
642-
* Get the route key for the model.
642+
* モデルのルートキーの取得
643643
*/
644644
public function getRouteKeyName(): string
645645
{
@@ -793,7 +793,7 @@ public function boot(): void
793793

794794
```php
795795
/**
796-
* Retrieve the model for a bound value.
796+
* 値と結合するモデルの取得
797797
*
798798
* @param mixed $value
799799
* @param string|null $field
@@ -809,7 +809,7 @@ public function resolveRouteBinding($value, $field = null)
809809

810810
```php
811811
/**
812-
* Retrieve the child model for a bound value.
812+
* 結合した値の子モデルを取得
813813
*
814814
* @param string $childType
815815
* @param mixed $value

0 commit comments

Comments
 (0)