Exemplo n.º 1
0
    public static string ReplacePhraseWithTranslation(string replacementPhraseKey)
    {
        string value = Languages.FindTranslation(replacementPhraseKey);

        //for null returns inform the user which language is missing a translation using the returned text
        if (string.IsNullOrEmpty(value))
        {
            value = string.Format("[Translation not found for {0}]", replacementPhraseKey);
        }

        return(value);
    }