mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[misc] minor update to pollock
* Also reinstate CodeQL since github/codeql-action#850 is supposed to be fixed. * Also fix a false Coverity warning.
This commit is contained in:
		
							parent
							
								
									a0d669232c
								
							
						
					
					
						commit
						d0844bfc70
					
				
					 6 changed files with 30 additions and 15 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| /* | ||||
|  * Rufus: The Reliable USB Formatting Utility | ||||
|  * Poedit <-> rufus.loc conversion utility | ||||
|  * Copyright © 2018-2019 Pete Batard <pete@akeo.ie> | ||||
|  * Copyright © 2018-2022 Pete Batard <pete@akeo.ie> | ||||
|  * | ||||
|  * 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 @@ using System.Windows.Forms; | |||
| [assembly: AssemblyDescription("Poedit ↔ Rufus loc conversion utility")] | ||||
| [assembly: AssemblyCompany("Akeo Consulting")] | ||||
| [assembly: AssemblyProduct("Pollock")] | ||||
| [assembly: AssemblyCopyright("Copyright © 2018 Pete Batard <pete@akeo.ie>")] | ||||
| [assembly: AssemblyCopyright("Copyright © 2018-2022 Pete Batard <pete@akeo.ie>")] | ||||
| [assembly: AssemblyTrademark("GNU GPLv3")] | ||||
| [assembly: AssemblyVersion("1.3.*")] | ||||
| [assembly: AssemblyVersion("1.4.*")] | ||||
| 
 | ||||
| namespace pollock | ||||
| { | ||||
|  | @ -266,8 +266,16 @@ namespace pollock | |||
|                         } | ||||
|                         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); | ||||
|  |  | |||
|  | @ -8,9 +8,10 @@ | |||
|     <OutputType>Exe</OutputType> | ||||
|     <RootNamespace>pollock</RootNamespace> | ||||
|     <AssemblyName>pollock</AssemblyName> | ||||
|     <TargetFrameworkVersion>v4.6</TargetFrameworkVersion> | ||||
|     <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> | ||||
|     <FileAlignment>512</FileAlignment> | ||||
|     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||||
|     <TargetFrameworkProfile /> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||||
|     <PlatformTarget>AnyCPU</PlatformTarget> | ||||
|  | @ -51,6 +52,9 @@ | |||
|   <ItemGroup> | ||||
|     <Content Include="pollock.ico" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <None Include="app.config" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||||
|   <Target Name="PostBuildMacros"> | ||||
|     <GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> | ||||
|  |  | |||
							
								
								
									
										3
									
								
								res/loc/pollock/app.config
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								res/loc/pollock/app.config
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <configuration> | ||||
| <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue