Set Language By Name


Node Information
Sets project language by language name, for example language name could be 'en' or 'English'.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Set IN RUN MULTIPLE FALSE FALSE
Name IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Globalizer
{
    [IsNode("Set Language By Name")]
    public class SetLanguageByName : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Set");
        Port name = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Name");
        public SetLanguageByName()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "Set Language By Name";
            AddPort(run);
            AddPort(name);
            Information = "Sets project language by language name, for example language name could be 'en' or 'English'.";
        }
        public override string Code()
        {
            return "Korduene.Globalizer.SetLanguage(" + GetValue(name) + ");";
        }
    }
}