Skip to content

Commit

Permalink
Merge pull request #36 from gergo85/master
Browse files Browse the repository at this point in the history
Translations
  • Loading branch information
Samuel Georges authored Aug 6, 2016
2 parents b5d8b04 + ad33d48 commit 77cda0a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions controllers/definitions/config_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ===================================

# Record name
name: Definition
name: rainlab.sitemap::lang.item.definition

# Model Form Field configuration
form: $/rainlab/sitemap/models/definition/fields.yaml
Expand All @@ -16,6 +16,6 @@ defaultRedirect: system/settings

# Update page
update:
title: Manage sitemap
title: rainlab.sitemap::lang.plugin.name
redirect: rainlab/sitemap/definitions
redirectClose: system/settings
4 changes: 2 additions & 2 deletions controllers/definitions/index.htm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php if ($this->fatalError): ?>

<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
<p><a href="<?= Backend::url('system/settings') ?>" class="btn btn-default">Return to settings</a></p>
<p><a href="<?= Backend::url('system/settings') ?>" class="btn btn-default"><?= e(trans('system::lang.settings.return')) ?></a></p>

<?php endif ?>
<?php endif ?>
8 changes: 4 additions & 4 deletions controllers/definitions/update.htm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ <h4><?= e(trans('rainlab.sitemap::lang.plugin.name')) ?></h4>
type="button"
class="oc-icon-trash-o btn-icon danger pull-right"
data-request="onDelete"
data-load-indicator="Emptying Definition..."
data-request-confirm="Do you really want to empty this definition?">
data-load-indicator="<?= e(trans('rainlab.sitemap::lang.item.load_indicator')) ?>"
data-request-confirm="<?= e(trans('rainlab.sitemap::lang.item.empty_confirm')) ?>">
</button>
<span class="btn-text">
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('rainlab/sitemap/definitions') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
Expand All @@ -51,7 +51,7 @@ <h4><?= e(trans('rainlab.sitemap::lang.plugin.name')) ?></h4>

<div class="padded-container">
<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
<p><a href="<?= Backend::url('system/settings') ?>" class="btn btn-default">Return to settings</a></p>
<p><a href="<?= Backend::url('system/settings') ?>" class="btn btn-default"><?= e(trans('system::lang.settings.return')) ?></a></p>
</div>

<?php endif ?>
<?php endif ?>
5 changes: 4 additions & 1 deletion lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
'url_required' => 'The URL is required',
'cms_page_required' => 'Please select a CMS page',
'page' => 'Page',
'check' => 'Check'
'check' => 'Check',
'definition' => 'Definition',
'load_indicator' => 'Emptying Definition...',
'empty_confirm' => 'Empty this definition?'
]
];
5 changes: 4 additions & 1 deletion lang/hu/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
'url_required' => 'A webcím megadása kötelező.',
'cms_page_required' => 'Válasszon egy oldalt.',
'page' => 'Oldal',
'check' => 'Ellenőrzés'
'check' => 'Ellenőrzés',
'definition' => 'Definíció',
'load_indicator' => 'Visszaállítás folyamatban...',
'empty_confirm' => 'Állítsuk vissza üres állapotba?'
]
];

0 comments on commit 77cda0a

Please sign in to comment.