private void TryAddFullListInjection(VirtualFile file, string key, List <string> translation, List <Pair <int, string> > comments) { string text = key; key = BackCompatibleKey(key); if (!CheckErrors(file, key, text, replacingFullList: true)) { if (translation == null) { translation = new List <string>(); } DefInjection defInjection = new DefInjection(); defInjection.path = key; defInjection.fullListInjection = translation; defInjection.fullListInjectionComments = comments; defInjection.fileSource = file.Name; defInjection.nonBackCompatiblePath = text; injections.Add(key, defInjection); } }
private void TryAddInjection(VirtualFile file, string key, string translation) { string text = key; key = BackCompatibleKey(key); if (!CheckErrors(file, key, text, replacingFullList: false)) { DefInjection defInjection = new DefInjection(); if (translation == "TODO") { defInjection.isPlaceholder = true; translation = ""; } defInjection.path = key; defInjection.injection = translation; defInjection.fileSource = file.Name; defInjection.nonBackCompatiblePath = text; injections.Add(key, defInjection); } }