mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix texts_ in country selector
This commit is contained in:
parent
553e782bb3
commit
6c8d0c1d53
@ -11,13 +11,15 @@ class CountriesSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//Empty the countries table
|
||||
DB::table('countries')->delete();
|
||||
Eloquent::unguard();
|
||||
|
||||
if (DB::table('countries')->count() == 0) {
|
||||
//Get all of the countries
|
||||
$countries = Countries::getList();
|
||||
foreach ($countries as $countryId => $country) {
|
||||
if ($record = Country::whereCountryCode($country['country-code'])->first()) {
|
||||
$record->name = $country['name'];
|
||||
$record->full_name = ((isset($country['full_name'])) ? $country['full_name'] : null);
|
||||
$record->save();
|
||||
} else {
|
||||
DB::table('countries')->insert([
|
||||
'id' => $countryId,
|
||||
'capital' => ((isset($country['capital'])) ? $country['capital'] : null),
|
||||
|
@ -11,6 +11,7 @@ class UpdateSeeder extends Seeder
|
||||
{
|
||||
$this->command->info('Running UpdateSeeder...');
|
||||
|
||||
$this->call('CountriesSeeder');
|
||||
$this->call('PaymentLibrariesSeeder');
|
||||
$this->call('FontsSeeder');
|
||||
$this->call('GatewayTypesSeeder');
|
||||
|
File diff suppressed because one or more lines are too long
@ -1690,7 +1690,7 @@ $LANG = array(
|
||||
'country_Wallis and Futuna' => 'Wallis and Futuna',
|
||||
'country_Samoa' => 'Samoa',
|
||||
'country_Yemen' => 'Yemen',
|
||||
'country_Zambi' => 'Zambi',
|
||||
'country_Zambia' => 'Zambia',
|
||||
|
||||
// Languages
|
||||
'lang_Brazilian Portuguese' => 'Brazilian Portuguese',
|
||||
|
Loading…
x
Reference in New Issue
Block a user