1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Country chooser for vendors and stripe payment doesn't use translated strings #1225

This commit is contained in:
Hillel Coren 2017-04-18 10:10:15 +03:00
parent e785ebab5e
commit 43b703430e
3 changed files with 3 additions and 2 deletions

View File

@ -152,7 +152,6 @@ class VendorController extends BaseController
'data' => Input::old('data'), 'data' => Input::old('data'),
'account' => Auth::user()->account, 'account' => Auth::user()->account,
'currencies' => Cache::get('currencies'), 'currencies' => Cache::get('currencies'),
'countries' => Cache::get('countries'),
]; ];
} }

View File

@ -17,9 +17,11 @@ class ComposerServiceProvider extends ServiceProvider
[ [
'accounts.details', 'accounts.details',
'clients.edit', 'clients.edit',
'vendors.edit',
'payments.edit', 'payments.edit',
'invoices.edit', 'invoices.edit',
'accounts.localization', 'accounts.localization',
'payments.credit_card',
], ],
'App\Http\ViewComposers\TranslationComposer' 'App\Http\ViewComposers\TranslationComposer'
); );

View File

@ -193,7 +193,7 @@
<div class="col-md-6"> <div class="col-md-6">
{!! Former::select('country_id') {!! Former::select('country_id')
->placeholder(trans('texts.country_id')) ->placeholder(trans('texts.country_id'))
->fromQuery(Cache::get('countries'), 'name', 'id') ->fromQuery($countries, 'name', 'id')
->addGroupClass('country-select') ->addGroupClass('country-select')
->label('') !!} ->label('') !!}
</div> </div>