private void SetAsModified(ViewLocalizationDocument language)
 {
     lock (_modifiedDocuments)
     {
         if (!_modifiedDocuments.Contains(language))
         {
             _modifiedDocuments.AddLast(language);
         }
     }
 }
        /// <summary>
        /// Create translation for a new language
        /// </summary>
        /// <param name="culture">Language to create</param>
        /// <param name="templateCulture">Language to use as a template</param>
        public void CreateLanguage(CultureInfo culture, CultureInfo templateCulture)
        {
            var sourceLang = GetLanguage(culture);
            var newLang    = new ViewLocalizationDocument
            {
                Id      = culture.Name,
                Prompts = sourceLang.Prompts.Select(p => new ViewPromptDocument(p)
                {
                    UpdatedAt = DateTime.Now,
                    UpdatedBy =
                        Thread.CurrentPrincipal.Identity.
                        Name,
                    Text = ""
                }).ToList()
            };

            lock (_modifiedDocuments)
            {
                _modifiedDocuments.AddLast(newLang);
            }
        }
		/// <summary>
		/// Create translation for a new language
		/// </summary>
		/// <param name="culture">Language to create</param>
		/// <param name="templateCulture">Language to use as a template</param>
		public void CreateLanguage(CultureInfo culture, CultureInfo templateCulture)
		{
			var sourceLang = GetLanguage(culture);
			var newLang = new ViewLocalizationDocument
												{
													Id = culture.Name,
													Prompts = sourceLang.Prompts.Select(p => new ViewPromptDocument(p)
																																			 {
																																				 UpdatedAt = DateTime.Now,
																																				 UpdatedBy =
																																						 Thread.CurrentPrincipal.Identity.
																																						 Name,
																																				 Text = ""
																																			 }).ToList()
												};

			lock (_modifiedDocuments)
			{
				_modifiedDocuments.AddLast(newLang);
			}
		}
		private void SetAsModified(ViewLocalizationDocument language)
		{
			lock (_modifiedDocuments)
			{
				if (!_modifiedDocuments.Contains(language))
					_modifiedDocuments.AddLast(language);
			}
		}