code:
# Translation file for GNU social - the free software social networking platform
# Copyright (C) 2015 - 2019 Free Software Foundation, Inc http://www.fsf.org
# This file is under https://www.gnu.org/licenses/agpl v3 or later
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: GNU social\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-02-02 17:47+0100\n"
"PO-Revision-Date: 2015-02-05 16:12+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/gnu-social/gnu-social/language/zh_TW/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_TW\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#. TRANS: Possible status for RSVP ("please respond") item.
#: forms/cancelrsvp.php:101
msgid "You will attend this event."
msgstr ""

#. TRANS: Possible status for RSVP ("please respond") item.
#: forms/cancelrsvp.php:105
msgid "You will not attend this event."
msgstr ""

#. TRANS: Possible status for RSVP ("please respond") item.
#: forms/cancelrsvp.php:109
msgid "You might attend this event."
msgstr ""

#. TRANS: Button text to cancel responding to an RSVP ("please respond") item.
#: forms/cancelrsvp.php:124
msgctxt "BUTTON"
msgid "Cancel"
msgstr ""

#. TRANS: Field label on form to RSVP ("please respond") for an event.
#: forms/rsvp.php:97
msgid "RSVP:"
msgstr ""

#. TRANS: Button text for RSVP ("please respond") reply to confirm attendence.
#: forms/rsvp.php:113
msgctxt "BUTTON"
msgid "Yes"
msgstr ""

#. TRANS: Button text for RSVP ("please respond") reply to deny attendence.
#: forms/rsvp.php:115
msgctxt "BUTTON"
msgid "No"
msgstr ""

#. TRANS: Button text for RSVP ("please respond") reply to indicate one might
#. attend.
#: forms/rsvp.php:117
msgctxt "BUTTON"
msgid "Maybe"
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:103
msgctxt "LABEL"
msgid "Title"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:106
msgid "Title of the event."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:118
msgctxt "LABEL"
msgid "Start date"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:121
msgid "Date the event starts."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:134
msgctxt "LABEL"
msgid "Start time"
msgstr ""

#. TRANS: Field title on event form. %s is the abbreviated timezone
#: forms/event.php:137
#, php-format
msgid "Time the event starts (%s)."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:151
msgctxt "LABEL"
msgid "End date"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:154
msgid "Date the event ends."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:163
msgctxt "LABEL"
msgid "End time"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:166
msgid "Time the event ends."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:175
msgctxt "LABEL"
msgid "Where?"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:178
msgid "Event location."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:185
msgctxt "LABEL"
msgid "URL"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:188
msgid "URL for more information."
msgstr ""

#. TRANS: Field label on event form.
#: forms/event.php:195
msgctxt "LABEL"
msgid "Description"
msgstr ""

#. TRANS: Field title on event form.
#: forms/event.php:198
msgid "Description of the event."
msgstr ""

#. TRANS: Button text to save an event..
#: forms/event.php:221
msgctxt "BUTTON"
msgid "Save"
msgstr ""

#. TRANS: Title for new event form.
#: actions/newevent.php:66
msgctxt "TITLE"
msgid "New event"
msgstr ""

#. TRANS: Client exception thrown when trying to post an event while not
#. logged in.
#: actions/newevent.php:84
msgid "Must be logged in to post a event."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event without
#. providing a title.
#: actions/newevent.php:98
msgid "Title required."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event without
#. providing a start date.
#: actions/newevent.php:110
msgid "Start date required."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event without
#. providing an end date.
#: actions/newevent.php:123
msgid "End date required."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event with a date
#. that cannot be processed.
#. TRANS: %s is the data that could not be processed.
#: actions/newevent.php:141 actions/newevent.php:148
#, php-format
msgid "Could not parse date \"%s\"."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event without
#. providing a title.
#: actions/newevent.php:196
msgid "Event must have a title."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event without
#. providing a start time.
#: actions/newevent.php:201
msgid "Event must have a start time."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event without
#. providing an end time.
#: actions/newevent.php:206
msgid "Event must have an end time."
msgstr ""

#. TRANS: Client exception thrown when trying to post an event with an invalid
#. URL.
#: actions/newevent.php:211
msgid "URL must be valid."
msgstr ""

#. TRANS: Page title after sending a notice.
#. TRANS: Page title after creating an event.
#: actions/newevent.php:250 actions/cancelrsvp.php:156 actions/newrsvp.php:161
msgid "Event saved"
msgstr ""

#. TRANS: Title for RSVP ("please respond") action.
#: actions/cancelrsvp.php:61
msgctxt "TITLE"
msgid "Cancel RSVP"
msgstr ""

#. TRANS: Client exception thrown when referring to a non-existing RSVP
#. ("please respond") item.
#. TRANS: Client exception thrown when referring to a non-existing RSVP.
#. TRANS: RSVP stands for "Please reply".
#: actions/cancelrsvp.php:82 actions/cancelrsvp.php:89 actions/showrsvp.php:61
#: actions/showrsvp.php:77
msgid "No such RSVP."
msgstr ""

#. TRANS: Client exception thrown when referring to a non-existing event.
#: actions/cancelrsvp.php:96 actions/showevent.php:60 actions/showevent.php:68
#: actions/newrsvp.php:82 actions/newrsvp.php:89 actions/showrsvp.php:68
msgid "No such event."
msgstr ""

#. TRANS: Client exception thrown when trying tp RSVP ("please respond") while
#. not logged in.
#. TRANS: Client exception thrown when trying to RSVP ("please respond") while
#. not logged in.
#: actions/cancelrsvp.php:103 actions/newrsvp.php:96
msgid "You must be logged in to RSVP for an event."
msgstr ""

#. TRANS: Title for RSVP ("please respond") action.
#: actions/newrsvp.php:61
msgctxt "TITLE"
msgid "New RSVP"
msgstr ""

#. TRANS: Client exception thrown when using an invalid value for RSVP
#. ("please respond").
#: actions/newrsvp.php:113
msgid "Unknown submit value."
msgstr ""

#. TRANS: Title for event.
#. TRANS: %1$s is a user nickname, %2$s is an event title.
#: actions/showrsvp.php:94
#, php-format
msgid "%1$s's RSVP for \"%2$s\""
msgstr ""

#. TRANS: Error message displayed when trying to perform an action that
#. requires a logged in user.
#: actions/timelist.php:65
msgid "Not logged in."
msgstr "未登錄。"

#. TRANS: Client error when submitting a form with unexpected information.
#: actions/timelist.php:72
msgid "Unexpected form submission."
msgstr ""

#. TRANS: Client error displayed when using an action in a non-AJAX way.
#: actions/timelist.php:80
msgid "This action is AJAX only."
msgstr ""

#. TRANS: Client exception thrown when trying to create an event that already
#. exists.
#: classes/Happening.php:111
msgid "Event already exists."
msgstr ""

#. TRANS: Event description. %1$s is a title, %2$s is start time, %3$s is end
#. time,
#. TRANS: %4$s is location, %5$s is a description.
#: classes/Happening.php:145
#, php-format
msgid "\"%1$s\" %2$s - %3$s (%4$s): %5$s"
msgstr ""

#. TRANS: Rendered microformats2 tagged event description.
#. TRANS: %1$s is a title, %2$s is start time, %3$s is start time,
#. TRANS: %4$s is end time, %5$s is end time, %6$s is location, %7$s is
#. description.
#. TRANS: Class names should not be translated.
#: classes/Happening.php:156
#, php-format
msgid ""
"

%1$s
 <time class"
"=\"dt-start\" datetime=\"%2$s\">%3$s</time> - <time class=\"dt-end\" "
"datetime=\"%4$s\">%5$s</time> (%6$s):
%7$s

"
msgstr ""

#. TRANS: Client exception thrown when trying to save an already existing RSVP
#. ("please respond").
#: classes/RSVP.php:116 classes/RSVP.php:125
msgid "RSVP already exists."
msgstr ""

#. TRANS: Exception thrown when requesting an undefined verb for RSVP.
#: classes/RSVP.php:194
#, php-format
msgid "Unknown verb \"%s\"."
msgstr ""

#. TRANS: Exception thrown when requesting an undefined code for RSVP.
#: classes/RSVP.php:212
#, php-format
msgid "Unknown code \"%s\"."
msgstr ""

#. TRANS: Server exception thrown when requesting a non-exsting notice for an
#. RSVP ("please respond").
#. TRANS: %s is the RSVP with the missing notice.
#: classes/RSVP.php:222
#, php-format
msgid "RSVP %s does not correspond to a notice in the database."
msgstr ""

