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

Changeset 12521


Ignore:
Timestamp:
Aug 3, 2009, 5:44:24 PM (10 years ago)
Author:
fukamachi
Message:

#4221 fixed to show the japanese error messages when create invalid topics and events

Location:
OpenPNE3/plugins/opCommunityTopicPlugin/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/i18n/community_event_form.ja.xml

    r12495 r12521  
    3939        <target>企画者</target>
    4040      </trans-unit>
    41 
    4241      <trans-unit id="">
    4342        <source>Invalid.</source>
     
    4847        <target>必須項目です。</target>
    4948      </trans-unit>
    50       <trans-unit id="">
    51         <source>The date must be after now.</source>
    52         <target>開催日時は今日以降にしてください。</target>
    53       </trans-unit>
    54       <trans-unit id="">
    55         <source>The application deadline must be before the open date.</source>
    56         <target>募集期限は開催日時より後に指定できません。</target>
    57       </trans-unit>
    5849    </body>
    5950  </file>
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/i18n/community_topic_form.ja.xml

    r11102 r12521  
    1111        <target>本文</target>
    1212      </trans-unit>
     13      <trans-unit id="">
     14        <source>Required.</source>
     15        <target>必須項目です。</target>
     16      </trans-unit>
    1317    </body>
    1418  </file>
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/i18n/messages.ja.xml

    r12517 r12521  
    199199        <target>コメントの削除が完了しました。</target>
    200200      </trans-unit>
     201      <trans-unit id="">
     202        <source>The open date must be after now.</source>
     203        <target>開催日時に過去は指定できません。</target>
     204      </trans-unit>
     205      <trans-unit id="">
     206        <source>The date must be after now.</source>
     207        <target>期日に過去は指定できません。</target>
     208      </trans-unit>
     209      <trans-unit id="">
     210        <source>The application deadline must be before the open date.</source>
     211        <target>募集期限は開催日時より後に指定できません。</target>
     212      </trans-unit>
    201213    </body>
    202214  </file>
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/form/doctrine/PluginCommunityEventForm.class.php

    r12495 r12521  
    4444      'required' => false,
    4545      'min' => strtotime(date('Y-m-d'))
    46     ), array('min' => 'The date must be after now.')));
     46    ), array('min' => sfContext::getInstance()->getI18N()->__('The date must be after now.'))));
    4747
    4848    $validatorOpenDate = new sfValidatorCallback(array('callback' => array($this, 'validateOpenDate')));
     
    5050
    5151    $validatorApplicationDeadline = new sfValidatorCallback(array('callback' => array($this, 'validateApplicationDeadline')));
    52     $validatorApplicationDeadline->addMessage('invalid_application_deadline', 'The application deadline must be before the open date.');
     52    $validatorApplicationDeadline->addMessage('invalid_application_deadline', sfContext::getInstance()->getI18N()->__('The application deadline must be before the open date.'));
    5353    $this->mergePostValidator($validatorApplicationDeadline);
    5454
     
    6060    if ($this->isNew())
    6161    {
    62       $dateValidator = new sfValidatorDate(array('min' => strtotime(date('Y-m-d'))), array('min' => 'The open date must be after now.'));
     62      $dateValidator = new sfValidatorDate(array('min' => strtotime(date('Y-m-d'))), array('min' => sfContext::getInstance()->getI18N()->__('The open date must be after now.')));
    6363      $value['open_date'] = $dateValidator->clean($value['open_date']);
    6464    }
Note: See TracChangeset for help on using the changeset viewer.