public virtual void SetTranslated (object obj, bool translated) { ObjectWrapper wrapper = ObjectWrapper.Lookup (obj); if (wrapper == null) return; if (wrapper.translationInfo == null) wrapper.translationInfo = new Hashtable (); TranslationInfo info = (TranslationInfo)wrapper.translationInfo[obj]; if (info == null) { info = new TranslationInfo (); wrapper.translationInfo[obj] = info; } if (translated) info.Translated = true; else info.Translated = false; // We leave the old Context and Comment around, so that if // you toggle Translated off and then back on, the old info // is still there. }