#. TRANS: Exception thrown when requesting a non-existing profile.
#. TRANS: %s is the ID of the non-existing profile.
#: classes/RSVP.php:284
#, php-format
msgid "No profile with ID %s."
msgstr ""

#. TRANS: Exception thrown when requesting a non-existing event.
#. TRANS: %s is the ID of the non-existing event.
#: classes/RSVP.php:295
#, php-format
msgid "No event with ID %s."
msgstr ""

#. TRANS: HTML version of an RSVP ("please respond") status for a user.
#. TRANS: %1$s is a profile URL, %2$s a profile name,
#. TRANS: %3$s is an event URL, %4$s an event title.
#: classes/RSVP.php:327
#, php-format
msgid ""
"%2$s is attending %4$s."
msgstr ""

#. TRANS: HTML version of an RSVP ("please respond") status for a user.
#. TRANS: %1$s is a profile URL, %2$s a profile name,
#. TRANS: %3$s is an event URL, %4$s an event title.
#: classes/RSVP.php:333
#, php-format
msgid ""
"%2$s is not attending "
"%4$s."
msgstr ""

#. TRANS: HTML version of an RSVP ("please respond") status for a user.
#. TRANS: %1$s is a profile URL, %2$s a profile name,
#. TRANS: %3$s is an event URL, %4$s an event title.
#: classes/RSVP.php:339
#, php-format
msgid ""
"%2$s might attend %4$s."
msgstr ""

#. TRANS: Exception thrown when requesting a user's RSVP status for a non-
#. existing response code.
#. TRANS: %s is the non-existing response code.
#: classes/RSVP.php:344 classes/RSVP.php:388
#, php-format
msgid "Unknown response code %s."
msgstr ""

#. TRANS: Used as event title when not event title is available.
#. TRANS: Used as: Username [is [not ] attending|might attend] an unknown
#. event.
#: classes/RSVP.php:351 classes/RSVP.php:395
msgid "an unknown event"
msgstr ""

#. TRANS: Plain text version of an RSVP ("please respond") status for a user.
#. TRANS: %1$s is a profile name, %2$s is an event title.
#: classes/RSVP.php:373
#, php-format
msgid "%1$s is attending %2$s."
msgstr ""

#. TRANS: Plain text version of an RSVP ("please respond") status for a user.
#. TRANS: %1$s is a profile name, %2$s is an event title.
#: classes/RSVP.php:378
#, php-format
msgid "%1$s is not attending %2$s."
msgstr ""

#. TRANS: Plain text version of an RSVP ("please respond") status for a user.
#. TRANS: %1$s is a profile name, %2$s is an event title.
#: classes/RSVP.php:383
#, php-format
msgid "%1$s might attend %2$s."
msgstr ""

#. TRANS: Plugin description.
#: EventPlugin.php:101
msgid "Event invitations and RSVPs."
msgstr ""

#. TRANS: Title for event application.
#: EventPlugin.php:107
msgctxt "TITLE"
msgid "Event"
msgstr ""

#. TRANS: Exception thrown when there are too many activity objects.
#: EventPlugin.php:135
msgid "Too many activity objects."
msgstr ""

#. TRANS: Exception thrown when event plugin comes across a non-event type
#. object.
#: EventPlugin.php:142
msgid "Wrong type for object."
msgstr ""

#. TRANS: Exception thrown when trying to RSVP for an unknown event.
#: EventPlugin.php:166
msgid "RSVP for unknown event."
msgstr ""

#. TRANS: Exception thrown when event plugin comes across a undefined verb.
#: EventPlugin.php:172
msgid "Unknown verb for events."
msgstr ""

#. TRANS: Exception thrown when event plugin comes across a unknown object
#. type.
#: EventPlugin.php:203
msgid "Unknown object type."
msgstr ""

#. TRANS: Exception thrown when referring to a notice that is not an event an
#. in event context.
#: EventPlugin.php:210
msgid "Unknown event notice."
msgstr ""

#. TRANS: Content for a deleted RSVP list item (RSVP stands for "please
#. respond").
#: EventPlugin.php:342 EventPlugin.php:474
msgid "Deleted."
msgstr ""

#. TRANS: Field label for event description.
#: EventPlugin.php:389
msgid "Time:"
msgstr ""

#. TRANS: Field label for event description.
#: EventPlugin.php:406
msgid "Location:"
msgstr ""

#. TRANS: Field label for event description.
#: EventPlugin.php:414
msgid "Description:"
msgstr ""

#. TRANS: Field label for event description.
#: EventPlugin.php:424
msgid "Attending:"
msgstr ""

#. TRANS: 0 minutes abbreviated. Used in a list.
#: lib/eventtimelist.php:85
msgid "(0 min)"
msgstr ""

#. TRANS: 30 minutes abbreviated. Used in a list.
#: lib/eventtimelist.php:89
msgid "(30 min)"
msgstr ""

#. TRANS: 1 hour. Used in a list.
#: lib/eventtimelist.php:93
msgid "(1 hour)"
msgstr ""

#: lib/eventtimelist.php:98
#, php-format
msgid "(%.1f hours)"
msgstr ""

#: lib/eventtimelist.php:99
#, php-format
msgid "(%d hours)"
msgstr ""


code:
<?php
/*
 * StatusNet - the distributed open-source microblogging tool
 * Copyright (C) 2011, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (!defined('STATUSNET')) {
    exit(1);
}

/**
 * Extra profile bio-like fields
 *
 * @package ExtendedProfilePlugin
 * @maintainer Brion Vibber <brion@status.net>
 */
class ExtendedProfilePlugin extends Plugin
{
    const PLUGIN_VERSION = '2.0.0';

    function onPluginVersion(array &$versions)
    {
        $versions[] = array(
            'name' => 'ExtendedProfile',
            'version' => self::PLUGIN_VERSION,
            'author' => 'Brion Vibber, Samantha Doherty, Zach Copley',
            'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ExtendedProfile',
            // TRANS: Plugin description.
            'rawdescription' => _m('UI extensions for additional profile fields.')
        );

        return true;
    }

    /**
     * Add paths to the router table
     *
     * Hook for RouterInitialized event.
     *
     * @param URLMapper $m URL mapper
     *
     * @return boolean hook return
     */
    public function onStartInitializeRouter(URLMapper $m)
    {
        $m->connect(
            ':nickname/detail',
            array('action' => 'profiledetail'),
            array('nickname' => Nickname::DISPLAY_FMT)
        );
        $m->connect(
            '/settings/profile/finduser',
            array('action' => 'Userautocomplete')
        );
        $m->connect(
            'settings/profile/detail',
            array('action' => 'profiledetailsettings')
        );

        return true;
    }

    function onCheckSchema()
    {
        $schema = Schema::get();
        $schema->ensureTable('profile_detail', Profile_detail::schemaDef());

        return true;
    }

    function onEndShowAccountProfileBlock(HTMLOutputter $out, Profile $profile) {
        $user = User::getKV('id', $profile->id);
        if ($user) {
            $url = common_local_url('profiledetail', array('nickname' => $user->nickname));
            // TRANS: Link text on user profile page leading to extended profile page.
            $out->element('a', array('href' => $url, 'class' => 'profiledetail'), _m('More details...'));
        }
    }
}

repo_name: andremichelle/gnu

license: mit


code:
The ExtendedProfile plugin adds additional profile fields such as:

* Phone
* IM
* Website
* Work experience
* Education

Installation
============
add "addPlugin('ExtendedProfile');"
to the bottom of your config.php

Note: This plugin is enabled by default on private instances.

Settings
========
none

Example
=======
addPlugin('ExtendedProfile');

path: plugins/ExtendedProfile/README


