Пример #1
0
 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");
 }
Пример #2
0
        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 }));
        }
Пример #3
0
 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
Пример #4
0
 public static void ImportSpanishInstanceTranslations()
 {
     TranslatedInstanceLogic.ImportExcelFile("Category.es.View.xlsx");
 }