Skip to content

Commit

Permalink
redone translation category to hipanel:dashboard <- hipanel/dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Nov 6, 2016
1 parent 964a2ea commit 0e0770e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/config/hisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
],
'i18n' => [
'translations' => [
'hipanel/dashboard' => [
'hipanel:dashboard' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@hipanel/modules/dashboard/messages',
'fileMap' => [
'hipanel/dashboard' => 'dashboard.php',
],
],
],
],
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/views/dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use hipanel\modules\dashboard\widgets\SmallBox;
use yii\helpers\Html;

$this->title = Yii::t('hipanel/dashboard', 'Dashboard');
$this->title = Yii::t('hipanel:dashboard', 'Dashboard');

/**
* @var array $totalCount
Expand Down
6 changes: 3 additions & 3 deletions src/widgets/ObjectsCountWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function run()
protected function renderAsManager()
{
echo Html::beginTag('span', ['style' => "font-size: {$this->fontSize}"]);
echo Yii::t('hipanel/dashboard', '{count} {total}', [
echo Yii::t('hipanel:dashboard', '{count} {total}', [
'count' => $this->totalCount,
'total' => '<small>' . Yii::t('hipanel/dashboard', '{0, plural, other{total}}', $this->totalCount) . '</small>',
'total' => '<small>' . Yii::t('hipanel:dashboard', '{0, plural, other{total}}', $this->totalCount) . '</small>',
]);
echo Html::tag('small', ' / ' . Yii::t('hipanel/dashboard', '{0, plural, other{# own}}', $this->ownCount));
echo Html::tag('small', ' / ' . Yii::t('hipanel:dashboard', '{0, plural, other{# own}}', $this->ownCount));
echo Html::endTag('span');
}

Expand Down

0 comments on commit 0e0770e

Please sign in to comment.