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

Changeset 10462


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

#3244:added translations support for MemberProfile?

Location:
OpenPNE3/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/data/fixtures/001_import_profile.yml

    r10078 r10462  
    3131
    3232ProfileI18n:
    33   profile_i18n_sex:
     33  profile_i18n_sex_ja_JP:
    3434    id: profile_sex
    3535    caption: "性別"
    3636    culture: "ja_JP"
    3737
    38   profile_i18n_birthday:
     38  profile_i18n_sex_en:
     39    id: profile_sex
     40    caption: "Sex"
     41    culture: "en"
     42
     43  profile_i18n_birthday_ja_JP:
    3944    id: profile_birthday
    4045    caption: "誕生日"
    4146    culture: "ja_JP"
    4247
    43   profile_i18n_self_intro:
     48  profile_i18n_birthday_en:
     49    id: profile_birthday
     50    caption: "Birthday"
     51    culture: "en"
     52
     53  profile_i18n_self_intro_ja_JP:
    4454    id: profile_self_intro
    4555    caption: "自己紹介"
    4656    culture: "ja_JP"
     57
     58  profile_i18n_self_intro_en:
     59    id: profile_self_intro
     60    caption: "Self Introduction"
     61    culture: "en"
    4762
    4863ProfileOption:
     
    6883
    6984ProfileOptionI18n:
    70   profile_option_sex_man:
     85  profile_option_sex_man_ja_JP:
    7186    id: profile_option_sex_man
    7287    value: "男性"
    7388    culture: "ja_JP"
    7489
    75   profile_option_sex_woman:
     90  profile_option_sex_man_en:
     91    id: profile_option_sex_man
     92    value: "Male"
     93    culture: "en"
     94
     95  profile_option_sex_woman_ja_JP:
    7696    id: profile_option_sex_woman
    7797    value: "女性"
    7898    culture: "ja_JP"
     99
     100  profile_option_sex_woman_en:
     101    id: profile_option_sex_woman
     102    value: "Female"
     103    culture: "en"
  • OpenPNE3/trunk/lib/model/MemberProfilePeer.php

    r10089 r10462  
    3131    $c->add(self::MEMBER_ID, $memberId);
    3232    $c->add(self::LFT_KEY, 1);
     33    $c->add(ProfileI18nPeer::CULTURE, sfPropel::getDefaultCulture());
    3334    $c->addJoin(ProfilePeer::ID, ProfileI18nPeer::ID);
    3435    $c->addJoin(ProfilePeer::ID, MemberProfilePeer::PROFILE_ID);
     36
    3537    $c->addAscendingOrderByColumn(ProfilePeer::SORT_ORDER);
    3638
Note: See TracChangeset for help on using the changeset viewer.