MCPcopy Create free account
hub / github.com/WinMerge/winmerge / FormatMenuItemStringTo

Function FormatMenuItemStringTo

Src/DirActions.cpp:1459–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457}
1458
1459String FormatMenuItemStringTo(SIDE_TYPE src, int count, int total)
1460{
1461 String fmt1, fmt2;
1462 if (src == SIDE_LEFT)
1463 {
1464 fmt1 = _("Left to... (%1)");
1465 fmt2 = _("Left to... (%1 of %2)");
1466 }
1467 else if (src == SIDE_MIDDLE)
1468 {
1469 fmt1 = _("Middle to... (%1)");
1470 fmt2 = _("Middle to... (%1 of %2)");
1471 }
1472 else if (src == SIDE_RIGHT)
1473 {
1474 fmt1 = _("Right to... (%1)");
1475 fmt2 = _("Right to... (%1 of %2)");
1476 }
1477 return FormatMenuItemString(fmt1, fmt2, count, total);
1478}
1479
1480String FormatMenuItemStringAllTo(int nDirs, int count, int total)
1481{

Callers 2

OnUpdateCtxtDirCopyToMethod · 0.85
OnUpdateCtxtDirMoveToMethod · 0.85

Calls 1

FormatMenuItemStringFunction · 0.85

Tested by

no test coverage detected