Skip to content

Commit

Permalink
Merge pull request #2804 from guizoxxv/master
Browse files Browse the repository at this point in the history
Using translation on repeatable New Item button
  • Loading branch information
tabacitu committed May 12, 2020
2 parents 9abe8cf + b6bc92e commit e4b7271
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/resources/lang/en/crud.php
Expand Up @@ -142,6 +142,7 @@
'internal_link_placeholder' => 'Internal slug. Ex: \'admin/page\' (no quotes) for \':url\'',
'external_link' => 'External link',
'choose_file' => 'Choose file',
'new_item' => 'New Item',

//Table field
'table_cant_add' => 'Cannot add new :entity',
Expand Down
3 changes: 2 additions & 1 deletion src/resources/lang/pt-BR/crud.php
Expand Up @@ -124,8 +124,9 @@
'select_all' => 'Selecionar todos',
'select_files' => 'Selecionar todos os arquivos',
'select_file' => 'Selecionar arquivo',
'new_item' => 'Novo Item',

//Table field
// Table field
'table_cant_add' => 'Não foi possível adicionar um(a) novo(a) :entity',
'table_max_reached' => 'Limite de :max alcançado',

Expand Down
1 change: 1 addition & 0 deletions src/resources/lang/pt_br/crud.php
Expand Up @@ -124,6 +124,7 @@
'select_all' => 'Selecionar todos',
'select_files' => 'Selecionar todos os arquivos',
'select_file' => 'Selecionar arquivo',
'new_item' => 'Novo Item',

//Table field
'table_cant_add' => 'Não foi possível adicionar um(a) novo(a) :entity',
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/repeatable.blade.php
Expand Up @@ -40,7 +40,7 @@
</div>

</div>
<button type="button" class="btn btn-outline-primary btn-sm ml-1 add-repeatable-element-button">+ New Item</button>
<button type="button" class="btn btn-outline-primary btn-sm ml-1 add-repeatable-element-button">+ {{ trans('backpack::crud.new_item') }}</button>

@include('crud::fields.inc.wrapper_end')

Expand Down

0 comments on commit e4b7271

Please sign in to comment.