Skip to content

Commit

Permalink
汉化部分并修正
Browse files Browse the repository at this point in the history
  • Loading branch information
vlssu committed Mar 8, 2023
1 parent 2dbe6a0 commit 41e5d8b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/Http/Requests/Api/Application/Users/StoreUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ public function validated($key = null, $default = null): array
public function attributes(): array
{
return [
'external_id' => 'Third Party Identifier',
'name_first' => 'First Name',
'name_last' => 'Last Name',
'root_admin' => 'Root Administrator Status',
'external_id' => '第三方识别码',
'name_first' => '名字',
'name_last' => '姓氏',
'root_admin' => '管理员状态',
];
}
}
4 changes: 2 additions & 2 deletions app/Services/Subusers/SubuserCreationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public function handle(Server $server, string $email, array $permissions): Subus
$user = $this->userCreationService->handle([
'email' => $email,
'username' => $username,
'name_first' => 'Server',
'name_last' => 'Subuser',
'name_first' => '服务器',
'name_last' => '子用户',
'root_admin' => false,
]);
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/users/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@endsection

@section('content-header')
<h1>用户<small>此系统上所有注册用户.</small></h1>
<h1>用户<small>此系统上所有注册用户</small></h1>
<ol class="breadcrumb">
<li><a href="{{ route('admin.index') }}">管理</a></li>
<li class="active">用户</li>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/admin/users/new.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
</div>
</div>
<div class="form-group">
<label for="name_first" class="control-label">姓</label>
<label for="name_last" class="control-label">姓</label>
<div>
<input type="text" autocomplete="off" name="name_first" value="{{ old('name_first') }}" class="form-control" />
<input type="text" autocomplete="off" name="name_last" value="{{ old('name_last') }}" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="name_last" class="control-label">名</label>
<label for="name_first" class="control-label">名</label>
<div>
<input type="text" autocomplete="off" name="name_last" value="{{ old('name_last') }}" class="form-control" />
<input type="text" autocomplete="off" name="name_first" value="{{ old('name_first') }}" class="form-control" />
</div>
</div>
<div class="form-group">
Expand Down
6 changes: 3 additions & 3 deletions resources/views/admin/users/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@endsection

@section('content-header')
<h1>{{ $user->name_first }} {{ $user->name_last}}<small>{{ $user->username }}</small></h1>
<h1>{{ $user->name_last}} {{ $user->name_first }}<small>{{ $user->username }}</small></h1>
<ol class="breadcrumb">
<li><a href="{{ route('admin.index') }}">管理</a></li>
<li><a href="{{ route('admin.users') }}">用户</a></li>
Expand Down Expand Up @@ -37,13 +37,13 @@
<div class="form-group">
<label for="registered" class="control-label">姓</label>
<div>
<input type="text" name="name_first" value="{{ $user->name_first }}" class="form-control form-autocomplete-stop">
<input type="text" name="name_last" value="{{ $user->name_last }}" class="form-control form-autocomplete-stop">
</div>
</div>
<div class="form-group">
<label for="registered" class="control-label">名</label>
<div>
<input type="text" name="name_last" value="{{ $user->name_last }}" class="form-control form-autocomplete-stop">
<input type="text" name="name_first" value="{{ $user->name_first }}" class="form-control form-autocomplete-stop">
</div>
</div>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<li class="user-menu">
<a href="{{ route('account') }}">
<img src="https://cravatar.cn/avatar/{{ md5(strtolower(Auth::user()->email)) }}?s=160" class="user-image" alt="User Image">
<span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span>
<span class="hidden-xs">{{ Auth::user()->name_last }} {{ Auth::user()->name_first }}</span>
</a>
</li>
<li>
Expand Down

0 comments on commit 41e5d8b

Please sign in to comment.