From 6792bab25d49ece37e4cbe200b73942a89e356cd Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Tue, 5 Aug 2014 17:41:59 +1000 Subject: [PATCH] Add more translation points --- modules/cms/widgets/componentlist/partials/_items.htm | 4 ++-- modules/system/lang/en/lang.php | 1 + modules/system/models/PluginVersion.php | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/cms/widgets/componentlist/partials/_items.htm b/modules/cms/widgets/componentlist/partials/_items.htm index 994daf517..439048421 100644 --- a/modules/cms/widgets/componentlist/partials/_items.htm +++ b/modules/cms/widgets/componentlist/partials/_items.htm @@ -3,9 +3,9 @@
  • -

    title) ?>

    +

    title)) ?>

    - description) ?> + description)) ?>
    makePartial('component_list', ['components'=>$item->items]) ?>
  • diff --git a/modules/system/lang/en/lang.php b/modules/system/lang/en/lang.php index f3dd476fe..142661ed3 100644 --- a/modules/system/lang/en/lang.php +++ b/modules/system/lang/en/lang.php @@ -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', diff --git a/modules/system/models/PluginVersion.php b/modules/system/models/PluginVersion.php index 49d80c46e..f7b60e7a8 100644 --- a/modules/system/models/PluginVersion.php +++ b/modules/system/models/PluginVersion.php @@ -1,5 +1,6 @@ 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; }