code:
<?php
/*
 * StatusNet - the distributed open-source microblogging tool
 * Copyright (C) 2011, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (!defined('GNUSOCIAL')) { exit(1); }

class ProfileDetailAction extends ShowstreamAction
{
    function isReadOnly($args)
    {
        return true;
    }

    function title()
    {
        return $this->target->getFancyName();
    }

    function showStylesheets() {
        parent::showStylesheets();
        $this->cssLink('plugins/ExtendedProfile/css/profiledetail.css');
        return true;
    }

    function showContent()
    {
        $cur = common_current_user();
        if ($this->scoped instanceof Profile && $this->scoped->sameAs($this->target)) {
            $this->elementStart('div', 'entity_actions');
            $this->elementStart('ul');
            $this->elementStart('li', 'entity_edit');
            $this->element('a', array('href' => common_local_url('profiledetailsettings'),
                                      // TRANS: Link title for link on user profile.
                                      'title' => _m('Edit extended profile settings')),
                           // TRANS: Link text for link on user profile.
                           _m('Edit'));
            $this->elementEnd('li');
            $this->elementEnd('ul');
            $this->elementEnd('div');
        }

        $widget = new ExtendedProfileWidget($this, $this->target);
        $widget->show();
    }
}


code:
<?php
/*
 * StatusNet - the distributed open-source microblogging tool
 * Copyright (C) 2011, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (!defined('GNUSOCIAL')) { exit(1); }

class ProfileDetailSettingsAction extends ProfileSettingsAction
{
    function title()
    {
        // TRANS: Title for extended profile settings.
        return _m('Extended profile settings');
    }

    function showStylesheets() {
        parent::showStylesheets();
        $this->cssLink('plugins/ExtendedProfile/css/profiledetail.css');
        return true;
    }

    function  showScripts() {
        parent::showScripts();
        $this->script('plugins/ExtendedProfile/js/profiledetail.js');
        return true;
    }

    protected function doPost()
    {
        if ($this->arg('save')) {
            return $this->saveDetails();
        }

        // TRANS: Message given submitting a form with an unknown action.
        throw new ClientException(_m('Unexpected form submission.'));
    }

    function showContent()
    {
        $widget = new ExtendedProfileWidget(
            $this,
            $this->scoped,
            ExtendedProfileWidget::EDITABLE
        );
        $widget->show();
    }

    function saveDetails()
    {
        common_debug(var_export($_POST, true));

        $this->saveStandardProfileDetails();

        $simpleFieldNames = array('title', 'spouse', 'kids', 'manager');
        $dateFieldNames   = array('birthday');

        foreach ($simpleFieldNames as $name) {
            $value = $this->trimmed('extprofile-' . $name);
            if (!empty($value)) {
                $this->saveField($name, $value);
            }
        }

        foreach ($dateFieldNames as $name) {
            $value = $this->trimmed('extprofile-' . $name);
            $dateVal = $this->parseDate($name, $value);
            $this->saveField(
                $name,
                null,
                null,
                null,
                $dateVal
            );
        }

        $this->savePhoneNumbers();
        $this->saveIms();
        $this->saveWebsites();
        $this->saveExperiences();
        $this->saveEducations();

        // TRANS: Success message after saving extended profile details.
        return _m('Details saved.');

    }

    function parseDate($fieldname, $datestr, $required = false)
    {
        if (empty($datestr)) {
            if ($required) {
                $msg = sprintf(
                    // TRANS: Exception thrown when no date was entered in a required date field.
                    // TRANS: %s is the field name.
                    _m('You must supply a date for "%s".'),
                    $fieldname
                );
                throw new Exception($msg);
            }
        } else {
            $ts = strtotime($datestr);
            if ($ts === false) {
                throw new Exception(
                    sprintf(
                        // TRANS: Exception thrown on incorrect data input.
                        // TRANS: %1$s is a field name, %2$s is the incorrect input.
                        _m('Invalid date entered for "%1$s": %2$s.'),
                        $fieldname,
                        $ts
                    )
                );
            }
            return common_sql_date($ts);
        }
        return null;
    }

    function savePhoneNumbers() {
        $phones = $this->findPhoneNumbers();
        $this->removeAll('phone');
        $i = 0;
        foreach($phones as $phone) {
            if (!empty($phone['value'])) {
                ++$i;
                $this->saveField(
                    'phone',
                    $phone['value'],
                    $phone['rel'],
                    $i
                );
            }
        }
    }

    function findPhoneNumbers() {

        // Form vals look like this:
        // 'extprofile-phone-1' => '11332',
        // 'extprofile-phone-1-rel' => 'mobile',

        $phones     = $this->sliceParams('phone', 2);
        $phoneArray = array();

        foreach ($phones as $phone) {
            list($number, $rel) = array_values($phone);
            $phoneArray[] = array(
                'value' => $number,
                'rel'   => $rel
            );
        }

        return $phoneArray;
    }

    function findIms() {

        //  Form vals look like this:
        // 'extprofile-im-0' => 'jed',
        // 'extprofile-im-0-rel' => 'yahoo',

        $ims     = $this->sliceParams('im', 2);
        $imArray = array();

        foreach ($ims as $im) {
            list($id, $rel) = array_values($im);
            $imArray[] = array(
                'value' => $id,
                'rel'   => $rel
            );
        }

        return $imArray;
    }

    function saveIms() {
        $ims = $this->findIms();
        $this->removeAll('im');
        $i = 0;
        foreach($ims as $im) {
            if (!empty($im['value'])) {
                ++$i;
                $this->saveField(
                    'im',
                    $im['value'],
                    $im['rel'],
                    $i
                );
            }
        }
    }

    function findWebsites() {

        //  Form vals look like this:

        $sites = $this->sliceParams('website', 2);
        $wsArray = array();

        foreach ($sites as $site) {
            list($id, $rel) = array_values($site);
            $wsArray[] = array(
                'value' => $id,
                'rel'   => $rel
            );
        }

        return $wsArray;
    }

    function saveWebsites() {
        $sites = $this->findWebsites();
        $this->removeAll('website');
        $i = 0;
        foreach($sites as $site) {
            if (!empty($site['value']) && !common_valid_http_url($site['value'])) {
                // TRANS: Exception thrown when entering an invalid URL.
                // TRANS: %s is the invalid URL.
                throw new Exception(sprintf(_m('Invalid URL: %s.'), $site['value']));
            }

            if (!empty($site['value'])) {
                ++$i;
                $this->saveField(
                    'website',
                    $site['value'],
                    $site['rel'],
                    $i
                );
            }
        }
    }

    function findExperiences() {

        // Form vals look like this:
        // 'extprofile-experience-0'         => 'Bozotronix',
        // 'extprofile-experience-0-current' => 'true'
        // 'extprofile-experience-0-start'   => '1/5/10',
        // 'extprofile-experience-0-end'     => '2/3/11',

        $experiences = $this->sliceParams('experience', 4);
        $expArray = array();

        foreach ($experiences as $exp) {
            if (sizeof($experiences) == 4) {
                list($company, $current, $end, $start) = array_values($exp);
            } else {
                $end = null;
                list($company, $current, $start) = array_values($exp);
            }
            if (!empty($company)) {
                $expArray[] = array(
                    'company' => $company,
                    'start'   => $this->parseDate('Start', $start, true),
                    'end'     => ($current == 'false') ? $this->parseDate('End', $end, true) : null,
                    'current' => ($current == 'false') ? false : true
                );
            }
        }

        return $expArray;
    }

    function saveExperiences() {
        common_debug('save experiences');
        $experiences = $this->findExperiences();

        $this->removeAll('company');
        $this->removeAll('start');
        $this->removeAll('end'); // also stores 'current'

        $i = 0;
        foreach($experiences as $experience) {
            if (!empty($experience['company'])) {
                ++$i;
                $this->saveField(
                    'company',
                    $experience['company'],
                    null,
                    $i
                );

                $this->saveField(
                    'start',
                    null,
                    null,
                    $i,
                    $experience['start']
                );

                // Save "current" employer indicator in rel
                if ($experience['current']) {
                    $this->saveField(
                        'end',
                        null,
                        'current', // rel
                        $i
                    );
                } else {
                    $this->saveField(
                        'end',
                        null,
                        null,
                        $i,
                        $experience['end']
                    );
                }

            }
        }
    }

    function findEducations() {

        // Form vals look like this:
        // 'extprofile-education-0-school' => 'Pigdog',
        // 'extprofile-education-0-degree' => 'BA',
        // 'extprofile-education-0-description' => 'Blar',
        // 'extprofile-education-0-start' => '05/22/99',
        // 'extprofile-education-0-end' => '05/22/05',

        $edus = $this->sliceParams('education', 5);
        $eduArray = array();

        foreach ($edus as $edu) {
            list($school, $degree, $description, $end, $start) = array_values($edu);
            if (!empty($school)) {
                $eduArray[] = array(
                    'school'      => $school,
                    'degree'      => $degree,
                    'description' => $description,
                    'start'       => $this->parseDate('Start', $start, true),
                    'end'         => $this->parseDate('End', $end, true)
                );
            }
        }

        return $eduArray;
    }

    function saveEducations() {
         common_debug('save education');
         $edus = $this->findEducations();
         common_debug(var_export($edus, true));

         $this->removeAll('school');
         $this->removeAll('degree');
         $this->removeAll('degree_descr');
         $this->removeAll('school_start');
         $this->removeAll('school_end');

         $i = 0;
         foreach($edus as $edu) {
             if (!empty($edu['school'])) {
                 ++$i;
                 $this->saveField(
                     'school',
                     $edu['school'],
                     null,
                     $i
                 );
                 $this->saveField(
                     'degree',
                     $edu['degree'],
                     null,
                     $i
                 );
                 $this->saveField(
                     'degree_descr',
                     $edu['description'],
                     null,
                     $i
                 );
                 $this->saveField(
                     'school_start',
                     null,
                     null,
                     $i,
                     $edu['start']
                 );

                 $this->saveField(
                     'school_end',
                     null,
                     null,
                     $i,
                     $edu['end']
                 );
            }
         }
     }

    function arraySplit($array, $pieces)
    {
        if ($pieces < 2) {
            return array($array);
        }

        $newCount = ceil(count($array) / $pieces);
        $a = array_slice($array, 0, $newCount);
        $b = $this->arraySplit(array_slice($array, $newCount), $pieces - 1);

        return array_merge(array($a), $b);
    }

    function findMultiParams($type) {
        $formVals = array();
        $target   = $type;
        foreach ($_POST as $key => $val) {
            if (strrpos('extprofile-' . $key, $target) !== false) {
                $formVals[$key] = $val;
            }
        }
        return $formVals;
    }

    function sliceParams($key, $size) {
        $slice = array();
        $params = $this->findMultiParams($key);
        ksort($params);
        $slice = $this->arraySplit($params, sizeof($params) / $size);
        return $slice;
    }

    /**
     * Save an extended profile field as a Profile_detail
     *
     * @param string $name    field name
     * @param string $value   field value
     * @param string $rel     field rel (type)
     * @param int    $index   index (fields can have multiple values)
     * @param date   $date    related date
     */
    function saveField($name, $value, $rel = null, $index = null, $date = null)
    {
        $detail  = new Profile_detail();

        $detail->profile_id  = $this->scoped->getID();
        $detail->field_name  = $name;
        $detail->value_index = $index;

        $result = $detail->find(true);

        if (!$result instanceof Profile_detail) {
            $detail->value_index = $index;
            $detail->rel         = $rel;
            $detail->field_value = $value;
            $detail->date        = $date;
            $detail->created     = common_sql_now();
            $result = $detail->insert();
            if ($result === false) {
                common_log_db_error($detail, 'INSERT', __FILE__);
                // TRANS: Server error displayed when a field could not be saved in the database.
                throw new ServerException(_m('Could not save profile details.'));
            }
        } else {
            $orig = clone($detail);

            $detail->field_value = $value;
            $detail->rel         = $rel;
            $detail->date        = $date;

            $result = $detail->update($orig);
            if ($result === false) {
                common_log_db_error($detail, 'UPDATE', __FILE__);
                // TRANS: Server error displayed when a field could not be saved in the database.
                throw new ServerException(_m('Could not save profile details.'));
            }
        }

        $detail->free();
    }

    function removeAll($name)
    {
        $detail  = new Profile_detail();
        $detail->profile_id  = $this->scoped->getID();
        $detail->field_name  = $name;
        $detail->delete();
        $detail->free();
    }

    /**
     * Save fields that should be stored in the main profile object
     *
     * XXX: There's a lot of dupe code here from ProfileSettingsAction.
     *      Do not want.
     */
    function saveStandardProfileDetails()
    {
        $fullname  = $this->trimmed('extprofile-fullname');
        $location  = $this->trimmed('extprofile-location');
        $tagstring = $this->trimmed('extprofile-tags');
        $bio       = $this->trimmed('extprofile-bio');

        if ($tagstring) {
            $tags = array_map(
                'common_canonical_tag',
                preg_split('/[\s,]+/', $tagstring)
            );
        } else {
            $tags = array();
        }

        foreach ($tags as $tag) {
            if (!common_valid_profile_tag($tag)) {
                // TRANS: Validation error in form for profile settings.
                // TRANS: %s is an invalid tag.
                throw new Exception(sprintf(_m('Invalid tag: "%s".'), $tag));
            }
        }

        $oldTags = Profile_tag::getSelfTagsArray($this->scoped);
        $newTags = array_diff($tags, $oldTags);

        if ($fullname    != $this->scoped->getFullname()
            || $location != $this->scoped->location
            || !empty($newTags)
            || $bio      != $this->scoped->getDescription()) {

            $orig = clone($this->scoped);

            // Skipping nickname change here until we add logic for when the site allows it or not
            // old Profilesettings will still let us do that.

            $this->scoped->fullname = $fullname;
            $this->scoped->bio      = $bio;
            $this->scoped->location = $location;

            $loc = Location::fromName($location);

            if (empty($loc)) {
                $this->scoped->lat         = null;
                $this->scoped->lon         = null;
                $this->scoped->location_id = null;
                $this->scoped->location_ns = null;
            } else {
                $this->scoped->lat         = $loc->lat;
                $this->scoped->lon         = $loc->lon;
                $this->scoped->location_id = $loc->location_id;
                $this->scoped->location_ns = $loc->location_ns;
            }

            $result = $this->scoped->update($orig);

            if ($result === false) {
                common_log_db_error($this->scoped, 'UPDATE', __FILE__);
                // TRANS: Server error thrown when user profile settings could not be saved.
                throw new ServerException(_m('Could not save profile.'));
            }

            // Set the user tags
            $result = Profile_tag::setSelfTags($this->scoped, $tags);

            Event::handle('EndProfileSaveForm', array($this));
        }
    }

}


