mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 16:00:54 -03:00
Starting to add localization into PTB
This commit is contained in:
12
resources/lang/en/home.php
Normal file
12
resources/lang/en/home.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
// /resources/views/home.blade.php
|
||||
|
||||
return [
|
||||
'no_messages' => 'There are no items shared with you yet.',
|
||||
'share_item' => 'Share an item!',
|
||||
'return' => 'Return It',
|
||||
'cancel_alert' => 'Cancel Alert',
|
||||
'alert_me' => 'Alert me',
|
||||
'take' => 'Take It'
|
||||
];
|
||||
12
resources/lang/pt-br/home.php
Normal file
12
resources/lang/pt-br/home.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
// /resources/views/home.blade.php
|
||||
|
||||
return [
|
||||
'no_messages' => 'Ainda não há itens compartilhados com você.',
|
||||
'share_item' => 'Compartilhe um item!',
|
||||
'return' => 'Retornar',
|
||||
'cancel_alert' => 'Cancelar alerta',
|
||||
'alert_me' => 'Alertar',
|
||||
'take' => 'Pegar'
|
||||
];
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p>There are no items shared with you yet. <a href="/product">Share an item!</a></p>
|
||||
<p>@lang('home.no_messages')<a href="/product">@lang('home.share_item')</a></p>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<form action="/take" method="POST">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="item" value="{{$item->id}}">
|
||||
<button type="submit" class="btn btn-sm btn-success">Take It</button>
|
||||
<button type="submit" class="btn btn-sm btn-success">@lang('home.take')</button>
|
||||
</form>
|
||||
@@ -5,7 +5,7 @@
|
||||
{{ csrf_field() }}
|
||||
@method('DELETE')
|
||||
<input type="hidden" name="item" value="{{$item->id}}">
|
||||
<button type="submit" class="btn btn-sm btn-danger ml-auto">Return It</button>
|
||||
<button type="submit" class="btn btn-sm btn-danger ml-auto">@lang('home.return')</button>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
<input type="hidden" name="item" value="{{$item->id}}">
|
||||
@if ($item->waiting_user_id == \Auth::id())
|
||||
@method('DELETE')
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger ml-auto">Cancel Alert</button>
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger ml-auto">@lang('home.cancel_alert')</button>
|
||||
@elseif (!$item->waiting_user_id)
|
||||
<button type="submit" class="btn btn-sm btn-outline-secondary ml-auto">Alert me</button>
|
||||
<button type="submit" class="btn btn-sm btn-outline-secondary ml-auto">@lang('home.alert_me')</button>
|
||||
@endif
|
||||
</form>
|
||||
@endif
|
||||
Reference in New Issue
Block a user