/// <summary> /// Translates the current step according to the translation dictionary /// Removes all preconditions, actions and expectations /// </summary> /// <param name="translationDictionary"></param> public void Translate(Translations.TranslationDictionary translationDictionary) { if (getTranslationRequired()) { SubSteps.Clear(); Translations.Translation translation = translationDictionary.findTranslation(getDescription()); if (translation != null) { translation.UpdateStep(this); setTranslated(true); } } }