code:
<?php
/**
 * StatusNet, the distributed open-source microblogging tool
 *
 * Action for showing Twitter-like JSON search results
 *
 * PHP version 5
 *
 * LICENCE: This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @category  Search
 * @package   StatusNet
 * @author    Zach Copley <zach@status.net>
 * @copyright 2011 StatusNet, Inc.
 * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
 * @link      http://status.net/
 */

if (!defined('STATUSNET')) {
    exit(1);
}

class UserautocompleteAction extends Action
{
    var $query;

    /**
     * Initialization.
     *
     * @param array $args Web and URL arguments
     *
     * @return boolean true if nothing goes wrong
     */
    function prepare(array $args = array())
    {
        parent::prepare($args);
        $this->query = $this->trimmed('term');
        return true;
    }

    /**
     * Handle a request
     *
     * @param array $args Arguments from $_REQUEST
     *
     * @return void
     */
    function handle()
    {
        parent::handle();
        $this->showResults();
    }

    /**
     * Search for users matching the query and spit the results out
     * as a quick-n-dirty JSON document
     *
     * @return void
     */
    function showResults()
    {
        $people = array();

        $profile = new Profile();

        $search_engine = $profile->getSearchEngine('profile');
        $search_engine->set_sort_mode('nickname_desc');
        $search_engine->limit(0, 10);
        $search_engine->query(strtolower($this->query . '*'));

        $cnt = $profile->find();

        if ($cnt > 0) {

            $sql = 'SELECT profile.* FROM profile, user WHERE profile.id = user.id '
                . ' AND LEFT(LOWER(profile.nickname), '
                . strlen($this->query)
                . ') = \'%s\' '
                . ' LIMIT 0, 10';

            $profile->query(sprintf($sql, $this->query));
        }

        while ($profile->fetch()) {
             $people[] = $profile->nickname;
        }

        header('Content-Type: application/json; charset=utf-8');
        print json_encode($people);
    }

    /**
     * Do we need to write to the database?
     *
     * @return boolean true
     */
    function isReadOnly($args)
    {
        return true;
    }
}


code:
<?php
/*
 * StatusNet - the distributed open-source microblogging tool
 * Copyright (C) 2011, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (!defined('STATUSNET')) {
    exit(1);
}

/**
 * DataObject class to store extended profile fields. Allows for storing
 * multiple values per a "field_name" (field_name property is not unique).
 *
 * Example:
 *
 *     Jed's Phone Numbers
 *     home  : 510-384-1992
 *     mobile: 510-719-1139
 *     work  : 415-231-1121
 *
 * We can store these phone numbers in a "field" represented by three
 * Profile_detail objects, each named 'phone_number' like this:
 *
 *     $phone1 = new Profile_detail();
 *     $phone1->field_name  = 'phone_number';
 *     $phone1->rel         = 'home';
 *     $phone1->field_value = '510-384-1992';
 *     $phone1->value_index = 1;
 *
 *     $phone1 = new Profile_detail();
 *     $phone1->field_name  = 'phone_number';
 *     $phone1->rel         = 'mobile';
 *     $phone1->field_value = '510-719-1139';
 *     $phone1->value_index = 2;
 *
 *     $phone1 = new Profile_detail();
 *     $phone1->field_name  = 'phone_number';
 *     $phone1->rel         = 'work';
 *     $phone1->field_value = '415-231-1121';
 *     $phone1->value_index = 3;
 *
 */
