mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-13 19:26:21 +00:00
Added use of locale in Modern Graph Style algorithm
This commit is contained in:
@@ -30,7 +30,7 @@ ModernGraphStyle.prototype.getId = function()
|
||||
// @return message for user.
|
||||
ModernGraphStyle.prototype.getMessage = function(local)
|
||||
{
|
||||
return (local == "ru" ? "Готово" : "Done");
|
||||
return g_done;
|
||||
}
|
||||
|
||||
ModernGraphStyle.prototype.result = function(resultCallback)
|
||||
|
||||
@@ -159,6 +159,8 @@ var g_vertexPeripheral = "Peripheral";
|
||||
// VerticesDegree.js
|
||||
var g_maximumDegreeOfGraph = "The maximum degree of a graph is";
|
||||
|
||||
var g_done = "Done";
|
||||
|
||||
var g_action = "Action";
|
||||
var g_commonEdgeStyle = "Common Edge Style";
|
||||
var g_selectedEdgeStyle = "Selected Edge Style";
|
||||
@@ -332,6 +334,8 @@ function loadTexts()
|
||||
// VerticesDegree.js
|
||||
g_maximumDegreeOfGraph = document.getElementById("MaximumDegreeOfGraph").innerHTML;
|
||||
|
||||
g_done = document.getElementById("Done").innerHTML;
|
||||
|
||||
g_action = document.getElementById("ActionText").innerHTML;
|
||||
g_commonEdgeStyle = document.getElementById("CommonEdgeStyleText").innerHTML;
|
||||
g_selectedEdgeStyle = document.getElementById("SelectedEdgeStyleText").innerHTML;
|
||||
|
||||
Reference in New Issue
Block a user