if (empty($phones)) {
$pArrays[] = array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Phone'),
'index' => 0,
'type' => 'phone',
} else {
for ($i = 0; $i < sizeof($phones); $i++) {
$pa = array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Phone'),
'type' => 'phone',
'index' => intval($phones[$i]->value_index),
if (empty($ims)) {
$iArrays[] = array(
+ // TRANS: Field label for extended profile properties (Instant Messaging).
'label' => _m('IM'),
'type' => 'im'
);
} else {
for ($i = 0; $i < sizeof($ims); $i++) {
$ia = array(
+ // TRANS: Field label for extended profile properties (Instant Messaging).
'label' => _m('IM'),
'type' => 'im',
'index' => intval($ims[$i]->value_index),
if (empty($sites)) {
$wArrays[] = array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Website'),
'type' => 'website'
);
} else {
for ($i = 0; $i < sizeof($sites); $i++) {
$wa = array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Website'),
'type' => 'website',
'index' => intval($sites[$i]->value_index),
if (empty($companies)) {
$eArrays[] = array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Employer'),
'type' => 'experience',
'company' => null,
} else {
for ($i = 0; $i < sizeof($companies); $i++) {
$ea = array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Employer'),
'type' => 'experience',
'company' => $companies[$i]->field_value,
if (empty($schools)) {
$iArrays[] = array(
'type' => 'education',
+ // TRANS: Field label for extended profile properties.
'label' => _m('Institution'),
'school' => null,
'degree' => null,
for ($i = 0; $i < sizeof($schools); $i++) {
$ia = array(
'type' => 'education',
+ // TRANS: Field label for extended profile properties.
'label' => _m('Institution'),
'school' => $schools[$i]->field_value,
'degree' => isset($degrees[$i]->field_value) ? $degrees[$i]->field_value : null,
{
return array(
'basic' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Personal'),
'fields' => array(
'fullname' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Full name'),
'profile' => 'fullname',
'vcard' => 'fn',
),
'title' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Title'),
'vcard' => 'title',
),
'manager' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Manager'),
'type' => 'person',
'vcard' => 'x-manager',
),
'location' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Location'),
'profile' => 'location'
),
'bio' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Bio'),
'type' => 'textarea',
'profile' => 'bio',
),
'tags' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Tags'),
'type' => 'tags',
'profile' => 'tags',
),
),
'contact' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Contact'),
'fields' => array(
'phone' => $this->getPhones(),
),
),
'personal' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Personal'),
'fields' => array(
'birthday' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Birthday'),
'type' => 'date',
'vcard' => 'bday',
),
'spouse' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Spouse\'s name'),
'vcard' => 'x-spouse',
),
'kids' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Kids\' names')
),
),
),
'experience' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Work experience'),
'fields' => array(
'experience' => $this->getExperiences()
),
),
'education' => array(
+ // TRANS: Field label for extended profile properties.
'label' => _m('Education'),
'fields' => array(
'education' => $this->getEducation()
// For JQuery UI modal dialog
$this->out->elementStart(
'div',
- array('id' => 'confirm-dialog', 'title' => 'Confirmation Required')
+ // TRANS: Title for extended profile entry deletion dialog.
+ array('id' => 'confirm-dialog', 'title' => _m('Confirmation Required'))
);
- $this->out->text('Really delete this entry?');
+ // TRANS: Confirmation text for extended profile entry deletion dialog.
+ $this->out->text(_m('Really delete this entry?'));
$this->out->elementEnd('div');
$this->showSections();
}
if (!empty($field['value'])) {
$this->out->text($field['value']);
if (!empty($field['rel'])) {
- $this->out->text(' (' . $field['rel'] . ')');
+ // TRANS: Value between parentheses (phone number, website, or IM address).
+ $outtext = sprintf(_m('(%s)'),$field['rel']);
+ $this->out->text(' '.$outtext);
}
}
$this->out->elementEnd('div');
$this->out->elementStart('div', array('class' => 'im-display'));
$this->out->text($field['value']);
if (!empty($field['rel'])) {
- $this->out->text(' (' . $field['rel'] . ')');
+ // TRANS: Value between parentheses (phone number, website, or IM address).
+ $outtext = sprintf(_m('(%s)'),$field['rel']);
+ $this->out->text(' '.$outtext);
}
$this->out->elementEnd('div');
}
);
if (!empty($field['rel'])) {
- $this->out->text(' (' . $field['rel'] . ')');
+ // TRANS: Value between parentheses (phone number, website, or IM address).
+ $outtext = sprintf(_m('(%s)'),$field['rel']);
+ $this->out->text(' '.$outtext);
}
$this->out->elementEnd('div');
}
protected function showExperience($name, $field)
{
$this->out->elementStart('div', 'experience-item');
+ // TRANS: Field label in experience area of extended profile.
$this->out->element('div', 'label', _m('Company'));
if (!empty($field['company'])) {
$this->out->element('div', 'field', $field['company']);
+ // TRANS: Field label in experience area of extended profile (when did one start a position).
$this->out->element('div', 'label', _m('Start'));
$this->out->element(
'div',
date('j M Y', strtotime($field['start'])
)
);
+ // TRANS: Field label in experience area of extended profile (when did one end a position).
$this->out->element('div', 'label', _m('End'));
$this->out->element(
'div',
$this->out->element(
'div',
array('class' => 'field current'),
- '(' . _m('Current') . ')'
+ // TRANS: Field value in experience area of extended profile (one still holds a position).
+ _m('(Current)')
);
}
}
)
);
+ // TRANS: Field label in experience edit area of extended profile (which company does one work for).
$this->out->element('div', 'label', _m('Company'));
$this->out->input(
$id,
isset($field['company']) ? $field['company'] : null
);
+ // TRANS: Field label in experience edit area of extended profile (when did one start at a company).
$this->out->element('div', 'label', _m('Start'));
$this->out->input(
$id . '-start',
isset($field['start']) ? date('j M Y', strtotime($field['start'])) : null
);
+ // TRANS: Field label in experience edit area of extended profile (when did one terminate at a company).
$this->out->element('div', 'label', _m('End'));
$this->out->input(
$this->out->elementStart('div', 'current-checkbox');
$this->out->checkbox(
$id . '-current',
+ // TRANS: Checkbox label in experience edit area of extended profile (one still works at a company).
_m('Current'),
$field['current']
);
protected function showEducation($name, $field)
{
$this->out->elementStart('div', 'education-item');
+ // TRANS: Field label in education area of extended profile.
$this->out->element('div', 'label', _m('Institution'));
if (!empty($field['school'])) {
-
$this->out->element('div', 'field', $field['school']);
+ // TRANS: Field label in education area of extended profile.
$this->out->element('div', 'label', _m('Degree'));
$this->out->element('div', 'field', $field['degree']);
+ // TRANS: Field label in education area of extended profile.
$this->out->element('div', 'label', _m('Description'));
$this->out->element('div', 'field', $field['description']);
+ // TRANS: Field label in education area of extended profile (when did one start an education).
$this->out->element('div', 'label', _m('Start'));
$this->out->element(
'div',
date('j M Y', strtotime($field['start'])
)
);
+ // TRANS: Field label in education area of extended profile (when did one end a education).
$this->out->element('div', 'label', _m('End'));
$this->out->element(
'div',
'class' => 'education-item'
)
);
+ // TRANS: Field label in education edit area of extended profile.
$this->out->element('div', 'label', _m('Institution'));
$this->out->input(
$id,
isset($field['school']) ? $field['school'] : null
);
+ // TRANS: Field label in education edit area of extended profile.
$this->out->element('div', 'label', _m('Degree'));
$this->out->input(
$id . '-degree',
isset($field['degree']) ? $field['degree'] : null
);
+ // TRANS: Field label in education edit area of extended profile.
$this->out->element('div', 'label', _m('Description'));
$this->out->textarea(
isset($field['description']) ? $field['description'] : null
);
+ // TRANS: Field label in education edit area of extended profile (when did one start an education).
$this->out->element('div', 'label', _m('Start'));
$this->out->input(
$id . '-start',
null,
+ // @todo FIXME: does date format need i18n? If so, should probly be dealt with in core.
isset($field['start']) ? date('j M Y', strtotime($field['start'])) : null
);
+ // TRANS: Field label in education edit area of extended profile (when did one end an education).
$this->out->element('div', 'label', _m('End'));
$this->out->input(
$id . '-end',
null,
+ // @todo FIXME: does date format need i18n? If so, should probly be dealt with in core.
isset($field['end']) ? date('j M Y', strtotime($field['end'])) : null
);
'href' => 'javascript://',
'style' => 'display: none;'
),
- 'Add another item'
+ // TRANS: Link description in extended profile page to add another profile element.
+ _m('Add another item')
);
}
$this->showEditableEducation($name, $field);
break;
default:
- $out->input($id, null, "TYPE: $type");
+ // TRANS: Field label for undefined field in extended profile.
+ $out->input($id, null, sprintf(_m('TYPE: %s'),$type));
}
}
*
* @return void
*/
-
function formActions()
{
$this->out->submit(
'save',
+ // TRANS: Button text for saving extended profile properties.
_m('BUTTON','Save'),
'submit form_action-secondary',
'save',
+ // TRANS: .
+ // TRANS: Button title for saving extended profile properties.
_m('Save details')
);
}
*
* @return string ID of the form
*/
-
function id()
{
return 'profile-details-' . $this->profile->id;
*
* @return string of the form class
*/
-
function formClass()
{
return 'form_profile_details form_settings';
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('profiledetailsettings');