class Profile_detail extends Managed_DataObject
{
    public $__table = 'profile_detail';

    public $id;
    public $profile_id;  // profile this is for
    public $rel;         // detail for some field types; eg "home", "mobile", "work" for phones or "aim", "irc", "xmpp" for IM
    public $field_name;  // name
    public $field_value; // primary text value
    public $value_index; // relative ordering of multiple values in the same field
    public $date;        // related date
    public $ref_profile; // for people types, allows pointing to a known profile in the system
    public $created;
    public $modified;

    static function schemaDef()
    {
        return array(
            // No need for i18n. Table properties.
            'description'
                => 'Additional profile details for the ExtendedProfile plugin',
            'fields'      => array(
                'id'          => array('type' => 'serial', 'not null' => true),
                'profile_id'  => array('type' => 'int', 'not null' => true),
                'field_name'  => array(
                    'type'     => 'varchar',
                    'length'   => 16,
                    'not null' => true
                ),
                'value_index' => array('type' => 'int'),
                'field_value' => array('type' => 'text'),
                'date'        => array('type' => 'datetime'),
                'rel'         => array('type' => 'varchar', 'length' => 16),
                'rel_profile' => array('type' => 'int'),
                'created'     => array(
                    'type'     => 'datetime',
                    'not null' => true
                 ),
                'modified'    => array(
                    'type' => 'timestamp',
                    'not null' => true
                ),
            ),
            'primary key' => array('id'),
            'unique keys' => array(
                'profile_detail_profile_id_field_name_value_index'
                    => array('profile_id', 'field_name', 'value_index'),
            )
        );
    }
}


code:
<?php
/*
 * StatusNet - the distributed open-source microblogging tool
 * Copyright (C) 2011, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (!defined('STATUSNET')) {
    exit(1);
}

/**
 * Class to represent extended profile data
 */
class ExtendedProfile
{
    protected $fields;

    /**
     * Constructor
     *
     * @param Profile $profile
     */
    function __construct(Profile $profile)
    {
        $this->profile  = $profile;
        $this->user     = $profile->getUser();
        $this->fields   = $this->loadFields();
        $this->sections = $this->getSections();
        //common_debug(var_export($this->sections, true));

        //common_debug(var_export($this->fields, true));
    }

    /**
     * Load extended profile fields
     *
     * @return array $fields the list of fields
     */
    function loadFields()
    {
        $detail = new Profile_detail();
        $detail->profile_id = $this->profile->getID();
        $detail->find();

        $fields = array();

        while ($detail->fetch()) {
            $fields[$detail->field_name][] = clone($detail);
        }

        return $fields;
    }

    /**
     * Get a the self-tags associated with this profile
     *
     * @return string the concatenated string of tags
     */
    function getTags()
    {
        return implode(' ', Profile_tag::getSelfTagsArray($this->profile));
    }

    /**
     * Return a simple string value. Checks for fields that should
     * be stored in the regular profile and returns values from it
     * if appropriate.
     *
     * @param string $name name of the detail field to get the
     *                     value from
     *
     * @return string the value
     */
    function getTextValue($name)
    {
        $key           = strtolower($name);
        $profileFields = array('fullname', 'location', 'bio');

        if (in_array($key, $profileFields)) {
            return $this->profile->$name;
        } else if (array_key_exists($key, $this->fields)) {
            return $this->fields[$key][0]->field_value;
        } else {
            return null;
        }
    }

    function getDateValue($name) {
        $key = strtolower($name);
        if (array_key_exists($key, $this->fields)) {
            return $this->fields[$key][0]->date;
        } else {
            return null;
        }
    }

    // XXX: getPhones, getIms, and getWebsites pretty much do the same thing,
    //      so refactor.
    function getPhones()
    {
        $phones = (isset($this->fields['phone'])) ? $this->fields['phone'] : null;
        $pArrays = array();

        if (empty($phones)) {
            $pArrays[] = array(
                // TRANS: Field label for extended profile properties.
                'label' => _m('Phone'),
                'index' => 0,
                'type'  => 'phone',
                'vcard' => 'tel',
                'rel'   => 'office',
                'value' => null
            );
        } 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),
                    'rel'   => $phones[$i]->rel,
                    'value' => $phones[$i]->field_value,
                    'vcard' => 'tel'
                );

               $pArrays[] = $pa;
            }
        }
        return $pArrays;
    }

    function getIms()
    {
        $ims = (isset($this->fields['im'])) ? $this->fields['im'] : null;
        $iArrays = array();

        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),
                    'rel'   => $ims[$i]->rel,
                    'value' => $ims[$i]->field_value,
                );

                $iArrays[] = $ia;
            }
        }
        return $iArrays;
    }

    function getWebsites()
    {
        $sites = (isset($this->fields['website'])) ? $this->fields['website'] : null;
        $wArrays = array();

        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),
                    'rel'   => $sites[$i]->rel,
                    'value' => $sites[$i]->field_value,
                );

                $wArrays[] = $wa;
            }
        }
        return $wArrays;
    }

    function getExperiences()
    {
        $companies = (isset($this->fields['company'])) ? $this->fields['company'] : null;
        $start = (isset($this->fields['start'])) ? $this->fields['start'] : null;
        $end   = (isset($this->fields['end'])) ? $this->fields['end'] : null;

        $eArrays = array();

        if (empty($companies)) {
            $eArrays[] = array(
                // TRANS: Field label for extended profile properties.
                'label'   => _m('Employer'),
                'type'    => 'experience',
                'company' => null,
                'start'   => null,
                'end'     => null,
                'current' => false,
                'index'   => 0
            );
        } 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,
                    'index'   => intval($companies[$i]->value_index),
                    'current' => $end[$i]->rel,
                    'start'   => $start[$i]->date,
                    'end'     => $end[$i]->date
                );
               $eArrays[] = $ea;
            }
        }
        return $eArrays;
    }

    function getEducation()
    {
        $schools = (isset($this->fields['school'])) ? $this->fields['school'] : null;
        $degrees = (isset($this->fields['degree'])) ? $this->fields['degree'] : null;
        $descs = (isset($this->fields['degree_descr'])) ? $this->fields['degree_descr'] : null;
        $start = (isset($this->fields['school_start'])) ? $this->fields['school_start'] : null;
        $end = (isset($this->fields['school_end'])) ? $this->fields['school_end'] : null;
        $iArrays = array();

        if (empty($schools)) {
            $iArrays[] = array(
                'type' => 'education',
                // TRANS: Field label for extended profile properties.
                'label' => _m('Institution'),
                'school' => null,
                'degree' => null,
                'description' => null,
                'start' => null,
                'end' => null,
                'index' => 0
            );
        } else {
            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,
                    'description' => isset($descs[$i]->field_value) ? $descs[$i]->field_value : null,
                    'index'   => intval($schools[$i]->value_index),
                    'start'   => $start[$i]->date,
                    'end'     => $end[$i]->date
                );
               $iArrays[] = $ia;
            }
        }

        return $iArrays;
    }

    /**
     *  Return all the sections of the extended profile
     *
     * @return array the big list of sections and fields
     */
    function getSections()
    {
        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(),
                    'im'      => $this->getIms(),
                    'website' => $this->getWebsites()
                ),
            ),
            '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()
                ),
            ),
        );
    }
}


code:
<?php
/*
 * StatusNet - the distributed open-source microblogging tool
 * Copyright (C) 2011, StatusNet, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (!defined('STATUSNET')) {
    exit(1);
}

/**
 * Class for outputting a widget to display or edit
 * extended profiles
 */
class ExtendedProfileWidget extends Form
{
    const EDITABLE = true;

    /**
     * The parent profile
     *
     * @var Profile
     */
    protected $profile;

    /**
     * The extended profile
     *
     * @var Extended_profile
     */
    protected $ext;

    /**
     * Constructor
     *
     * @param XMLOutputter  $out
     * @param Profile       $profile
     * @param boolean       $editable
     */
    public function __construct(XMLOutputter $out=null, Profile $profile=null, $editable=false)
    {
        parent::__construct($out);

        $this->profile = $profile;
        $this->ext = new ExtendedProfile($this->profile);

        $this->editable = $editable;
    }

    /**
     * Show the extended profile, or the edit form
     */
    public function show()
    {
        if ($this->editable) {
            parent::show();
        } else {
            $this->showSections();
        }
    }

    /**
     * Show form data
     */
    public function formData()
    {
        // For JQuery UI modal dialog
        $this->out->elementStart(
            'div',
            // TRANS: Title for extended profile entry deletion dialog.
            array('id' => 'confirm-dialog', 'title' => _m('Confirmation Required'))
        );
        // TRANS: Confirmation text for extended profile entry deletion dialog.
        $this->out->text(_m('Really delete this entry?'));
        $this->out->elementEnd('div');
        $this->showSections();
    }

