Added use of locale inColoring algorithm

This commit is contained in:
serd2011
2021-09-19 19:05:44 +03:00
parent 56ab95df40
commit 0a294c1720
12 changed files with 37 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ Coloring.prototype.getId = function()
// @return message for user.
Coloring.prototype.getMessage = function(local)
{
return (local == "ru" ? "Найденное количество цветов " : "Color number is ") + this.connectedComponentNumber;
return g_colorNumber + " " + this.connectedComponentNumber;
}
Coloring.prototype.result = function(resultCallback)