gleez/cms — pull request #175 by sergeyklay (2013-03-19 09:17:33+00:00)
Title: Theme

* Fixed docs
* Cleanup `Controller_Admin_Widget` (converted whitespaces to tabs)
* Removed from `Controller_Admin_Widget` code:

```php
foreach ($widget_regions as $region => $title)
{
$widget_regions[$region] = __($title);
Assets::tabledrag('widgets','match','sibling','widget-region-select','widget-region-'.$region,NULL,FALSE);
Assets::tabledrag('widgets', 'order', 'sibling', 'widget-weight', 'widget-weight-' . $region);
}
```

now it's:
```php
foreach ($widget_regions as $region => $title)
{
Assets::tabledrag('widgets','match','sibling','widget-region-select','widget-region-'.$region,NULL,FALSE);
Assets::tabledrag('widgets', 'order', 'sibling', 'widget-weight', 'widget-weight-' . $region);
}
```

I added support to localize regions title directly in `Gleez_Theme`

* Amended PHPDoc
* Cleanup `Gleez_Theme`
* Added ability to localize region title:

```php
// Add i18n support
if (isset($theme_info->regions) AND ! empty($theme_info->regions))
{
foreach ($theme_info->regions as $name => $title)
{
$theme_info->regions[$name] = __($title);
}
}
```

^ *see diff*

For more information see diff & comments