+29
-0
lines changedFilter options
+29
-0
lines changed Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@ static void Main(string[] args)
47
47
new Upgrade_20210119_DeepL(),
48
48
new Upgrade_20210205_ErrorHandling(),
49
49
new Upgrade_20210210_UpgradeNugets(),
50
+
new Upgrade_20210216_RegisterTranslatableRoutes(),
50
51
}.Run(uctx);
51
52
}
52
53
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
1
+
using Signum.Utilities;
2
+
using System;
3
+
using System.Collections.Generic;
4
+
using System.IO;
5
+
using System.Linq;
6
+
using System.Security.Cryptography.X509Certificates;
7
+
using System.Text;
8
+
using System.Threading.Tasks;
9
+
10
+
namespace Signum.Upgrade.Upgrades
11
+
{
12
+
class Upgrade_20210216_RegisterTranslatableRoutes : CodeUpgradeBase
13
+
{
14
+
public override string Description => "add instance translation to UserQuery / UserChart / Dashboard / Toolbar";
15
+
16
+
public override void Execute(UpgradeContext uctx)
17
+
{
18
+
uctx.ChangeCodeFile(@"Southwind.Logic/Starter.cs", file =>
19
+
{
20
+
file.InsertAfterFirstLine(line => line.Contains("UserQueryLogic.RegisterRoleTypeCondition"), "UserQueryLogic.RegisterTranslatableRoutes();");
21
+
file.InsertAfterFirstLine(line => line.Contains("UserChartLogic.RegisterRoleTypeCondition"), "UserChartLogic.RegisterTranslatableRoutes();");
22
+
file.InsertAfterFirstLine(line => line.Contains("DashboardLogic.RegisterRoleTypeCondition"), "DashboardLogic.RegisterTranslatableRoutes();");
23
+
file.InsertAfterFirstLine(line => line.Contains("ToolbarLogic.Start(sb);"), "ToolbarLogic.RegisterTranslatableRoutes();");
24
+
});
25
+
26
+
}
27
+
}
28
+
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4