Merge pull request #812 from openclassify/vedat

trans fixed
This commit is contained in:
spektra2147 2020-11-24 14:50:03 +03:00 committed by GitHub
commit 6a0be045cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
$cats = $cats->leftJoin('cats_category_translations', function ($join) {
$join->on('cats_category.id', '=', 'cats_category_translations.entry_id');
$join->whereIn('cats_category_translations.locale', [config('app.locale'), setting_value('streams::default_locale'),'en']);//active lang
$join->whereIn('cats_category_translations.locale', [config('app.locale'), setting_value('streams::default_locale'), 'en']);//active lang
});
$cats = $cats->select('cats_category.*', 'cats_category_translations.name as name');
$cats = $cats->orderBy('id', 'DESC')
@ -132,7 +132,7 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
->get();
foreach ($cats as $cat) {
$link = '';
$parents = $this->getParentCats($cat->id, null);
$parents = $this->getParentCats($cat->id, null, false);
krsort($parents);
foreach ($parents as $key => $parent) {
if ($key == 0) {

View File

@ -77,7 +77,7 @@ class UsersFieldsSeeder extends Seeder
'slug' => 'register_type',
'type' => 'anomaly.field_type.select',
"config" => [
'options' => '1: ' . trans('visiosoft.module.profile::field.individual.name') . "\n2: " . trans('visiosoft.module.profile::field.corporate.name')
'options' => '1: ' . 'visiosoft.module.profile::field.individual.name' . "\n2: " . 'visiosoft.module.profile::field.corporate.name'
]
],
[