public void Clear () { m_LastModified = new XmlDateTime (DateTime.MinValue); m_LastModifyingPerson = new XmlString (String.Empty); m_LanguageUsed = new XmlLanguage (); m_TranslatedString = new XmlString (String.Empty); }
/// <summary> /// Update a translated word for it's associated language /// </summary> /// <param name="destinationLanguage">Destination language</param> /// <param name="translatedText">Word translated into destination language</param> /// <param name="lastModifyingPerson">Just keep a trace of person who have modified this translation</param> /// <param name="lastModificationTime">Keep last modification time</param> public void Update (Language destinationLanguage, string translatedText, string lastModifyingPerson, DateTime lastModificationTime) { if (lastModificationTime != DateTime.MinValue) m_LastModified = new XmlDateTime (lastModificationTime); if ((lastModifyingPerson != null) && (lastModifyingPerson.Length != 0)) m_LastModifyingPerson = new XmlString (lastModifyingPerson); if (destinationLanguage != Language.Invalid) { m_LanguageUsed = new XmlLanguage (); m_LanguageUsed.Language = destinationLanguage; } if ((translatedText != null) && (translatedText.Length != 0)) m_TranslatedString = new XmlString (translatedText); }