Add more translation points

This commit is contained in:
Sam Georges 2014-08-05 17:41:59 +10:00
parent d050cff3c6
commit 6792bab25d
3 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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',

View File

@ -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;
}