- '$address' => ['address', t('Street Address:'), $r[0]['address']],
- '$locality' => ['locality', t('Locality/City:'), $r[0]['locality']],
- '$region' => ['region', t('Region/State:'), $r[0]['region']],
- '$postal_code' => ['postal_code', t('Postal/Zip Code:'), $r[0]['postal-code']],
- '$country_name' => ['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' => ContactSelector::gender($r[0]['gender']),
- '$marital' => ContactSelector::maritalStatus($r[0]['marital']),
- '$with' => ['with', t("Who: \x28if applicable\x29"), strip_tags($r[0]['with']), t('Examples: cathy123, Cathy Williams, cathy@example.com')],
- '$howlong' => ['howlong', t('Since [date]:'), ($r[0]['howlong'] <= NULL_DATE ? '' : datetime_convert('UTC',date_default_timezone_get(),$r[0]['howlong']))],
- '$sexual' => ContactSelector::sexualPreference($r[0]['sexual']),
- '$about' => ['about', t('Tell us about yourself...'), $r[0]['about']],
- '$xmpp' => ['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' => ['homepage', t('Homepage URL:'), $r[0]['homepage']],
- '$hometown' => ['hometown', t('Hometown:'), $r[0]['hometown']],
- '$politic' => ['politic', t('Political Views:'), $r[0]['politic']],
- '$religion' => ['religion', t('Religious Views:'), $r[0]['religion']],
- '$pub_keywords' => ['pub_keywords', t('Public Keywords:'), $r[0]['pub_keywords'], t("\x28Used for suggesting potential friends, can be seen by others\x29")],
- '$prv_keywords' => ['prv_keywords', t('Private Keywords:'), $r[0]['prv_keywords'], t("\x28Used for searching profiles, never shown to others\x29")],
- '$likes' => ['likes', t('Likes:'), $r[0]['likes']],
- '$dislikes' => ['dislikes', t('Dislikes:'), $r[0]['dislikes']],
- '$music' => ['music', t('Musical interests'), $r[0]['music']],
- '$book' => ['book', t('Books, literature'), $r[0]['book']],
- '$tv' => ['tv', t('Television'), $r[0]['tv']],
- '$film' => ['film', t('Film/dance/culture/entertainment'), $r[0]['film']],
- '$interest' => ['interest', t('Hobbies/Interests'), $r[0]['interest']],
- '$romance' => ['romance', t('Love/romance'), $r[0]['romance']],
- '$work' => ['work', t('Work/employment'), $r[0]['work']],
- '$education' => ['education', t('School/education'), $r[0]['education']],
- '$contact' => ['contact', t('Contact information and Social Networks'), $r[0]['contact']],
+ '$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' => L10n::t(ContactSelector::gender($r[0]['gender'])),
+ '$marital' => ['selector' => ContactSelector::maritalStatus($r[0]['marital']), 'value' => L10n::t($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'] <= DBA::NULL_DATETIME ? '' : DateTimeFormat::local($r[0]['howlong']))],
+ '$sexual' => ['selector' => ContactSelector::sexualPreference($r[0]['sexual']), 'value' => L10n::t($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']],