forked from pbatard/rufus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Also reinstate CodeQL since github/codeql-action#850 is supposed to be fixed. * Also fix a false Coverity warning.
- Loading branch information
Showing
6 changed files
with
30 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Rufus: The Reliable USB Formatting Utility | ||
* Poedit <-> rufus.loc conversion utility | ||
* Copyright © 2018-2019 Pete Batard <[email protected]> | ||
* Copyright © 2018-2022 Pete Batard <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -41,9 +41,9 @@ | |
[assembly: AssemblyDescription("Poedit ↔ Rufus loc conversion utility")] | ||
[assembly: AssemblyCompany("Akeo Consulting")] | ||
[assembly: AssemblyProduct("Pollock")] | ||
[assembly: AssemblyCopyright("Copyright © 2018 Pete Batard <[email protected]>")] | ||
[assembly: AssemblyCopyright("Copyright © 2018-2022 Pete Batard <[email protected]>")] | ||
[assembly: AssemblyTrademark("GNU GPLv3")] | ||
[assembly: AssemblyVersion("1.3.*")] | ||
[assembly: AssemblyVersion("1.4.*")] | ||
|
||
namespace pollock | ||
{ | ||
|
@@ -266,8 +266,16 @@ static List<Language> ParseLocFile(string file, string select_id = null) | |
} | ||
lang.sections[section_name].Add(new Message(parts[1], parts[2])); | ||
// We also maintain global list of Id -> str for convenience | ||
lang.id_to_str.Add(new Id(section_name, (parts[1])), parts[2]); | ||
last_key = parts[1]; | ||
try | ||
{ | ||
lang.id_to_str.Add(new Id(section_name, (parts[1])), parts[2]); | ||
} | ||
catch (Exception e) | ||
{ | ||
Console.WriteLine($"Error for {parts[1]}: " + e.Message); | ||
continue; | ||
} | ||
last_key = parts[1]; | ||
if (comment != null) | ||
{ | ||
id = new Id(section_name, last_key); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration> |
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