Set Language By Culture


Node Information
Sets project language by specified Culture.
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
Culture IN CultureInfo ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Globalizer
{
    [IsNode("Set Language By Culture")]
    public class SetLanguageByCulture : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Set");
        Port name = new Port(PortType.IN, typeof(System.Globalization.CultureInfo), AcceptsLinks.ONE, "Culture");
        public SetLanguageByCulture()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "Set Language By Culture";
            AddPort(run);
            AddPort(name);
            Information = "Sets project language by specified Culture.";
        }
        public override string Code()
        {
            return "Korduene.Globalizer.SetLanguage(" + GetValue(name) + ");";
        }
    }
}