public static void ImportSpanishInstanceTranslations() { TranslatedInstanceLogic.ImportExcelFile("../../../InstanceTranslations/Category.es.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile("../../../InstanceTranslations/Dashboard.es.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile("../../../InstanceTranslations/Toolbar.es.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile("../../../InstanceTranslations/ToolbarMenu.es.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile("../../../InstanceTranslations/UserChart.es.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile("../../../InstanceTranslations/UserQuery.es.View.xlsx"); }
public ActionResult UploadFile() { HttpPostedFileBase hpf = Request.Files[Request.Files.Cast <string>().Single()]; var type = TypeLogic.GetType(hpf.FileName.Before('.')); var culture = CultureInfo.GetCultureInfo(hpf.FileName.After('.').Before('.')); var pair = TranslatedInstanceLogic.ImportExcelFile(hpf.InputStream, hpf.FileName); return(RedirectToAction("View", new { type = TypeLogic.GetCleanName(pair.Type), culture = pair.Culture, searchPressed = false })); }
public static void ImportInstanceTranslations() { foreach (var lang in new[] { "de", "es" }) { TranslatedInstanceLogic.ImportExcelFile($"../../../InstanceTranslations/Category.{lang}.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile($"../../../InstanceTranslations/Dashboard.{lang}.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile($"../../../InstanceTranslations/Toolbar.{lang}.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile($"../../../InstanceTranslations/ToolbarMenu.{lang}.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile($"../../../InstanceTranslations/UserChart.{lang}.View.xlsx"); TranslatedInstanceLogic.ImportExcelFile($"../../../InstanceTranslations/UserQuery.{lang}.View.xlsx"); } }//ImportInstanceTranslations
public static void ImportSpanishInstanceTranslations() { TranslatedInstanceLogic.ImportExcelFile("Category.es.View.xlsx"); }