- '$address' => array('address', t('Street Address:'), $r[0]['address']),
- '$locality' => array('locality', t('Locality/City:'), $r[0]['locality']),
- '$region' => array('region', t('Region/State:'), $r[0]['region']),
- '$postal_code' => array('postal_code', t('Postal/Zip Code:'), $r[0]['postal-code']),
- '$country_name' => array('country_name', t('Country:'), $r[0]['country-name']),
- '$age' => ((intval($r[0]['dob'])) ? '(' . t('Age: ') . age($r[0]['dob'],$a->user['timezone'],$a->user['timezone']) . ')' : ''),
- '$gender' => gender_selector($r[0]['gender']),
- '$marital' => marital_selector($r[0]['marital']),
- '$with' => array('with', t("Who: \x28if applicable\x29"), strip_tags($r[0]['with']), t('Examples: cathy123, Cathy Williams, cathy@example.com')),
- '$howlong' => array('howlong', t('Since [date]:'), ($r[0]['howlong'] <= NULL_DATE ? '' : datetime_convert('UTC',date_default_timezone_get(),$r[0]['howlong']))),
- '$sexual' => sexpref_selector($r[0]['sexual']),
- '$about' => array('about', t('Tell us about yourself...'), $r[0]['about']),
- '$xmpp' => array('xmpp', t('XMPP (Jabber) address:'), $r[0]['xmpp'], t("The XMPP address will be propagated to your contacts so that they can follow you.")),
- '$homepage' => array('homepage', t('Homepage URL:'), $r[0]['homepage']),
- '$hometown' => array('hometown', t('Hometown:'), $r[0]['hometown']),
- '$politic' => array('politic', t('Political Views:'), $r[0]['politic']),
- '$religion' => array('religion', t('Religious Views:'), $r[0]['religion']),
- '$pub_keywords' => array('pub_keywords', t('Public Keywords:'), $r[0]['pub_keywords'], t("\x28Used for suggesting potential friends, can be seen by others\x29")),
- '$prv_keywords' => array('prv_keywords', t('Private Keywords:'), $r[0]['prv_keywords'], t("\x28Used for searching profiles, never shown to others\x29")),
- '$likes' => array('likes', t('Likes:'), $r[0]['likes']),
- '$dislikes' => array('dislikes', t('Dislikes:'), $r[0]['dislikes']),
- '$music' => array('music', t('Musical interests'), $r[0]['music']),
- '$book' => array('book', t('Books, literature'), $r[0]['book']),
- '$tv' => array('tv', t('Television'), $r[0]['tv']),
- '$film' => array('film', t('Film/dance/culture/entertainment'), $r[0]['film']),
- '$interest' => array('interest', t('Hobbies/Interests'), $r[0]['interest']),
- '$romance' => array('romance', t('Love/romance'), $r[0]['romance']),
- '$work' => array('work', t('Work/employment'), $r[0]['work']),
- '$education' => array('education', t('School/education'), $r[0]['education']),
- '$contact' => array('contact', t('Contact information and Social Networks'), $r[0]['contact']),
- ));
-
- $arr = array('profile' => $r[0], 'entry' => $o);
- call_hooks('profile_edit', $arr);
+ '$address' => ['address', L10n::t('Street Address:'), $r[0]['address']],
+ '$locality' => ['locality', L10n::t('Locality/City:'), $r[0]['locality']],
+ '$region' => ['region', L10n::t('Region/State:'), $r[0]['region']],
+ '$postal_code' => ['postal_code', L10n::t('Postal/Zip Code:'), $r[0]['postal-code']],
+ '$country_name' => ['country_name', L10n::t('Country:'), $r[0]['country-name']],
+ '$age' => ((intval($r[0]['dob'])) ? '(' . L10n::t('Age: ') . Temporal::getAgeByTimezone($r[0]['dob'],$a->user['timezone'],$a->user['timezone']) . ')' : ''),
+ '$gender' => ContactSelector::gender($r[0]['gender']),
+ '$marital' => ContactSelector::maritalStatus($r[0]['marital']),
+ '$with' => ['with', L10n::t("Who: \x28if applicable\x29"), strip_tags($r[0]['with']), L10n::t('Examples: cathy123, Cathy Williams, cathy@example.com')],
+ '$howlong' => ['howlong', L10n::t('Since [date]:'), ($r[0]['howlong'] <= NULL_DATE ? '' : DateTimeFormat::local($r[0]['howlong']))],
+ '$sexual' => ContactSelector::sexualPreference($r[0]['sexual']),
+ '$about' => ['about', L10n::t('Tell us about yourself...'), $r[0]['about']],
+ '$xmpp' => ['xmpp', L10n::t("XMPP \x28Jabber\x29 address:"), $r[0]['xmpp'], L10n::t("The XMPP address will be propagated to your contacts so that they can follow you.")],
+ '$homepage' => ['homepage', L10n::t('Homepage URL:'), $r[0]['homepage']],
+ '$hometown' => ['hometown', L10n::t('Hometown:'), $r[0]['hometown']],
+ '$politic' => ['politic', L10n::t('Political Views:'), $r[0]['politic']],
+ '$religion' => ['religion', L10n::t('Religious Views:'), $r[0]['religion']],
+ '$pub_keywords' => ['pub_keywords', L10n::t('Public Keywords:'), $r[0]['pub_keywords'], L10n::t("\x28Used for suggesting potential friends, can be seen by others\x29")],
+ '$prv_keywords' => ['prv_keywords', L10n::t('Private Keywords:'), $r[0]['prv_keywords'], L10n::t("\x28Used for searching profiles, never shown to others\x29")],
+ '$likes' => ['likes', L10n::t('Likes:'), $r[0]['likes']],
+ '$dislikes' => ['dislikes', L10n::t('Dislikes:'), $r[0]['dislikes']],
+ '$music' => ['music', L10n::t('Musical interests'), $r[0]['music']],
+ '$book' => ['book', L10n::t('Books, literature'), $r[0]['book']],
+ '$tv' => ['tv', L10n::t('Television'), $r[0]['tv']],
+ '$film' => ['film', L10n::t('Film/dance/culture/entertainment'), $r[0]['film']],
+ '$interest' => ['interest', L10n::t('Hobbies/Interests'), $r[0]['interest']],
+ '$romance' => ['romance', L10n::t('Love/romance'), $r[0]['romance']],
+ '$work' => ['work', L10n::t('Work/employment'), $r[0]['work']],
+ '$education' => ['education', L10n::t('School/education'), $r[0]['education']],
+ '$contact' => ['contact', L10n::t('Contact information and Social Networks'), $r[0]['contact']],
+ ]);
+
+ $arr = ['profile' => $r[0], 'entry' => $o];
+ Addon::callHooks('profile_edit', $arr);