Skip to content

Commit 542b919

Browse files
committed
Add translations for database overview
1 parent f6600f4 commit 542b919

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

resources/lang/en/server.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,14 @@
2222
'conn_addr' => 'Connection Address',
2323
'warning' => 'Ensure that your client is set to use SFTP and not FTP or FTPS for connections, there is a difference between the protocols.',
2424
],
25-
]
25+
'database' => [
26+
'header' => 'Databases',
27+
'header_sub' => 'All databases available for this server.',
28+
'your_dbs' => 'Your Databases',
29+
'host' => 'MySQL Host',
30+
'reset_password' => 'Reset Password',
31+
'no_dbs' => 'There are no databases listed for this server.',
32+
'add_db' => 'Add a new database.',
33+
],
34+
],
2635
];

resources/lang/en/strings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@
3939
'required' => 'Required',
4040
'port' => 'Port',
4141
'username' => 'Username',
42+
'database' => 'Database',
4243
];

resources/themes/pterodactyl/server/settings/databases.blade.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
@extends('layouts.master')
2121

2222
@section('title')
23-
Databases
23+
@lang('server.config.database.header')
2424
@endsection
2525

2626
@section('content-header')
27-
<h1>Databases<small>All databases available for this server.</small></h1>
27+
<h1>@lang('server.config.database.header')<small>@lang('server.config.database.header_sub')</small></h1>
2828
<ol class="breadcrumb">
29-
<li><a href="{{ route('index') }}">{{ trans('strings.home') }}</a></li>
29+
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
3030
<li><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></li>
31-
<li>{{ trans('strings.configuration') }}</li>
32-
<li class="active">{{ trans('strings.databases') }}</li>
31+
<li>@lang('navigation.server.configuration')</li>
32+
<li class="active">@lang('navigation.server.databases')</li>
3333
</ol>
3434
@endsection
3535

@@ -38,25 +38,25 @@
3838
<div class="col-xs-12">
3939
<div class="box">
4040
<div class="box-header with-border">
41-
<h3 class="box-title">Your Databases</h3>
41+
<h3 class="box-title">@lang('server.config.database.your_dbs')</h3>
4242
</div>
4343
@if(count($databases) > 0)
4444
<div class="box-body table-responsive no-padding">
4545
<table class="table table-hover">
4646
<tbody>
4747
<tr>
48-
<th>Database</th>
49-
<th>Username</th>
50-
<th>Password</th>
51-
<th>MySQL Host</th>
48+
<th>@lang('strings.database')</th>
49+
<th>@lang('strings.username')</th>
50+
<th>@lang('strings.password')</th>
51+
<th>@lang('server.config.database.host')</th>
5252
</tr>
5353
@foreach($databases as $database)
5454
<tr>
5555
<td>{{ $database->database }}</td>
5656
<td>{{ $database->username }}</td>
5757
<td><code>{{ Crypt::decrypt($database->password) }}</code>
5858
@can('reset-db-password', $server)
59-
<button class="btn btn-xs btn-primary pull-right" data-action="reset-database-password" data-id="{{ $database->id }}"><i class="fa fa-fw fa-refresh"></i> Reset Password</button>
59+
<button class="btn btn-xs btn-primary pull-right" data-action="reset-database-password" data-id="{{ $database->id }}"><i class="fa fa-fw fa-refresh"></i> @lang('server.config.database.reset_password')</button>
6060
@endcan
6161
</td>
6262
<td><code>{{ $database->a_host }}:{{ $database->a_port }}</code></td>
@@ -68,12 +68,12 @@
6868
@else
6969
<div class="box-body">
7070
<div class="callout callout-info callout-nomargin">
71-
There are no databases listed for this server.
71+
@lang('server.config.database.no_dbs')
7272
@if(Auth::user()->root_admin === 1)
7373
<a href="{{ route('admin.servers.view', [
7474
'id' => $server->id,
7575
'tab' => 'tab_database'
76-
]) }}" target="_blank">Add a new database.</a>
76+
]) }}" target="_blank">@lang('server.config.database.add_db')</a>
7777
@endif
7878
</div>
7979
</div>

0 commit comments

Comments
 (0)