Commits

Christoffer Niska  committed fe5097b

removed translatable strings

  • Participants
  • Parent commits 24c1e28
  • Branches 1.0.0-wip

Comments (0)

Files changed (2)

File widgets/TbBreadcrumbs.php

 
 		if (!isset($this->homeLink))
 		{
-			$content = CHtml::link(Yii::t('bootstrap', 'Home'), Yii::app()->homeUrl);
+			$content = CHtml::link(Yii::t('zii', 'Home'), Yii::app()->homeUrl);
 			$links[] = $this->renderItem($content);
 		}
 		else if ($this->homeLink !== false)

File widgets/TbPager.php

 	public function init()
 	{
 		if ($this->nextPageLabel === null)
-			$this->nextPageLabel = Yii::t('bootstrap','Next').' →';
+			$this->nextPageLabel = '→';
 
 		if ($this->prevPageLabel === null)
-			$this->prevPageLabel = '← '.Yii::t('bootstrap','Previous');
-
-		if ($this->firstPageLabel === null)
-			$this->firstPageLabel = Yii::t('bootstrap','First');
-
-		if ($this->lastPageLabel === null)
-			$this->lastPageLabel = Yii::t('bootstrap','Last');
+			$this->prevPageLabel = '←';
 
 		$classes = array();
 
-		$validAlignments = array(self::ALIGNMENT_LEFT, self::ALIGNMENT_CENTER, self::ALIGNMENT_RIGHT);
-		if (in_array($this->alignment, $validAlignments))
+		if (in_array($this->alignment, array(self::ALIGNMENT_LEFT, self::ALIGNMENT_CENTER, self::ALIGNMENT_RIGHT)))
 			$classes[] = 'pagination-'.$this->alignment;
 
-		$classes = implode(' ', $classes);
-		if (isset($this->htmlOptions['class']))
-			$this->htmlOptions['class'] = ' '.$classes;
-		else
-			$this->htmlOptions['class'] = $classes;
+        if (!empty($classes))
+        {
+            $classes = implode(' ', $classes);
+            if (isset($this->htmlOptions['class']))
+                $this->htmlOptions['class'] = ' '.$classes;
+            else
+                $this->htmlOptions['class'] = $classes;
+        }
 
 		parent::init();
 	}