コード例 #1
0
ファイル: TxFluentBuilder.cs プロジェクト: ygoe/TxTranslation
        /// <summary>
        /// Performs the dictionary lookup and translates the text key based on the selected
        /// configuration.
        /// </summary>
        /// <returns>Text value for the builder's text key.</returns>
        public string Make()
        {
            var result = Tx.T(text, count, arguments.ToDictionary(p => p.Key, p => p.Value));

            if (upperCase)
            {
                result = Tx.UpperCase(result);
            }
            if (colon)
            {
                result += Tx.Colon();
            }
            if (quoteNested)
            {
                result = Tx.QuoteNested(result);
            }
            if (quote)
            {
                result = Tx.Quote(result);
            }
            if (parentheses)
            {
                result = Tx.Parentheses(result);
            }
            return(result);
        }