    /**
     * Show each section of the extended profile
     */
    public function showSections()
    {
        $sections = $this->ext->getSections();
        foreach ($sections as $name => $section) {
            $this->showExtendedProfileSection($name, $section);
        }
    }

    /**
     * Show an extended profile section
     *
     * @param string $name      name of the section
     * @param array  $section   array of fields for the section
     */
    protected function showExtendedProfileSection($name, $section)
    {
        $this->out->element('h3', null, $section['label']);
        $this->out->elementStart('table', array('class' => 'extended-profile'));

        foreach ($section['fields'] as $fieldName => $field) {

            switch($fieldName) {
            case 'phone':
            case 'im':
            case 'website':
            case 'experience':
            case 'education':
                $this->showMultiple($fieldName, $field);
                break;
            default:
                $this->showExtendedProfileField($fieldName, $field);
            }
        }
        $this->out->elementEnd('table');
    }

    /**
     * Show an extended profile field
     *
     * @param string $name  name of the field
     * @param array  $field set of key/value pairs for the field
     */
    protected function showExtendedProfileField($name, $field)
    {
        $this->out->elementStart('tr');

        $this->out->element('th', str_replace(' ','_',strtolower($field['label'])), $field['label']);

        $this->out->elementStart('td');
        if ($this->editable) {
            $this->showEditableField($name, $field);
        } else {
            $this->showFieldValue($name, $field);
        }
        $this->out->elementEnd('td');

        $this->out->elementEnd('tr');
    }

    protected function showMultiple($name, $fields) {
        foreach ($fields as $field) {
            $this->showExtendedProfileField($name, $field);
        }
    }

