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

Changeset 11044


Ignore:
Timestamp:
Mar 17, 2009, 11:15:22 PM (13 years ago)
Author:
ebihara
Message:

#3219:added ability to set a category to the community

Location:
OpenPNE3/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/i18n/form_community.ja.xml

    r10926 r11044  
    1111        <target>写真</target>
    1212      </trans-unit>
     13      <trans-unit id="3">
     14        <source>Community Category</source>
     15        <target>コミュニティカテゴリ</target>
     16      </trans-unit>
    1317    </body>
    1418  </file>
  • OpenPNE3/trunk/apps/pc_frontend/i18n/messages.ja.xml

    r11022 r11044  
    543543        <target>コミュニティ管理者の承認が必要</target>
    544544      </trans-unit>
     545      <trans-unit id="">
     546        <source>Community Category</source>
     547        <target>コミュニティカテゴリ</target>
     548      </trans-unit>
    545549    </body>
    546550  </file>
  • OpenPNE3/trunk/apps/pc_frontend/modules/community/templates/homeSuccess.php

    r11014 r11044  
    2525<?php
    2626$list = array(
    27   __('Community Name')   => $community->getName(),
    28   __('Date Created')         => op_format_date($community->getCreatedAt(), 'D'),
    29   __('Administrator')    => $community_admin->getName(),
    30   __('Count of Members') => $community->countCommunityMembers(),
    31   __('Description')      => op_auto_link_text(nl2br($community->getConfig('description'))),
     27  __('Community Name')     => $community->getName(),
     28  __('Community Category') => $community->getCommunityCategory(),
     29  __('Date Created')       => op_format_date($community->getCreatedAt(), 'D'),
     30  __('Administrator')      => $community_admin->getName(),
     31  __('Count of Members')   => $community->countCommunityMembers(),
     32  __('Description')        => op_auto_link_text(nl2br($community->getConfig('description'))),
    3233);
    3334$options = array(
  • OpenPNE3/trunk/lib/form/CommunityForm.class.php

    r11043 r11044  
    2727    $this->setValidator('name', new sfValidatorString(array('max_length' => 64, 'trim' => true)));
    2828
    29     $this->widgetSchema->setLabel('community_category_id', 'Community category');
     29    $this->setWidget('community_category_id', new opWidgetFormPropelChoiceTree(array(
     30      'model'       => 'CommunityCategory',
     31      'add_empty'   => false,
     32      'peer_method' => 'retrieveAllRoots',
     33    )));
     34    $this->widgetSchema->setLabel('community_category_id', 'Community Category');
    3035    $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('form_community');
    3136  }
  • OpenPNE3/trunk/lib/model/Community.php

    r11019 r11044  
    99 */
    1010
    11 /**
    12  * Subclass for representing a row from the 'community' table.
    13  *
    14  *
    15  *
    16  * @package lib.model
    17  */
    1811class Community extends BaseCommunity
    1912{
Note: See TracChangeset for help on using the changeset viewer.