ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10463 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Jan 27, 2009, 5:38:02 AM (14 years ago)
Author:
ebihara
Message:

#3244:added ability to change the user's culture of the pc_backend application

Location:
OpenPNE3/trunk/apps/pc_backend/modules/admin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_backend/modules/admin/actions/actions.class.php

    r10003 r10463  
    9393    }
    9494  }
     95
     96 /**
     97  * Executes changeLanguage action
     98  *
     99  * @param sfRequest $request A request object
     100  */
     101  public function executeChangeLanguage(sfWebRequest $request)
     102  {
     103    $this->form = new opLanguageSelecterForm();
     104    if ($request->isMethod(sfWebRequest::POST))
     105    {
     106      $this->form->bind($request->getParameter('language'));
     107      if ($this->form->isValid())
     108      {
     109        $this->form->setCulture();
     110        $this->getUser()->setFlash('notice', 'Changed configuration for your culture.');
     111        $this->redirect('admin/changeLanguage');
     112      }
     113    }
     114  }
    95115}
  • OpenPNE3/trunk/apps/pc_backend/modules/admin/templates/_submenu.php

    r10444 r10463  
    11<li><?php echo link_to(__('Account Management'), 'admin/manageUser') ?></li>
    2 <li><?php echo link_to(__('Change Password'), 'admin/editPassword') ?></li>
     2<li><?php echo link_to(__('Change Password'), 'admin/editPassword') ?></li>
     3<li><?php echo link_to(__('Change Language'), 'admin/changeLanguage') ?></li>
Note: See TracChangeset for help on using the changeset viewer.