/**
  * @copydoc PKPHandler::initialize()
  */
 function initialize($request)
 {
     parent::initialize($request);
     AppLocale::requireComponents(LOCALE_COMPONENT_PKP_ADMIN, LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_APP_MANAGER);
     // Grid actions.
     $router = $request->getRouter();
     import('lib.pkp.classes.linkAction.request.AjaxModal');
     $this->addAction(new LinkAction('installLocale', new AjaxModal($router->url($request, null, null, 'installLocale', null, null), __('admin.languages.installLocale'), null, true), __('admin.languages.installLocale'), 'add'));
     $cellProvider = $this->getCellProvider();
     // Columns.
     // Enable locale.
     $this->addColumn(new GridColumn('enable', 'common.enable', null, 'controllers/grid/common/cell/selectStatusCell.tpl', $cellProvider, array('width' => 10)));
     // Locale name.
     $this->addNameColumn();
     // Primary locale.
     if ($this->_canManage($request)) {
         $primaryId = 'contextPrimary';
     } else {
         $primaryId = 'sitePrimary';
     }
     $this->addPrimaryColumn($primaryId);
     if ($this->_canManage($request)) {
         $this->addManagementColumns();
     }
     $this->setFootNote('admin.locale.maybeIncomplete');
 }
 /**
  * @copydoc LanguageGridHandler::initialize()
  */
 function initialize($request)
 {
     parent::initialize($request);
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_MANAGER);
     $this->addNameColumn();
     $this->addPrimaryColumn('contextPrimary');
     $this->addManagementColumns();
 }