-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multilanguage version (EN and ES) with international danger colors (#4)
* International Version * Update to .Net 4.8 and small translation changes * Update to .Net 4.8 and small translation changes * Update to .Net 4.8 and small translation changes * Ignore Exe * Intensity 4 = yellow * Language Switch * Load last selected language on startup * Saves Settings to db --------- Co-authored-by: Christoph Suter <christoph@suter-burri.ch>
- Loading branch information
Showing
48 changed files
with
208,181 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
namespace ResTB.DB.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class Translations : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
AddColumn("public.IKClasses", "Description_EN", c => c.String()); | ||
AddColumn("public.IKClasses", "Description_ES", c => c.String()); | ||
AddColumn("public.NatHazard", "Name_EN", c => c.String()); | ||
AddColumn("public.NatHazard", "Name_ES", c => c.String()); | ||
AddColumn("public.Objectparameter", "Description_EN", c => c.String()); | ||
AddColumn("public.Objectparameter", "Description_ES", c => c.String()); | ||
AddColumn("public.ObjectClass", "Name_EN", c => c.String()); | ||
AddColumn("public.ObjectClass", "Name_ES", c => c.String()); | ||
AddColumn("public.ResilienceFactor", "Preparedness_EN", c => c.String()); | ||
AddColumn("public.ResilienceFactor", "Preparedness_ES", c => c.String()); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
DropColumn("public.ResilienceFactor", "Preparedness_ES"); | ||
DropColumn("public.ResilienceFactor", "Preparedness_EN"); | ||
DropColumn("public.ObjectClass", "Name_ES"); | ||
DropColumn("public.ObjectClass", "Name_EN"); | ||
DropColumn("public.Objectparameter", "Description_ES"); | ||
DropColumn("public.Objectparameter", "Description_EN"); | ||
DropColumn("public.NatHazard", "Name_ES"); | ||
DropColumn("public.NatHazard", "Name_EN"); | ||
DropColumn("public.IKClasses", "Description_ES"); | ||
DropColumn("public.IKClasses", "Description_EN"); | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
DB/Migrations/202402281054590_Translation_Name.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace ResTB.DB.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class Translation_Name : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
AddColumn("public.Objectparameter", "Name_EN", c => c.String()); | ||
AddColumn("public.Objectparameter", "Name_ES", c => c.String()); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
DropColumn("public.Objectparameter", "Name_ES"); | ||
DropColumn("public.Objectparameter", "Name_EN"); | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace ResTB.DB.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class Settings : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
CreateTable( | ||
"public.Settings", | ||
c => new | ||
{ | ||
Id = c.Int(nullable: false, identity: true), | ||
Language = c.String(), | ||
}) | ||
.PrimaryKey(t => t.Id); | ||
|
||
} | ||
|
||
public override void Down() | ||
{ | ||
DropTable("public.Settings"); | ||
} | ||
} | ||
} |
Oops, something went wrong.