Added use of locale in Vertices Degree algorithm

This commit is contained in:
serd2011
2021-09-19 18:43:19 +03:00
parent c145c53ec8
commit 164a2818f0
12 changed files with 37 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ VerticesDegree.prototype.getId = function()
// @return message for user.
VerticesDegree.prototype.getMessage = function(local)
{
return (local == "ru" ? "Максимальная степень вершин графа равна " : "The maximum degree of a graph is ") + this.maxDegree;
return g_maximumDegreeOfGraph + " " + this.maxDegree;
}
VerticesDegree.prototype.result = function(resultCallback)