Ejemplo n.º 1
0
        private string TranslateKudos(string userId, string textToTranslate)
        {
            var user = _usersDbSet.FirstOrDefault(u => u.Id == userId);

            Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(user.CultureCode);

            return(ResourceUtilities.GetResourceValue("Models.Kudos.Kudos", textToTranslate));
        }
Ejemplo n.º 2
0
 private string TranslateKudos(string textToTranslate, CultureInfo culture)
 {
     return(ResourceUtilities.GetResourceValue(_resourceManager, textToTranslate, culture));
 }