Commit fdb78acb authored by Nicolas Widart's avatar Nicolas Widart

Translating the workbench views

parent e1434bb5
<?php
return [
'title' => 'Module helpers',
'subtitle' => [
'generate new module' => 'Generate a new module',
'install new module by vendor name' => 'Install a module by vendor/name',
],
'tab' => [
'generators' => 'Generators',
'migrations' => 'Migrations',
'seeds' => 'Seeds',
],
'form' => [
'module name' => 'Module name',
'vendor name of the module' => 'Vendor/name of the module',
'install as subtree' => 'Install as a subtree?',
],
'button' => [
'generate new module' => 'Generate new module',
'install new module' => 'Install new module',
'migrate' => 'Migrate',
'seed' => 'Seed',
]
];
<?php
return [
'title' => 'Aide au modules',
'subtitle' => [
'generate new module' => 'Générer un nouveau module',
'install new module by vendor name' => 'Installer un nouveau module par son vendor/name',
],
'tab' => [
'generators' => 'Generators',
'migrations' => 'Migrations',
'seeds' => 'Seeds',
],
'form' => [
'module name' => 'Nom du module',
'vendor name of the module' => 'Vendor/name du module',
'install as subtree' => 'Installer en tant que subtree?',
],
'button' => [
'generate new module' => 'Generer le module',
'install new module' => 'Installer le module',
'migrate' => 'Migrer',
'seed' => 'Seed',
]
];
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
@section('content-header') @section('content-header')
<h1> <h1>
Module helpers {{ trans('workshop::workbench.title') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('user::users.breadcrumb.home') }}</a></li>
<li class="active">Workbench</li> <li class="active">{{ trans('workshop::workbench.title') }}</li>
</ol> </ol>
@stop @stop
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="#tab_1-1" data-toggle="tab">Generator</a></li> <li class="active"><a href="#tab_1-1" data-toggle="tab">{{ trans('workshop::workbench.tab.generators') }}</a></li>
<li><a href="#tab_2-2" data-toggle="tab">Migrations</a></li> <li><a href="#tab_2-2" data-toggle="tab">{{ trans('workshop::workbench.tab.migrations') }}</a></li>
<li><a href="#tab_3-3" data-toggle="tab">Seeds</a></li> <li><a href="#tab_3-3" data-toggle="tab">{{ trans('workshop::workbench.tab.seeds') }}</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="tab_1-1"> <div class="tab-pane active" id="tab_1-1">
......
...@@ -3,35 +3,35 @@ ...@@ -3,35 +3,35 @@
<div class="col-md-6"> <div class="col-md-6">
{!! Form::open(['route' => 'dashboard.workbench.generate.index', 'method' => 'post']) !!} {!! Form::open(['route' => 'dashboard.workbench.generate.index', 'method' => 'post']) !!}
<div class="box-body"> <div class="box-body">
<h4>Generate a new module</h4> <h4>{{ trans('workshop::workbench.subtitle.generate new module') }}</h4>
<div class='form-group{{ $errors->has('name') ? ' has-error' : '' }}'> <div class='form-group{{ $errors->has('name') ? ' has-error' : '' }}'>
{!! Form::label('name', 'Module Name:') !!} {!! Form::label('name', trans('workshop::workbench.form.module name')) !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!} {!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'placeholder' => trans('workshop::workbench.form.module name')]) !!}
{!! $errors->first('name', '<span class="help-block">:message</span>') !!} {!! $errors->first('name', '<span class="help-block">:message</span>') !!}
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">Generate new module</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('workshop::workbench.button.generate new module') }}</button>
</div> </div>
{!! Form::close() !!} {!! Form::close() !!}
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
{!! Form::open(['route' => 'dashboard.workbench.install.index', 'method' => 'post']) !!} {!! Form::open(['route' => 'dashboard.workbench.install.index', 'method' => 'post']) !!}
<div class="box-body"> <div class="box-body">
<h4>Install a module by vendor/name</h4> <h4>{{ trans('workshop::workbench.subtitle.install new module by vendor name') }}</h4>
<div class='form-group{{ $errors->has('vendorName') ? ' has-error' : '' }}'> <div class='form-group{{ $errors->has('vendorName') ? ' has-error' : '' }}'>
{!! Form::label('vendorName', 'vendor/name of the module:') !!} {!! Form::label('vendorName', trans('workshop::workbench.form.vendor name of the module')) !!}
{!! Form::text('vendorName', Input::old('vendorName'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!} {!! Form::text('vendorName', Input::old('vendorName'), ['class' => 'form-control', 'placeholder' => trans('workshop::workbench.form.vendor name of the module')]) !!}
{!! $errors->first('vendorName', '<span class="help-block">:message</span>') !!} {!! $errors->first('vendorName', '<span class="help-block">:message</span>') !!}
</div> </div>
<div class="checkbox"> <div class="checkbox">
<label for="subtree"> <label for="subtree">
<input id="subtree" name="subtree" type="checkbox" class="flat-blue" value="true" /> Install as a subtree? <input id="subtree" name="subtree" type="checkbox" class="flat-blue" value="true" /> {{ trans('workshop::workbench.form.install as subtree') }}
</label> </label>
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">Install new module</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('workshop::workbench.button.install new module') }}</button>
</div> </div>
{!! Form::close() !!} {!! Form::close() !!}
</div> </div>
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
{!! Form::open(['route' => 'dashboard.workbench.migrate.index', 'method' => 'post']) !!} {!! Form::open(['route' => 'dashboard.workbench.migrate.index', 'method' => 'post']) !!}
<div class="box-body"> <div class="box-body">
<div class='form-group{{ $errors->has('module') ? ' has-error' : '' }}'> <div class='form-group{{ $errors->has('module') ? ' has-error' : '' }}'>
{!! Form::label('module', 'Module Name:') !!} {!! Form::label('module', trans('workshop::workbench.form.module name')) !!}
{!! Form::select('module', $modules, null, ['class' => 'form-control']) !!} {!! Form::select('module', $modules, null, ['class' => 'form-control']) !!}
{!! $errors->first('module', '<span class="help-block">:message</span>') !!} {!! $errors->first('module', '<span class="help-block">:message</span>') !!}
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">Migrate</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('workshop::workbench.button.migrate') }}</button>
</div> </div>
{!! Form::close() !!} {!! Form::close() !!}
\ No newline at end of file
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
{!! Form::open(['route' => 'dashboard.workbench.seed.index', 'method' => 'post']) !!} {!! Form::open(['route' => 'dashboard.workbench.seed.index', 'method' => 'post']) !!}
<div class="box-body"> <div class="box-body">
<div class='form-group{{ $errors->has('module') ? ' has-error' : '' }}'> <div class='form-group{{ $errors->has('module') ? ' has-error' : '' }}'>
{!! Form::label('module', 'Module Name:') !!} {!! Form::label('module', trans('workshop::workbench.form.module name')) !!}
{!! Form::select('module', $modules, null, ['class' => 'form-control']) !!} {!! Form::select('module', $modules, null, ['class' => 'form-control']) !!}
{!! $errors->first('module', '<span class="help-block">:message</span>') !!} {!! $errors->first('module', '<span class="help-block">:message</span>') !!}
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">Seed</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('workshop::workbench.button.seed') }}</button>
</div> </div>
{!! Form::close() !!} {!! Form::close() !!}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment