Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15424560
D18453.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
D18453.diff
View Options
diff --git a/src/applications/project/icon/PhabricatorProjectIconSet.php b/src/applications/project/icon/PhabricatorProjectIconSet.php
--- a/src/applications/project/icon/PhabricatorProjectIconSet.php
+++ b/src/applications/project/icon/PhabricatorProjectIconSet.php
@@ -132,15 +132,11 @@
continue;
}
- $spec_name = spec['name'];
- if ($spec_name) {
- $spec_name = pht("$spec_name");
- }
$icons[] = id(new PhabricatorIconSetIcon())
->setKey($spec['key'])
->setIsDisabled(idx($spec, 'disabled'))
->setIcon($spec['icon'])
- ->setLabel($spec_name);
+ ->setLabel($spec['name']);
}
return $icons;
@@ -167,11 +163,7 @@
public static function getIconName($key) {
$spec = self::getIconSpec($key);
- $value = idx($spec, 'name', null);
- if ($value != null) {
- return pht("$value");
- }
- return $value;
+ return idx($spec, 'name', null);
}
public static function getIconImage($key) {
@@ -183,15 +175,7 @@
$icons = self::getIconSpecifications();
foreach ($icons as $icon) {
if (idx($icon, 'key') === $key) {
- $spec_local = array();
- foreach ($icon as $key => $value) {
- if ($key == 'name') {
- $spec_local['name'] = pht("$value");
- } else {
- $spec_local[$key] = $value;
- }
- }
- return $spec_local;
+ return $icon;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 11:01 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7714631
Default Alt Text
D18453.diff (1 KB)
Attached To
Mode
D18453: Phabricator project icon names are should also be translated.
Attached
Detach File
Event Timeline
Log In to Comment