Example #1
0
        protected override void Execute(CodeActivityContext context)
        {
            // ToDo..
            SoundExTranslate translation = new SoundExTranslate();

            translation.UseGerman = UseGernan.Get(context);

            var result = translation.Generate(Phrase.Get(context));

            Code.Set(context, result);
        }
Example #2
0
        private Phrase GetSegmentName(ExplorerEntityKind kind)
        {
            switch (kind)
            {
            case ExplorerEntityKind.Bot:
                return(Phrase.Get("Bots"));

            case ExplorerEntityKind.Channel:
                return(Phrase.Get("Channels"));

            case ExplorerEntityKind.Group:
                return(Phrase.Get("Groups"));

            case ExplorerEntityKind.People:
                return(Phrase.Get("People"));
            }

            return(null);
        }