mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Add more translation points
This commit is contained in:
parent
d050cff3c6
commit
6792bab25d
@ -3,9 +3,9 @@
|
||||
<?php foreach ($items as $item): ?>
|
||||
<li class="group" data-status="<?= $this->getGroupStatus($item->pluginClass) ? 'expanded' : 'collapsed' ?>" data-group-id="<?= e($item->pluginClass) ?>">
|
||||
<div class="group">
|
||||
<h4><a href="#"><?= e($item->title) ?></a></h4>
|
||||
<h4><a href="#"><?= e(trans($item->title)) ?></a></h4>
|
||||
<i class="<?= $item->icon ?>"></i>
|
||||
<span class="description"><?= e($item->description) ?></span>
|
||||
<span class="description"><?= e(trans($item->description)) ?></span>
|
||||
</div>
|
||||
<?= $this->makePartial('component_list', ['components'=>$item->items]) ?>
|
||||
</li>
|
||||
|
@ -45,6 +45,7 @@ return [
|
||||
'refresh_success' => "Successfully refreshed those plugins in the system.",
|
||||
'disable_success' => "Successfully disabled those plugins.",
|
||||
'enable_success' => "Successfully enabled those plugins.",
|
||||
'unknown_plugin' => "Plugin has been removed from the file system.",
|
||||
],
|
||||
'project' => [
|
||||
'name' => 'Project',
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php namespace System\Models;
|
||||
|
||||
use Lang;
|
||||
use Model;
|
||||
use Config;
|
||||
use System\Classes\PluginManager;
|
||||
@ -46,7 +47,7 @@ class PluginVersion extends Model
|
||||
if ($pluginObj) {
|
||||
$pluginInfo = $pluginObj->pluginDetails();
|
||||
foreach ($pluginInfo as $attribute => $info) {
|
||||
$this->{$attribute} = $info;
|
||||
$this->{$attribute} = Lang::get($info);
|
||||
}
|
||||
|
||||
if ($this->is_disabled)
|
||||
@ -62,7 +63,7 @@ class PluginVersion extends Model
|
||||
}
|
||||
else {
|
||||
$this->name = $this->code;
|
||||
$this->description = 'Plugin has been removed from the file system.';
|
||||
$this->description = Lang::get('system::lang.plugins.unknown_plugin');
|
||||
$this->orphaned = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user