Skip to content

Commit

Permalink
Update language files
Browse files Browse the repository at this point in the history
Closes #5

Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jun 23, 2016
1 parent d9027a0 commit 5feda14
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

$finder = Symfony\Component\Finder\Finder::create()
->files()
->in(__DIR__.'/resources/lang')
->in(__DIR__.'/src')
->ignoreDotFiles(true)
->ignoreVCS(true);
Expand Down
6 changes: 6 additions & 0 deletions resources/lang/en/label.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'yes' => 'Yes',
'no' => 'No',
];
7 changes: 7 additions & 0 deletions resources/lang/en/title.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return [
'requirement' => 'System Requirements',
'setup' => 'Setup The Application',
'thank-you' => 'Thank you for choosing Orchestra Platform',
];
2 changes: 1 addition & 1 deletion resources/views/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('content')
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Setup The Application</h3>
<h3 class="panel-title">{{ @trans('orchestra/installer::title.setup') }}</h3>
</div>
<div class="panel-body">
<progress progress="75"></progress>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/done.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
@section('content')
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Thank you for choosing Orchestra Platform</h3>
<h3 class="panel-title">{{ @trans('orchestra/installer::title.thank-you') }}</h3>
</div>
<div class="panel-body">
<progress progress="100"></progress>
</div>
<div class="panel-footer">
<a href="{{ handles('orchestra::login') }}" class="btn btn-success btn-lg btn-block">
Proceed to Application
{{ @trans('orchestra/foundation::title.login') }}
</a>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('content')
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">System Requirements</h3>
<h3 class="panel-title">{{ @trans('orchestra/installer::title.requirement') }}</h3>
</div>
<div class="panel-body">
<div class="progress">
Expand All @@ -19,9 +19,9 @@
<a href="#" data-toggle="collapse" data-target="#faq__question_{{ str_slug($uid) }}" class="" aria-expanded="true">
{!! $requirement->title() !!}
@if($requirement->check())
<span class="label label-success pull-right">Yes</span>
<span class="label label-success pull-right">{{ @trans('orchestra/installer::label.yes') }}</span>
@else
<span class="label label-danger pull-right">No</span>
<span class="label label-danger pull-right">{{ @trans('orchestra/installer::label.no') }}</span>
@endif
</a>
<div class="collapse" id="faq__question_{{ str_slug($uid) }}" aria-expanded="true">
Expand Down
1 change: 1 addition & 0 deletions src/InstallerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function bootExtensionComponents()
{
$path = realpath(__DIR__.'/../resources');

$this->addLanguageComponent('orchestra/installer', 'orchestra/installer', "{$path}/lang");
$this->addViewComponent('orchestra/installer', 'orchestra/installer', "{$path}/views");
}

Expand Down

0 comments on commit 5feda14

Please sign in to comment.