Improve multilanguage support

This commit is contained in:
gergo85 2015-04-18 13:04:15 +02:00
parent 7ca6602c08
commit e61c69fed8
5 changed files with 25 additions and 14 deletions

View File

@ -11,7 +11,7 @@
name="code"
id="pluginSearchInput"
class="product-search-input search-input-lg typeahead"
placeholder="search plugins to install..."
placeholder="<?= e(trans('system::lang.plugins.search')) ?>"
data-search-type="plugins"
/>
</div>
@ -26,13 +26,13 @@
class="product-list-manager">
<h4 class="section-header">
<a href="<?= Backend::url('system/updates') ?>">Installed plugins</a>
<a href="<?= Backend::url('system/updates') ?>"><?= e(trans('system::lang.plugins.installed')) ?></a>
<small>(<span class="product-counter"><?= count($installedPlugins) ?></span>)</small>
</h4>
<?php if (!count($installedPlugins)): ?>
<div class="product-list-empty">
<p>There are no plugins installed from the marketplace.</p>
<p><?= e(trans('system::lang.plugins.no_plugins')) ?></p>
</div>
<?php else: ?>
<ul class="product-list plugin-list">
@ -52,7 +52,7 @@
aria-hidden="true"
data-request="onRemovePlugin"
data-request-data="code: '<?= $plugin['code'] ?>'"
data-request-confirm="Are you sure you want to remove this?"
data-request-confirm="<?= e(trans('system::lang.plugins.remove_confirm')) ?>"
data-stripe-load-indicator>
&times;
</button>
@ -69,7 +69,7 @@
<!-- Recommended extras -->
<div class="suggested-products-container">
<h4 class="section-header">Recommended</h4>
<h4 class="section-header"><?= e(trans('system::lang.plugins.recommended')) ?></h4>
<div class="scroll-panel">
<div
id="suggestedPlugins"

View File

@ -11,7 +11,7 @@
name="code"
id="themeSearchInput"
class="product-search-input search-input-lg typeahead"
placeholder="search themes to install..."
placeholder="<?= e(trans('system::lang.theme.search')) ?>"
data-search-type="themes"
/>
</div>
@ -28,13 +28,13 @@
data-view="product/theme">
<h4 class="section-header">
<a href="<?= Backend::url('cms/themes') ?>">Installed themes</a>
<a href="<?= Backend::url('cms/themes') ?>"><?= e(trans('system::lang.theme.installed')) ?></a>
<small>(<span class="product-counter"><?= count($installedThemes) ?></span>)</small>
</h4>
<?php if (!count($installedThemes)): ?>
<div class="product-list-empty">
<p>There are no themes installed from the marketplace.</p>
<p><?= e(trans('system::lang.theme.no_themes')) ?></p>
</div>
<?php else: ?>
<ul class="product-list theme-list">
@ -54,7 +54,7 @@
aria-hidden="true"
data-request="onRemoveTheme"
data-request-data="code: '<?= $theme['dirName'] ?>'"
data-request-confirm="Are you sure you want to remove this?"
data-request-confirm="<?= e(trans('system::lang.theme.remove_theme')) ?>"
data-stripe-load-indicator>
&times;
</button>
@ -71,7 +71,7 @@
<!-- Recommended extras -->
<div class="suggested-products-container">
<h4 class="section-header">Recommended</h4>
<h4 class="section-header"><?= e(trans('system::lang.theme.recommended')) ?></h4>
<div class="scroll-panel">
<div
id="suggestedThemes"

View File

@ -14,6 +14,6 @@
<a
href="<?= Backend::url('system/updates/install') ?>"
class="btn btn-success oc-icon-plus">
Install plugins
<?= e(trans('system::lang.plugins.install')) ?>
</a>
</div>

View File

@ -13,14 +13,14 @@
<a
href="#tabPlugins"
data-tab-url="<?= Backend::url('system/updates/install/plugins') ?>">
Plugins
<?= e(trans('system::lang.updates.plugins')) ?>
</a>
</li>
<li class="<?= $activeTab == 'themes' ? 'active' : '' ?>">
<a
href="#tabThemes"
data-tab-url="<?= Backend::url('system/updates/install/themes') ?>">
Themes
<?= e(trans('system::lang.theme.title')) ?>
</a>
</li>
</ul>

View File

@ -54,10 +54,16 @@ return [
]
],
'theme' => [
'title' => 'Themes',
'name' => [
'label' => 'Theme Name',
'help' => 'Name the theme by its unique code. For example, RainLab.Vanilla'
]
],
'search' => 'search themes to install...',
'installed' => 'Installed themes',
'no_themes' => 'There are no themes installed from the marketplace.',
'remove_theme' => 'Are you sure you want to remove this?',
'recommended' => 'Recommended'
],
'plugin' => [
'unnamed' => 'Unnamed plugin',
@ -70,6 +76,11 @@ return [
'manage' => 'Manage plugins',
'enable_or_disable' => 'Enable or disable',
'enable_or_disable_title' => 'Enable or Disable Plugins',
'install' => 'Install plugins',
'search' => 'search plugins to install...',
'installed' => 'Installed plugins',
'no_plugins' => 'There are no plugins installed from the marketplace.',
'recommended' => 'Recommended',
'remove' => 'Remove',
'refresh' => 'Refresh',
'disabled_label' => 'Disabled',