mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Translate strings
This commit is contained in:
parent
cf000a905b
commit
7bb13483f2
@ -1,3 +1,6 @@
|
||||
* **Build 99** (2014-06-05)
|
||||
- Plugins can now be removed, refreshed and disabled via the back-end.
|
||||
|
||||
* **Build 96** (2014-05-29)
|
||||
- Plugin CLI commands are now case insensitive.
|
||||
- Fixes a bug where belongsTo form field relations were not being set.
|
||||
|
@ -57,6 +57,7 @@ class Updates extends Controller
|
||||
*/
|
||||
public function manage()
|
||||
{
|
||||
$this->pageTitle = Lang::get('system::lang.plugins.manage');
|
||||
PluginManager::instance()->clearDisabledCache();
|
||||
return $this->getClassExtension('Backend.Behaviors.ListController')->index();
|
||||
}
|
||||
@ -407,8 +408,7 @@ class Updates extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
Flash::success('Successfully removed those plugins from the system.');
|
||||
|
||||
Flash::success(Lang::get('system::lang.plugins.remove_success'));
|
||||
}
|
||||
|
||||
return $this->listRefresh('manage');
|
||||
@ -436,7 +436,7 @@ class Updates extends Controller
|
||||
$manager->updatePlugin($pluginCode);
|
||||
}
|
||||
|
||||
Flash::success('Successfully refreshed those plugins in the system.');
|
||||
Flash::success(Lang::get('system::lang.plugins.refresh_success'));
|
||||
}
|
||||
|
||||
return $this->listRefresh('manage');
|
||||
@ -476,9 +476,9 @@ class Updates extends Controller
|
||||
}
|
||||
|
||||
if ($disable)
|
||||
Flash::success('Successfully disabled those plugins.');
|
||||
Flash::success(Lang::get('system::lang.plugins.disable_success'));
|
||||
else
|
||||
Flash::success('Successfully enabled those plugins.');
|
||||
Flash::success(Lang::get('system::lang.plugins.enable_success'));
|
||||
|
||||
return Redirect::to(Backend::url('system/updates/manage'));
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?= Form::open(['id' => 'disableForm']) ?>
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="popup">×</button>
|
||||
<h4 class="modal-title">Enable or Disable Plugins</h4>
|
||||
<h4 class="modal-title"><?= e(trans('system::lang.plugins.enable_or_disable_title')) ?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<p class="flash-message static error"><?= $fatalError ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
<p>Plugins selected: <?= count($checked) ?></p>
|
||||
<p><?= e(trans('system::lang.plugins.selected_amount', ['amount'=>count($checked)])) ?></p>
|
||||
|
||||
<div class="form-group">
|
||||
<!-- Checkbox -->
|
||||
@ -20,9 +20,9 @@
|
||||
value="1"
|
||||
id="pluginDisable">
|
||||
<label for="pluginDisable">
|
||||
Disabled
|
||||
<?= e(trans('system::lang.plugins.disabled_label')) ?>
|
||||
</label>
|
||||
<p class="help-block">Plugins that are disabled are ignored by the application.</p>
|
||||
<p class="help-block"><?= e(trans('system::lang.plugins.disabled_help')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
data-request="onDisablePlugins"
|
||||
data-request-confirm="Are you sure?"
|
||||
data-stripe-load-indicator>
|
||||
Apply
|
||||
<?= e(trans('backend::lang.form.apply')) ?>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
|
@ -12,7 +12,7 @@
|
||||
data-trigger=".control-list input[type=checkbox]"
|
||||
data-trigger-condition="checked"
|
||||
data-stripe-load-indicator>
|
||||
Enable or disable
|
||||
<?= e(trans('system::lang.plugins.enable_or_disable')) ?>
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-default oc-icon-refresh"
|
||||
@ -26,7 +26,7 @@
|
||||
data-trigger=".control-list input[type=checkbox]"
|
||||
data-trigger-condition="checked"
|
||||
data-stripe-load-indicator>
|
||||
Refresh
|
||||
<?= e(trans('system::lang.plugins.refresh')) ?>
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-default oc-icon-trash-o"
|
||||
@ -40,7 +40,7 @@
|
||||
data-trigger=".control-list input[type=checkbox]"
|
||||
data-trigger-condition="checked"
|
||||
data-stripe-load-indicator>
|
||||
Remove
|
||||
<?= e(trans('system::lang.plugins.remove')) ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
@ -2,7 +2,6 @@
|
||||
# List Behavior Config
|
||||
# ===================================
|
||||
|
||||
title: system::lang.updates.title
|
||||
list: @/modules/system/models/pluginversion/columns.yaml
|
||||
modelClass: System\Models\PluginVersion
|
||||
noRecordsMessage: backend::lang.list.no_records
|
||||
|
@ -22,6 +22,20 @@ return [
|
||||
'help' => 'Name the plugin by its unique code. For example, RainLab.Blog',
|
||||
],
|
||||
],
|
||||
'plugins' => [
|
||||
'manage' => 'Manage Plugins',
|
||||
'enable_or_disable' => 'Enable or disable',
|
||||
'enable_or_disable_title' => 'Enable or Disable Plugins',
|
||||
'remove' => 'Remove',
|
||||
'refresh' => 'Refresh',
|
||||
'disabled_label' => 'Disabled',
|
||||
'disabled_help' => 'Plugins that are disabled are ignored by the application.',
|
||||
'selected_amount' => 'Plugins selected: :amount',
|
||||
'remove_success' => "Successfully removed those plugins from the system.",
|
||||
'refresh_success' => "Successfully refreshed those plugins in the system.",
|
||||
'disable_success' => "Successfully disabled those plugins.",
|
||||
'enable_success' => "Successfully enabled those plugins.",
|
||||
],
|
||||
'project' => [
|
||||
'name' => 'Project',
|
||||
'owner_label' => 'Owner',
|
||||
|
Loading…
x
Reference in New Issue
Block a user