Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

3.2.7 Fields lacking translation features

Gabriel Guzman edited this page May 14, 2015 · 1 revision

Localization was added to some strings that were previously hard coded. Hosted customers who aren't using a copy of a theme will benefit from the changes automatically. Hosted customers who are using a copy of a theme and self-hosted customers may have to take the following steps.

The following steps are for customers using a theme copy and self-hosted customers.


Submit buttons

  • In your views or theme folder /cart/checkout.php
  • /custompage/contact.php
  • /myaccount/address.php
  • /myaccount/edit.php
  • /myaccount/password.php
  • /wishlist/create.php

Replace:

	CHtml::submitButton('Submit'), array('id' => 'checkoutSubmitButton'));

With:

	CHtml::submitButton(
		Yii::t(
			'forms',
			'Submit'
		),
		array(
			'id' => 'checkoutSubmitButton'
		)
	);

"Search" strings

  • In your views or theme folder /search/index.php (any theme but Brooklyn2014)
  • /wishlist/search.php (any theme but Brooklyn2014)

Replace:

	CHtml::submitButton(
		Yii::t(
			'global',
			'Search'
		),

With:

	CHtml::submitButton(
		Yii::t(
			'global',
			'SEARCH'
		),
  • /site/_search.php (Brooklyn2014 specific)

Replace:

	Yii::t('global', 'Search'),

With:

	Yii::t('tabs', 'Search'),
  • /wishlist/search.php (Brooklyn2014 specific)

Replace:

	Yii::t('global', 'Search'),

With:

	Yii::t('forms', 'Search'),
Clone this wiki locally