Page MenuHomePhabricator

D18453.diff
No OneTemporary

D18453.diff

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

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)

Event Timeline