Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15387533
D8920.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8920.id.diff
View Options
diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelAccount.php b/src/applications/settings/panel/PhabricatorSettingsPanelAccount.php
--- a/src/applications/settings/panel/PhabricatorSettingsPanelAccount.php
+++ b/src/applications/settings/panel/PhabricatorSettingsPanelAccount.php
@@ -17,6 +17,7 @@
public function processRequest(AphrontRequest $request) {
$user = $request->getUser();
+ $username = $user->getUsername();
$pref_time = PhabricatorUserPreferences::PREFERENCE_TIME_FORMAT;
$preferences = $user->loadPreferences();
@@ -54,10 +55,14 @@
$timezone_ids = DateTimeZone::listIdentifiers();
$timezone_id_map = array_fuse($timezone_ids);
+ $label_unknown = pht('%s updated their profile', $username);
+ $label_her = pht('%s updated her profile', $username);
+ $label_his = pht('%s updated his profile', $username);
+
$sexes = array(
- PhutilPerson::SEX_UNKNOWN => pht('Unspecified'),
- PhutilPerson::SEX_MALE => pht('Male'),
- PhutilPerson::SEX_FEMALE => pht('Female'),
+ PhutilPerson::SEX_UNKNOWN => $label_unknown,
+ PhutilPerson::SEX_MALE => $label_his,
+ PhutilPerson::SEX_FEMALE => $label_her,
);
$translations = array();
@@ -85,10 +90,11 @@
->setName('timezone')
->setOptions($timezone_id_map)
->setValue($user->getTimezoneIdentifier()))
+ ->appendRemarkupInstructions(pht("**Choose the pronoun you prefer:**"))
->appendChild(
id(new AphrontFormSelectControl())
->setOptions($sexes)
- ->setLabel(pht('Sex'))
+ ->setLabel(pht('Pronoun'))
->setName('sex')
->setValue($user->getSex()))
->appendChild(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 16 2025, 2:33 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704577
Default Alt Text
D8920.id.diff (1 KB)
Attached To
Mode
D8920: Ask users to choose a pronoun instead of sex in the Account settings panel
Attached
Detach File
Event Timeline
Log In to Comment