Skip to content

Commit

Permalink
Fixed test, and fixed language bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 committed Aug 30, 2023
1 parent e872fd7 commit 830185d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SuperGrate/Classes/USMT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private static Task<bool> UploadToStore(string SID, out string GUID)
string lGUID = Guid.NewGuid().ToString();
GUID = lGUID;
return Task.Run(async () => {
Logger.Information(Language.Get("Class/USMT/Log/TransferringUserStateTo", Language.Get("Store")));
Logger.Information(Language.Get("Class/USMT/Log/TransferringUserStateTo", Language.Get("Shared/Store")));
string Destination = Path.Combine(Config.Settings["MigrationStorePath"], lGUID);
try
{
Expand All @@ -303,7 +303,7 @@ private static Task<bool> UploadToStore(string SID, out string GUID)
{
Directory.Delete(Destination, true);
}
Logger.Exception(e, Language.Get("Class/USMT/Log/Failed/TransferUserStateTo", Language.Get("Store")));
Logger.Exception(e, Language.Get("Class/USMT/Log/Failed/TransferUserStateTo", Language.Get("Shared/Store")));
return false;
}
});
Expand Down
1 change: 1 addition & 0 deletions SuperGrate/Localization/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Cancel>Cancel</Cancel>
<Start>Start</Start>
<Delete>Delete</Delete>
<Store>Store</Store>
<SourceComputer>Source computer</SourceComputer>
<DestinationComputer>Destination computer</DestinationComputer>
<SourceUserName>Source user name</SourceUserName>
Expand Down
2 changes: 1 addition & 1 deletion SuperGrateTests/Classes/LanguageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void GetTest()
foreach (string file in files)
{
StreamReader reader = File.OpenText(file);
MatchCollection matches = Regex.Matches(reader.ReadToEnd(), "Language\\.Get\\(\"([a-z,A-Z,/]*)\".*\\)");
MatchCollection matches = Regex.Matches(reader.ReadToEnd(), "Language\\.Get\\(\"([a-z,A-Z,\\/]*)\"(?=.*\\))");
reader.Close();
foreach (Match match in matches)
{
Expand Down

0 comments on commit 830185d

Please sign in to comment.