/// <summary> /// Returns a temporary disposable localization context /// </summary> /// <returns>The context that must be disposed.</returns> /// <param name="ci">The locale to use.</param> public static IDisposable TemporaryContext(CultureInfo ci) { if (ci == null) { return(null); } LC.setCulture(ci); return(new LocalizationContext(ci)); }