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

Changeset 10340


Ignore:
Timestamp:
Jan 23, 2009, 4:34:52 PM (11 years ago)
Author:
ShogoKawahara
Message:

#3462:added languageSeleterBox gadget for language selection

Location:
OpenPNE3/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/default/actions/components.class.php

    r10277 r10340  
    6262  }
    6363
     64  public function executeLanguageSelecterBox()
     65  {
     66    $this->form = new opLanguageSelecterForm();
     67  }
     68
    6469  private function isSecurePage()
    6570  {
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/actions/actions.class.php

    r10295 r10340  
    169169    return sfView::SUCCESS;
    170170  }
     171
     172  /**
     173   * Executes changeLanguage action
     174   *
     175   * @param sfRequest $request a request object
     176   */
     177  public function executeChangeLanguage(sfWebRequest $request)
     178  {
     179    if ($request->isMethod(sfWebRequest::POST))
     180    {
     181      $form = new opLanguageSelecterForm();
     182      $form->bind($request->getParameter('language'));
     183      if ($form->isValid())
     184      {
     185        $form->setCulture();
     186        $this->redirect($form->getValue('next_uri'));
     187      }
     188    }
     189    $this->redirect('@homepage');
     190  }
    171191}
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/config/security.yml

    r10119 r10340  
    99  is_secure: off
    1010
     11changeLanguage:
     12  is_secure: off
     13
    1114registerMobileToRegisterEnd:
    1215  credentials: SNSRegisterFinish
  • OpenPNE3/trunk/lib/config/config/side_banner_gadget.yml

    r10260 r10340  
    1313      IsRequired: false
    1414
     15languageSelecterBox:
     16  caption:
     17    ja_JP: "言語切り替えボックス"
     18  description:
     19    ja_JP: "他の言語に切り替えるために必要なボックスを設置できます。"
     20  component: [default, languageSelecterBox]
     21
Note: See TracChangeset for help on using the changeset viewer.