    // XXX: showPhone, showIm and showWebsite all work the same, so
    //      combine
    protected function showPhone($name, $field)
    {
        $this->out->elementStart('div', array('class' => 'phone-display'));
        if (!empty($field['value'])) {
            $this->out->text($field['value']);
            if (!empty($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 showIm($name, $field)
    {
        $this->out->elementStart('div', array('class' => 'im-display'));
        $this->out->text($field['value']);
        if (!empty($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 showWebsite($name, $field)
    {
        $this->out->elementStart('div', array('class' => 'website-display'));

        $url = $field['value'];

        $this->out->element(
            "a",
            array(
                'href'   => $url,
                'class'  => 'extended-profile-link',
                'target' => "_blank"
            ),
            $url
        );

        if (!empty($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 showEditableIm($name, $field)
    {
        $index = isset($field['index']) ? $field['index'] : 0;
        $id    = "extprofile-$name-$index";
        $rel   = $id . '-rel';
        $this->out->elementStart(
            'div', array(
                'id' => $id . '-edit',
                'class' => 'im-item'
            )
        );
        $this->out->input(
            $id,
            null,
            isset($field['value']) ? $field['value'] : null
        );
        $this->out->dropdown(
            $id . '-rel',
            'Type',
            array(
                'jabber' => 'Jabber',
                'gtalk'  => 'GTalk',
                'aim'    => 'AIM',
                'yahoo'  => 'Yahoo! Messenger',
                'msn'    => 'MSN',
                'skype'  => 'Skype',
                'other'  => 'Other'
            ),
            null,
            false,
            isset($field['rel']) ? $field['rel'] : null
        );

        $this->showMultiControls();
        $this->out->elementEnd('div');
    }

    protected function showEditablePhone($name, $field)
    {
        $index = isset($field['index']) ? $field['index'] : 0;
        $id    = "extprofile-$name-$index";
        $rel   = $id . '-rel';
        $this->out->elementStart(
            'div', array(
                'id' => $id . '-edit',
                'class' => 'phone-item'
            )
        );
        $this->out->input(
            $id,
            null,
            isset($field['value']) ? $field['value'] : null
        );
        $this->out->dropdown(
            $id . '-rel',
            'Type',
            array(
                'office' => 'Office',
                'mobile' => 'Mobile',
                'home'   => 'Home',
                'pager'  => 'Pager',
                'other'  => 'Other'
            ),
            null,
            false,
            isset($field['rel']) ? $field['rel'] : null
        );

        $this->showMultiControls();
        $this->out->elementEnd('div');
    }

    protected function showEditableWebsite($name, $field)
    {
        $index = isset($field['index']) ? $field['index'] : 0;
        $id    = "extprofile-$name-$index";
        $rel   = $id . '-rel';
        $this->out->elementStart(
            'div', array(
                'id' => $id . '-edit',
                'class' => 'website-item'
            )
        );
        $this->out->input(
            $id,
            null,
            isset($field['value']) ? $field['value'] : null
        );
        $this->out->dropdown(
            $id . '-rel',
            'Type',
            array(
                'blog'     => 'Blog',
                'homepage' => 'Homepage',
                'facebook' => 'Facebook',
                'linkedin' => 'LinkedIn',
                'flickr'   => 'Flickr',
                'other'    => 'Other',
                'twitter'  => 'Twitter'
            ),
            null,
            false,
            isset($field['rel']) ? $field['rel'] : null
        );

        $this->showMultiControls();
        $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 extended profile (when did one start a position or education).
            $this->out->element('div', 'label', _m('Start'));
            $this->out->element(
                'div',
                array('class' => 'field date'),
                date('j M Y', strtotime($field['start'])
                )
            );
            // TRANS: Field label in extended profile (when did one end a position or education).
            $this->out->element('div', 'label', _m('End'));
            $this->out->element(
                'div',
                array('class' => 'field date'),
                date('j M Y', strtotime($field['end'])
                )
            );

            if ($field['current']) {
                $this->out->element(
                    'div',
                    array('class' => 'field current'),
                    // TRANS: Field value in experience area of extended profile (one still holds a position).
                    _m('(Current)')
                );
            }
        }
        $this->out->elementEnd('div');
    }

    protected function showEditableExperience($name, $field)
    {
        $index = isset($field['index']) ? $field['index'] : 0;
        $id    = "extprofile-$name-$index";
        $this->out->elementStart(
            'div', array(
                'id' => $id . '-edit',
                'class' => 'experience-item'
            )
        );

        // 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,
            null,
            isset($field['company']) ? $field['company'] : null
        );

        // TRANS: Field label in extended profile (when did one start a position or education).
        $this->out->element('div', 'label', _m('Start'));
        $this->out->input(
            $id . '-start',
            null,
            isset($field['start']) ? date('j M Y', strtotime($field['start'])) : null
        );

            // TRANS: Field label in extended profile (when did one end a position or education).
        $this->out->element('div', 'label', _m('End'));

        $this->out->input(
            $id . '-end',
            null,
            isset($field['end']) ? date('j M Y', strtotime($field['end'])) : null
        );
        $this->out->hidden(
            $id . '-current',
            'false'
        );
        $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']
        );
        $this->out->elementEnd('div');

        $this->showMultiControls();
        $this->out->elementEnd('div');
    }

    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 extended profile for specifying an academic degree.
            $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 extended profile (when did one start a position or education).
            $this->out->element('div', 'label', _m('Start'));
            $this->out->element(
                'div',
                array('class' => 'field date'),
                date('j M Y', strtotime($field['start'])
                )
            );
            // TRANS: Field label in extended profile (when did one end a position or education).
            $this->out->element('div', 'label', _m('End'));
            $this->out->element(
                'div',
                array('class' => 'field date'),
                date('j M Y', strtotime($field['end'])
                )
            );
        }
        $this->out->elementEnd('div');
    }

    protected function showEditableEducation($name, $field)
    {
        $index = isset($field['index']) ? $field['index'] : 0;
        $id    = "extprofile-$name-$index";
        $this->out->elementStart(
            'div', array(
                'id' => $id . '-edit',
                'class' => 'education-item'
            )
        );
        // TRANS: Field label in education edit area of extended profile.
        $this->out->element('div', 'label', _m('Institution'));
        $this->out->input(
            $id,
            null,
            isset($field['school']) ? $field['school'] : null
        );

        // TRANS: Field label in extended profile for specifying an academic degree.
        $this->out->element('div', 'label', _m('Degree'));
        $this->out->input(
            $id . '-degree',
            null,
            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(
            $id . '-description',
            null,
            isset($field['description']) ? $field['description'] : null
        );

        // TRANS: Field label in extended profile (when did one start a position or 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 extended profile (when did one end a position or 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
        );

        $this->showMultiControls();
        $this->out->elementEnd('div');
    }

    function showMultiControls()
    {
        $this->out->element(
            'a',
            array(
                'class' => 'remove_row',
                'href' => 'javascript://',
                'style' => 'display: none;'
            ),
            '-'
        );

        $this->out->element(
            'a',
            array(
                'class' => 'add_row',
                'href' => 'javascript://',
                'style' => 'display: none;'
            ),
            // TRANS: Link description in extended profile page to add another profile element.
            _m('Add another item')
        );
    }

    /**
     * Outputs the value of a field
     *
     * @param string $name  name of the field
     * @param array  $field set of key/value pairs for the field
     */
    protected function showFieldValue($name, $field)
    {
        $type = strval(@$field['type']);

        switch($type)
        {
        case '':
        case 'text':
        case 'textarea':
            $this->out->text($this->ext->getTextValue($name));
            break;
        case 'date':
            $value = $this->ext->getDateValue($name);
            if (!empty($value)) {
                $this->out->element(
                    'div',
                    array('class' => 'field date'),
                    date('j M Y', strtotime($value))
                );
            }
            break;
        case 'person':
            $this->out->text($this->ext->getTextValue($name));
            break;
        case 'tags':
            $this->out->text($this->ext->getTags());
            break;
        case 'phone':
            $this->showPhone($name, $field);
            break;
        case 'website':
            $this->showWebsite($name, $field);
            break;
        case 'im':
            $this->showIm($name, $field);
            break;
        case 'experience':
            $this->showExperience($name, $field);
            break;
        case 'education':
            $this->showEducation($name, $field);
            break;
        default:
            $this->out->text("TYPE: $type");
        }
    }

    /**
     * Show an editable version of the field
     *
     * @param string $name  name fo the field
     * @param array  $field array of key/value pairs for the field
     */
    protected function showEditableField($name, $field)
    {
        $out = $this->out;

        $type = strval(@$field['type']);
        $id = "extprofile-" . $name;

        $value = 'placeholder';

        switch ($type) {
        case '':
        case 'text':
            $out->input($id, null, $this->ext->getTextValue($name));
            break;
        case 'date':
            $value = $this->ext->getDateValue($name);
            $out->input(
                $id,
                null,
                empty($value) ? null : date('j M Y', strtotime($value))
            );
            break;
        case 'person':
            $out->input($id, null, $this->ext->getTextValue($name));
            break;
        case 'textarea':
            $out->textarea($id, null,  $this->ext->getTextValue($name));
            break;
        case 'tags':
            $out->input($id, null, $this->ext->getTags());
            break;
        case 'phone':
            $this->showEditablePhone($name, $field);
            break;
        case 'im':
            $this->showEditableIm($name, $field);
            break;
        case 'website':
            $this->showEditableWebsite($name, $field);
            break;
        case 'experience':
            $this->showEditableExperience($name, $field);
            break;
        case 'education':
            $this->showEditableEducation($name, $field);
            break;
        default:
            // TRANS: Field label for undefined field in extended profile.
            $out->input($id, null, sprintf(_m('TYPE: %s'),$type));
        }
    }

    /**
     * Action elements
     *
     * @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')
       );
    }

    /**
     * ID of the form
     *
     * @return string ID of the form
     */
    function id()
    {
        return 'profile-details-' . $this->profile->id;
    }

    /**
     * class of the form
     *
     * @return string of the form class
     */
    function formClass()
    {
        return 'form_profile_details form_settings';
    }

    /**
     * Action of the form
     *
     * @return string URL of the action
     */
    function action()
    {
        return common_local_url('profiledetailsettings');
    }
}


code:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-08 18:20+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#. TRANS: Plugin description.
#: ExtendedProfilePlugin.php:42
msgid "UI extensions for additional profile fields."
msgstr ""

#. TRANS: Link text on user profile page leading to extended profile page.
#: ExtendedProfilePlugin.php:89
msgid "More details..."
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:120 lib/extendedprofile.php:131
msgid "Phone"
msgstr ""

#. TRANS: Field label for extended profile properties (Instant Messaging).
#: lib/extendedprofile.php:153 lib/extendedprofile.php:160
msgid "IM"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:181 lib/extendedprofile.php:188
msgid "Website"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:212 lib/extendedprofile.php:224
msgid "Employer"
msgstr ""

#. TRANS: Field label for extended profile properties.
#. TRANS: Field label in education area of extended profile.
#. TRANS: Field label in education edit area of extended profile.
#: lib/extendedprofile.php:251 lib/extendedprofile.php:264
#: lib/extendedprofilewidget.php:415 lib/extendedprofilewidget.php:455
msgid "Institution"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:289 lib/extendedprofile.php:338
msgid "Personal"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:293
msgid "Full name"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:299
msgid "Title"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:304
msgid "Manager"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:310
msgid "Location"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:315
msgid "Bio"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:321
msgid "Tags"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:329
msgid "Contact"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:342
msgid "Birthday"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:348
msgid "Spouse's name"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:353
msgid "Kids' names"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:359
msgid "Work experience"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:366
msgid "Education"
msgstr ""

#. TRANS: Title for extended profile entry deletion dialog.
#: lib/extendedprofilewidget.php:84
msgid "Confirmation Required"
msgstr ""

#. TRANS: Confirmation text for extended profile entry deletion dialog.
#: lib/extendedprofilewidget.php:87
msgid "Really delete this entry?"
msgstr ""

#. TRANS: Value between parentheses (phone number, website, or IM address).
#: lib/extendedprofilewidget.php:169 lib/extendedprofilewidget.php:182
#: lib/extendedprofilewidget.php:206
#, php-format
msgid "(%s)"
msgstr ""

#. TRANS: Field label in experience area of extended profile.
#. TRANS: Field label in experience edit area of extended profile (which company does one work for).
#: lib/extendedprofilewidget.php:325 lib/extendedprofilewidget.php:371
msgid "Company"
msgstr ""

#. TRANS: Field label in extended profile (when did one start a position or education).
#: lib/extendedprofilewidget.php:331 lib/extendedprofilewidget.php:379
#: lib/extendedprofilewidget.php:425 lib/extendedprofilewidget.php:480
msgid "Start"
msgstr ""

#. TRANS: Field label in extended profile (when did one end a position or education).
#: lib/extendedprofilewidget.php:339 lib/extendedprofilewidget.php:387
#: lib/extendedprofilewidget.php:433 lib/extendedprofilewidget.php:489
msgid "End"
msgstr ""

#. TRANS: Field value in experience area of extended profile (one still holds a position).
#: lib/extendedprofilewidget.php:352
msgid "(Current)"
msgstr ""

#. TRANS: Checkbox label in experience edit area of extended profile (one still works at a company).
#: lib/extendedprofilewidget.php:402
msgid "Current"
msgstr ""

#. TRANS: Field label in extended profile for specifying an academic degree.
#: lib/extendedprofilewidget.php:419 lib/extendedprofilewidget.php:463
msgid "Degree"
msgstr ""

#. TRANS: Field label in education area of extended profile.
#. TRANS: Field label in education edit area of extended profile.
#: lib/extendedprofilewidget.php:422 lib/extendedprofilewidget.php:471
msgid "Description"
msgstr ""

#. TRANS: Link description in extended profile page to add another profile element.
#: lib/extendedprofilewidget.php:521
msgid "Add another item"
msgstr ""

#. TRANS: Field label for undefined field in extended profile.
#: lib/extendedprofilewidget.php:632
#, php-format
msgid "TYPE: %s"
msgstr ""

#. TRANS: Button text for saving extended profile properties.
#: lib/extendedprofilewidget.php:646
msgctxt "BUTTON"
msgid "Save"
msgstr ""

#. TRANS: .
#. TRANS: Button title for saving extended profile properties.
#: lib/extendedprofilewidget.php:651
msgid "Save details"
msgstr ""

#. TRANS: Title for extended profile settings.
#: actions/profiledetailsettings.php:27
msgid "Extended profile settings"
msgstr ""

#. TRANS: Message given submitting a form with an unknown action.
#: actions/profiledetailsettings.php:49
msgid "Unexpected form submission."
msgstr ""

#. TRANS: Success message after saving extended profile details.
#: actions/profiledetailsettings.php:97
msgid "Details saved."
msgstr ""

#. TRANS: Exception thrown when no date was entered in a required date field.
#. TRANS: %s is the field name.
#: actions/profiledetailsettings.php:108
#, php-format
msgid "You must supply a date for \"%s\"."
msgstr ""

#. TRANS: Exception thrown on incorrect data input.
#. TRANS: %1$s is a field name, %2$s is the incorrect input.
#: actions/profiledetailsettings.php:120
#, php-format
msgid "Invalid date entered for \"%1$s\": %2$s."
msgstr ""

#. TRANS: Exception thrown when entering an invalid URL.
#. TRANS: %s is the invalid URL.
#: actions/profiledetailsettings.php:231
#, php-format
msgid "Invalid URL: %s."
msgstr ""

#. TRANS: Server error displayed when a field could not be saved in the database.
#: actions/profiledetailsettings.php:468 actions/profiledetailsettings.php:481
msgid "Could not save profile details."
msgstr ""

#. TRANS: Validation error in form for profile settings.
#. TRANS: %s is an invalid tag.
#: actions/profiledetailsettings.php:523
#, php-format
msgid "Invalid tag: \"%s\"."
msgstr ""

#. TRANS: Server error thrown when user profile settings could not be saved.
#: actions/profiledetailsettings.php:563
msgid "Could not save profile."
msgstr ""

#. TRANS: Link title for link on user profile.
#: actions/profiledetail.php:49
msgid "Edit extended profile settings"
msgstr ""

#. TRANS: Link text for link on user profile.
#: actions/profiledetail.php:51
msgid "Edit"
msgstr ""


code:
# Translation file for GNU social - the free software social networking platform
# Copyright (C) 2015 - 2019 Free Software Foundation, Inc http://www.fsf.org
# This file is under https://www.gnu.org/licenses/agpl v3 or later
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: GNU social\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-02-02 17:47+0100\n"
"PO-Revision-Date: 2015-02-06 16:15+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Afrikaans (http://www.transifex.com/gnu-social/gnu-social/language/af/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: af\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANS: Link title for link on user profile.
#: actions/profiledetail.php:52
msgid "Edit extended profile settings"
msgstr ""

#. TRANS: Link text for link on user profile.
#: actions/profiledetail.php:54
msgid "Edit"
msgstr "Wysig"

#. TRANS: Title for extended profile settings.
#: actions/profiledetailsettings.php:29
msgid "Extended profile settings"
msgstr ""

#. TRANS: Usage instructions for profile settings.
#: actions/profiledetailsettings.php:40
msgid ""
"You can update your personal profile info here so people know more about "
"you."
msgstr ""

#. TRANS: Client error displayed when the session token does not match or is
#. not given.
#: actions/profiledetailsettings.php:63
msgid "There was a problem with your session token. Try again, please."
msgstr ""

#. TRANS: Message given submitting a form with an unknown action.
#: actions/profiledetailsettings.php:74
msgid "Unexpected form submission."
msgstr "Die vorm is onverwags ingestuur."

#. TRANS: Success message after saving extended profile details.
#: actions/profiledetailsettings.php:137
msgid "Details saved."
msgstr ""

#. TRANS: Exception thrown when no date was entered in a required date field.
#. TRANS: %s is the field name.
#: actions/profiledetailsettings.php:148
#, php-format
msgid "You must supply a date for \"%s\"."
msgstr ""

#. TRANS: Exception thrown on incorrect data input.
#. TRANS: %1$s is a field name, %2$s is the incorrect input.
#: actions/profiledetailsettings.php:160
#, php-format
msgid "Invalid date entered for \"%1$s\": %2$s."
msgstr ""

#. TRANS: Exception thrown when entering an invalid URL.
#. TRANS: %s is the invalid URL.
#: actions/profiledetailsettings.php:273
#, php-format
msgid "Invalid URL: %s."
msgstr ""

#. TRANS: Server error displayed when a field could not be saved in the
#. database.
#: actions/profiledetailsettings.php:522 actions/profiledetailsettings.php:535
msgid "Could not save profile details."
msgstr ""

#. TRANS: Validation error in form for profile settings.
#. TRANS: %s is an invalid tag.
#: actions/profiledetailsettings.php:580
#, php-format
msgid "Invalid tag: \"%s\"."
msgstr ""

#. TRANS: Server error thrown when user profile settings could not be saved.
#: actions/profiledetailsettings.php:622
msgid "Could not save profile."
msgstr "Kon nie die profiel stoor nie."

#. TRANS: Server error thrown when user profile settings tags could not be
#. saved.
#: actions/profiledetailsettings.php:630
msgid "Could not save tags."
msgstr "Kon nie die etikette stoor nie."

#. TRANS: Plugin description.
#: ExtendedProfilePlugin.php:40
msgid "UI extensions for additional profile fields."
msgstr ""

#. TRANS: Link text on user profile page leading to extended profile page.
#: ExtendedProfilePlugin.php:87
msgid "More details..."
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:120 lib/extendedprofile.php:131
msgid "Phone"
msgstr ""

#. TRANS: Field label for extended profile properties (Instant Messaging).
#: lib/extendedprofile.php:153 lib/extendedprofile.php:160
msgid "IM"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:181 lib/extendedprofile.php:188
msgid "Website"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:212 lib/extendedprofile.php:224
msgid "Employer"
msgstr ""

#. TRANS: Field label for extended profile properties.
#. TRANS: Field label in education area of extended profile.
#. TRANS: Field label in education edit area of extended profile.
#: lib/extendedprofile.php:251 lib/extendedprofile.php:264
#: lib/extendedprofilewidget.php:416 lib/extendedprofilewidget.php:456
msgid "Institution"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:289 lib/extendedprofile.php:338
msgid "Personal"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:293
msgid "Full name"
msgstr "Volledige naam"

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:299
msgid "Title"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:304
msgid "Manager"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:310
msgid "Location"
msgstr "Ligging"

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:315
msgid "Bio"
msgstr "Bio"

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:321
msgid "Tags"
msgstr "Etikette"

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:329
msgid "Contact"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:342
msgid "Birthday"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:348
msgid "Spouse's name"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:353
msgid "Kids' names"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:359
msgid "Work experience"
msgstr ""

#. TRANS: Field label for extended profile properties.
#: lib/extendedprofile.php:366
msgid "Education"
msgstr ""

#. TRANS: Title for extended profile entry deletion dialog.
#: lib/extendedprofilewidget.php:84
msgid "Confirmation Required"
msgstr ""

#. TRANS: Confirmation text for extended profile entry deletion dialog.
#: lib/extendedprofilewidget.php:87
msgid "Really delete this entry?"
msgstr ""

#. TRANS: Value between parentheses (phone number, website, or IM address).
#: lib/extendedprofilewidget.php:169 lib/extendedprofilewidget.php:182
#: lib/extendedprofilewidget.php:206
#, php-format
msgid "(%s)"
msgstr ""

#. TRANS: Field label in experience area of extended profile.
#. TRANS: Field label in experience edit area of extended profile (which
#. company does one work for).
#: lib/extendedprofilewidget.php:326 lib/extendedprofilewidget.php:372
msgid "Company"
msgstr ""

#. TRANS: Field label in extended profile (when did one start a position or
#. education).
#: lib/extendedprofilewidget.php:332 lib/extendedprofilewidget.php:380
#: lib/extendedprofilewidget.php:426 lib/extendedprofilewidget.php:481
msgid "Start"
msgstr ""

#. TRANS: Field label in extended profile (when did one end a position or
#. education).
#: lib/extendedprofilewidget.php:340 lib/extendedprofilewidget.php:388
#: lib/extendedprofilewidget.php:434 lib/extendedprofilewidget.php:490
msgid "End"
msgstr ""

#. TRANS: Field value in experience area of extended profile (one still holds
#. a position).
#: lib/extendedprofilewidget.php:353
msgid "(Current)"
msgstr ""

#. TRANS: Checkbox label in experience edit area of extended profile (one
#. still works at a company).
#: lib/extendedprofilewidget.php:403
msgid "Current"
msgstr ""

#. TRANS: Field label in extended profile for specifying an academic degree.
#: lib/extendedprofilewidget.php:420 lib/extendedprofilewidget.php:464
msgid "Degree"
msgstr ""

#. TRANS: Field label in education area of extended profile.
#. TRANS: Field label in education edit area of extended profile.
#: lib/extendedprofilewidget.php:423 lib/extendedprofilewidget.php:472
msgid "Description"
msgstr "Beskrywing"

#. TRANS: Link description in extended profile page to add another profile
#. element.
#: lib/extendedprofilewidget.php:522
msgid "Add another item"
msgstr ""

#. TRANS: Field label for undefined field in extended profile.
#: lib/extendedprofilewidget.php:633
#, php-format
msgid "TYPE: %s"
msgstr ""

#. TRANS: Button text for saving extended profile properties.
#: lib/extendedprofilewidget.php:647
msgctxt "BUTTON"
msgid "Save"
msgstr "Stoor"

#. TRANS: .
#. TRANS: Button title for saving extended profile properties.
#: lib/extendedprofilewidget.php:652
msgid "Save details"
msgstr ""