public virtual void IncLanguage(string language, LangStatus status, bool isValid, string nativeText, string translatedText) { if (!this.languagesById.TryGetValue(language, out var projectLanguage)) { projectLanguage = new ProjectLanguage(language); this.languagesById.Add(language, projectLanguage); } projectLanguage.IncByStatus(status, isValid, nativeText, translatedText); }
private LangCount GetLanguageCountByLanguageStatus(IProjectLanguage projectLanguage, LangStatus langStatus) { var langCount = projectLanguage.CountByStatus.FirstOrDefault(x => x.Item1 == langStatus); if (langCount != default) { return(langCount.Item2); } return(default);
public override void IncLanguage(string language, LangStatus status, bool isValid, string nativeText, string translatedText) { base.IncLanguage(language, status, isValid, nativeText, translatedText); this.sisulizerFile.IncLanguage(language, status, isValid, nativeText, translatedText); }