Fixed missprint in radius and diameter algorithm in Russian

This commit is contained in:
serd2011 2021-09-16 02:14:13 +03:00
parent 7f60486647
commit 50eda744d6

View File

@ -43,7 +43,7 @@ RadiusAndDiameter.prototype.getMessage = function(local)
return (local == "ru" ? "Граф содержит только одну вершину" : "Graph contains only one vertex");
}
var text = (local == "ru" ? "Радуис граф: " : "Graph radius: ") + this.radius;
var text = (local == "ru" ? "Радиус графа: " : "Graph radius: ") + this.radius;
text = text + " (";
for (i = 0; i < this.radiusSelectedObjects.length; i++)
@ -55,7 +55,7 @@ RadiusAndDiameter.prototype.getMessage = function(local)
}
text = text + ").";
text = text + (local == "ru" ? " Диаметр граф: " : "Graph diameter: ") + this.diameter;
text = text + (local == "ru" ? " Диаметр графа: " : "Graph diameter: ") + this.diameter;
text = text + " (";
for (i = 0; i < this.diameterSelectedObjects.length; i++)