Improve translations

This commit is contained in:
Szabó Gergő 2017-04-28 09:01:21 +02:00
parent 130d502f41
commit 58dfaf395e
5 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,7 @@
<div class="layout-cell min-height theme-description">
<h3><?= e($theme->getConfigValue('name', $theme->getDirName())) ?></h3>
<?php if (strlen($author)): ?>
<p class="author"><?= e(trans('cms::lang.theme.by')) ?> <a href="<?= e($theme->getConfigValue('homepage', '#')) ?>"><?= e($author) ?></a></p>
<p class="author"><?= str_replace(':name', '<a href="'.e($theme->getConfigValue('homepage', '#')).'">'.e($author).'</a>', e(trans('cms::lang.theme.by_author'))) ?></p>
<?php endif ?>
<p class="description">
<?= e($theme->getConfigValue('description', 'The theme description is not provided.')) ?>

View File

@ -7,7 +7,7 @@ return [
'file_already_exists' => "File ':name' already exists.",
'error_saving' => "Error saving file ':name'. Please check write permissions.",
'error_creating_directory' => 'Error creating directory :name. Please check write permissions.',
'invalid_file_extension'=>'Invalid file extension: :invalid. Allowed extensions are: :allowed.',
'invalid_file_extension' => 'Invalid file extension: :invalid. Allowed extensions are: :allowed.',
'error_deleting' => "Error deleting the template file ':name'. Please check write permissions.",
'delete_success' => 'Templates deleted: :count.',
'file_name_required' => 'The File Name field is required.',
@ -24,7 +24,7 @@ return [
],
'theme' => [
'not_found_name' => "The theme ':name' is not found.",
'by' => 'By',
'by_author' => 'By :name',
'active' => [
'not_set' => 'The active theme is not set.',
'not_found' => 'The active theme is not found.'

View File

@ -7,11 +7,11 @@ return [
'file_already_exists' => "Már létezik ':name' nevű fájl.",
'error_saving' => "Hiba a(z) ':name' fájl mentésekor. Ellenőrizze az írási engedélyeket.",
'error_creating_directory' => 'Hiba a(z) :name könyvtár létrehozásakor. Ellenőrizze az írási engedélyeket.',
'invalid_file_extension'=>'Érvénytelen fájl kiterjesztés: :invalid. Az engedélyezett kiterjesztések: :allowed.',
'invalid_file_extension' => 'Érvénytelen kiterjesztés: :invalid. Engedélyezett kiterjesztések: :allowed.',
'error_deleting' => "Hiba a(z) ':name' sablonfájl törlésekor. Ellenőrizze az írási engedélyeket.",
'delete_success' => 'A sablonok törlése sikerült: :count.',
'file_name_required' => 'A Fájlnév mező kitöltése kötelező.',
'safe_mode_enabled' => 'A biztonságos mód jelenleg engedélyezett.'
'safe_mode_enabled' => 'A biztonságos mód jelenleg aktív.'
],
'dashboard' => [
'active_theme' => [
@ -24,7 +24,7 @@ return [
],
'theme' => [
'not_found_name' => "A következő téma nem található: ':name'",
'by' => 'Fejlesztő:',
'by_author' => 'Fejlesztő: :name',
'active' => [
'not_set' => 'Nincs beállítva az aktív téma.',
'not_found' => 'Az aktív téma nem található.'

View File

@ -1,4 +1,3 @@
<div>
<!-- Search -->
@ -46,7 +45,7 @@
</div>
<div class="details">
<h4><?= $plugin['name'] ?></h4>
<p><?= e(trans('cms::lang.theme.by')) ?> <?= $plugin['author'] ?></p>
<p><?= str_replace(':name', $plugin['author'], e(trans('cms::lang.theme.by_author'))) ?></p>
</div>
<button
type="button"

View File

@ -1,4 +1,3 @@
<div>
<!-- Search -->
@ -48,7 +47,7 @@
</div>
<div class="details">
<h4><?= $theme['name'] ?></h4>
<p><?= e(trans('cms::lang.theme.by')) ?> <?= $theme['author'] ?></p>
<p><?= str_replace(':name', $theme['author'], e(trans('cms::lang.theme.by_author'))) ?></p>
</div>
<button
type="button"