| 1516 | }; |
| 1517 | |
| 1518 | String DirColInfo::GetDisplayName() const |
| 1519 | { |
| 1520 | if (idName) |
| 1521 | return I18n::tr(idNameContext, idName); |
| 1522 | PropertySystem ps({ regName + 1 }); |
| 1523 | std::vector<String> names; |
| 1524 | ps.GetDisplayNames(names); |
| 1525 | String name = names[0]; |
| 1526 | if (regName[0] != 'A') |
| 1527 | { |
| 1528 | name += _T(" ("); |
| 1529 | name += |
| 1530 | (regName[0] == 'L') ? _("Left") : |
| 1531 | (regName[0] == 'R') ? _("Right") : |
| 1532 | (regName[0] == 'M') ? _("Middle") : |
| 1533 | (regName[0] == 'D') ? _("Diff") : |
| 1534 | (regName[0] == 'l') ? _("Left Duplicate Count") : |
| 1535 | (regName[0] == 'r') ? _("Right Duplicate Count") : |
| 1536 | (regName[0] == 'm') ? _("Middle Duplicate Count") : |
| 1537 | (regName[0] == 'N') ? _("Move") : _(""); |
| 1538 | name += ')'; |
| 1539 | } |
| 1540 | return name; |
| 1541 | } |
| 1542 | |
| 1543 | String DirColInfo::GetDescription() const |
| 1544 | { |
no test coverage detected