1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup Label="ProjectConfigurations">
4 <ProjectConfiguration Include="Debug|ARM">
5 <Configuration>Debug</Configuration>
6 <Platform>ARM</Platform>
7 </ProjectConfiguration>
8 <ProjectConfiguration Include="Debug|ARM64">
9 <Configuration>Debug</Configuration>
10 <Platform>ARM64</Platform>
11 </ProjectConfiguration>
12 <ProjectConfiguration Include="Debug|Win32">
13 <Configuration>Debug</Configuration>
14 <Platform>Win32</Platform>
15 </ProjectConfiguration>
16 <ProjectConfiguration Include="Debug|x64">
17 <Configuration>Debug</Configuration>
18 <Platform>x64</Platform>
19 </ProjectConfiguration>
20 <ProjectConfiguration Include="Release|ARM">
21 <Configuration>Release</Configuration>
22 <Platform>ARM</Platform>
23 </ProjectConfiguration>
24 <ProjectConfiguration Include="Release|ARM64">
25 <Configuration>Release</Configuration>
26 <Platform>ARM64</Platform>
27 </ProjectConfiguration>
28 <ProjectConfiguration Include="Release|Win32">
29 <Configuration>Release</Configuration>
30 <Platform>Win32</Platform>
31 </ProjectConfiguration>
32 <ProjectConfiguration Include="Release|x64">
33 <Configuration>Release</Configuration>
34 <Platform>x64</Platform>
35 </ProjectConfiguration>
37 <PropertyGroup Label="Globals">
38 <ProjectName>MergeLang</ProjectName>
39 <ProjectGuid>{4B011DDA-2279-437D-903C-8028913AF31B}</ProjectGuid>
40 <RootNamespace>MergeLang</RootNamespace>
41 <Keyword>Win32Proj</Keyword>
42 <WindowsTargetPlatformVersion Condition="'$(VisualStudioVersion)' == '15'">10.0.17763.0</WindowsTargetPlatformVersion>
43 <WindowsTargetPlatformVersion Condition="'$(VisualStudioVersion)' >= '16'">$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
45 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
47 <ConfigurationType>Utility</ConfigurationType>
48 <CharacterSet>Unicode</CharacterSet>
49 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141_xp</PlatformToolset>
50 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
51 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
52 <XPDeprecationWarning>false</XPDeprecationWarning>
54 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
55 <ConfigurationType>Utility</ConfigurationType>
56 <CharacterSet>Unicode</CharacterSet>
57 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141_xp</PlatformToolset>
58 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
59 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
60 <XPDeprecationWarning>false</XPDeprecationWarning>
61 <XPDeprecationWarning>false</XPDeprecationWarning>
63 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
64 <ConfigurationType>Utility</ConfigurationType>
65 <CharacterSet>Unicode</CharacterSet>
66 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141_xp</PlatformToolset>
67 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
68 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
69 <XPDeprecationWarning>false</XPDeprecationWarning>
71 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
72 <ConfigurationType>Utility</ConfigurationType>
73 <CharacterSet>Unicode</CharacterSet>
74 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141</PlatformToolset>
75 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
76 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
77 <XPDeprecationWarning>false</XPDeprecationWarning>
79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
80 <ConfigurationType>Utility</ConfigurationType>
81 <CharacterSet>Unicode</CharacterSet>
82 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141</PlatformToolset>
83 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
84 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
85 <XPDeprecationWarning>false</XPDeprecationWarning>
87 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
88 <ConfigurationType>Utility</ConfigurationType>
89 <CharacterSet>Unicode</CharacterSet>
90 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141_xp</PlatformToolset>
91 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
92 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
93 <XPDeprecationWarning>false</XPDeprecationWarning>
95 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
96 <ConfigurationType>Utility</ConfigurationType>
97 <CharacterSet>Unicode</CharacterSet>
98 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141</PlatformToolset>
99 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
100 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
101 <XPDeprecationWarning>false</XPDeprecationWarning>
103 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
104 <ConfigurationType>Utility</ConfigurationType>
105 <CharacterSet>Unicode</CharacterSet>
106 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15'">v141</PlatformToolset>
107 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16'">v142</PlatformToolset>
108 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17'">v143</PlatformToolset>
109 <XPDeprecationWarning>false</XPDeprecationWarning>
111 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
112 <ImportGroup Label="ExtensionSettings">
114 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
115 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
117 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
118 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
120 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
121 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
123 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
124 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
126 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
127 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
129 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
130 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
132 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
133 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
135 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets">
136 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
138 <PropertyGroup Label="UserMacros" />
140 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
141 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
142 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
143 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
144 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
145 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
146 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
147 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
148 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
149 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
150 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
151 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">true</LinkIncremental>
152 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</LinkIncremental>
153 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
154 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
155 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
156 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
157 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
158 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">.\..\Build\$(PlatformTarget)\$(Configuration)\</OutDir>
159 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
160 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
161 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">.\..\BuildTmp\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
162 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
163 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">false</LinkIncremental>
164 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</LinkIncremental>
166 <ItemDefinitionGroup>
172 <Command>mkdir $(OutDir)\Languages\ 2> NUL
173 mkdir $(OutDir)\Languages\ShellExtension 2> NUL
174 copy /Y "$(ProjectDir)..\Translations\WinMerge\*.po" "$(OutDir)\Languages\"
175 copy /Y "$(ProjectDir)..\Translations\ShellExtension\*.po" "$(OutDir)\Languages\ShellExtension"</Command>
177 </ItemDefinitionGroup>
179 <CustomBuild Include="Merge.rc">
180 <Command>pushd $(ProjectDir)..\Translations\WinMerge
182 date /t > MergeLang.lastbuild
183 attrib -a English.pot
184 del English.pot.prev English.pot.flt English.pot.prev.flt 2> NUL
185 move English.pot English.pot.prev 2> NUL
186 cscript CreateMasterPotFile.vbs
187 attrib -a English.pot
188 findstr /v POT-Creation-Date English.pot > English.pot.flt
189 findstr /v POT-Creation-Date English.pot.prev > English.pot.prev.flt
190 fc English.pot.flt English.pot.prev.flt
191 if not errorlevel 1 (
192 copy /y English.pot.prev English.pot
196 del English.pot.prev English.pot.flt English.pot.prev.flt
198 powershell -ExecutionPolicy ByPass -File UpdatePoFilesFromPotFile.ps1
199 if "%POT_UPDATED%" == "true" (
201 for %%i in ("%LOCALAPPDATA%\Programs\Python\Python39" "C:\Python39") do (
202 if exist "%%~i\python.exe" (
203 "%%~i\python.exe" GetTranslationsStatus.py
210 <Outputs>$(ProjectDir)..\Translations\WinMerge\MergeLang.lastbuild</Outputs>
214 <None Include="..\Translations\ShellExtension\Arabic.po" />
215 <None Include="..\Translations\ShellExtension\Basque.po" />
216 <None Include="..\Translations\ShellExtension\Brazilian.po" />
217 <None Include="..\Translations\ShellExtension\Bulgarian.po" />
218 <None Include="..\Translations\ShellExtension\Catalan.po" />
219 <None Include="..\Translations\ShellExtension\ChineseSimplified.po" />
220 <None Include="..\Translations\ShellExtension\ChineseTraditional.po" />
221 <None Include="..\Translations\ShellExtension\Corsican.po" />
222 <None Include="..\Translations\ShellExtension\CreateMasterPotFile.vbs" />
223 <None Include="..\Translations\ShellExtension\Croatian.po" />
224 <None Include="..\Translations\ShellExtension\Czech.po" />
225 <None Include="..\Translations\ShellExtension\Danish.po" />
226 <None Include="..\Translations\ShellExtension\Dutch.po" />
227 <None Include="..\Translations\ShellExtension\English.pot" />
228 <None Include="..\Translations\ShellExtension\Finnish.po" />
229 <None Include="..\Translations\ShellExtension\French.po" />
230 <None Include="..\Translations\ShellExtension\Galician.po" />
231 <None Include="..\Translations\ShellExtension\German.po" />
232 <None Include="..\Translations\ShellExtension\Greek.po" />
233 <None Include="..\Translations\ShellExtension\Hungarian.po" />
234 <None Include="..\Translations\ShellExtension\Italian.po" />
235 <None Include="..\Translations\ShellExtension\Japanese.po" />
236 <None Include="..\Translations\ShellExtension\Korean.po" />
237 <None Include="..\Translations\ShellExtension\Lithuanian.po" />
238 <None Include="..\Translations\ShellExtension\Norwegian.po" />
239 <None Include="..\Translations\ShellExtension\Persian.po" />
240 <None Include="..\Translations\ShellExtension\Polish.po" />
241 <None Include="..\Translations\ShellExtension\Portuguese.po" />
242 <None Include="..\Translations\ShellExtension\Romanian.po" />
243 <None Include="..\Translations\ShellExtension\Russian.po" />
244 <None Include="..\Translations\ShellExtension\Serbian.po" />
245 <None Include="..\Translations\ShellExtension\Sinhala.po" />
246 <None Include="..\Translations\ShellExtension\Slovak.po" />
247 <None Include="..\Translations\ShellExtension\Slovenian.po" />
248 <None Include="..\Translations\ShellExtension\Spanish.po" />
249 <None Include="..\Translations\ShellExtension\Swedish.po" />
250 <None Include="..\Translations\ShellExtension\Tamil.po" />
251 <None Include="..\Translations\ShellExtension\Turkish.po" />
252 <None Include="..\Translations\ShellExtension\Ukrainian.po" />
253 <None Include="..\Translations\ShellExtension\UpdatePoFilesFromPotFile.ps1" />
254 <None Include="..\Translations\WinMerge\Arabic.po" />
255 <None Include="..\Translations\WinMerge\Basque.po" />
256 <None Include="..\Translations\WinMerge\Brazilian.po" />
257 <None Include="..\Translations\WinMerge\Bulgarian.po" />
258 <None Include="..\Translations\WinMerge\Catalan.po" />
259 <None Include="..\Translations\WinMerge\ChineseSimplified.po" />
260 <None Include="..\Translations\WinMerge\ChineseTraditional.po" />
261 <None Include="..\Translations\WinMerge\Corsican.po" />
262 <None Include="..\Translations\WinMerge\CreateMasterPotFile.vbs" />
263 <None Include="..\Translations\WinMerge\Croatian.po" />
264 <None Include="..\Translations\WinMerge\Czech.po" />
265 <None Include="..\Translations\WinMerge\Danish.po" />
266 <None Include="..\Translations\WinMerge\Dutch.po" />
267 <None Include="..\Translations\WinMerge\English.pot" />
268 <None Include="..\Translations\WinMerge\Finnish.po" />
269 <None Include="..\Translations\WinMerge\French.po" />
270 <None Include="..\Translations\WinMerge\Galician.po" />
271 <None Include="..\Translations\WinMerge\German.po" />
272 <None Include="..\Translations\WinMerge\Greek.po" />
273 <None Include="..\Translations\WinMerge\Hungarian.po" />
274 <None Include="..\Translations\WinMerge\Italian.po" />
275 <None Include="..\Translations\WinMerge\Japanese.po" />
276 <None Include="..\Translations\WinMerge\Korean.po" />
277 <None Include="..\Translations\WinMerge\Lithuanian.po" />
278 <None Include="..\Translations\WinMerge\Norwegian.po" />
279 <None Include="..\Translations\WinMerge\Persian.po" />
280 <None Include="..\Translations\WinMerge\Polish.po" />
281 <None Include="..\Translations\WinMerge\Portuguese.po" />
282 <None Include="..\Translations\WinMerge\Romanian.po" />
283 <None Include="..\Translations\WinMerge\Russian.po" />
284 <None Include="..\Translations\WinMerge\Serbian.po" />
285 <None Include="..\Translations\WinMerge\Sinhala.po" />
286 <None Include="..\Translations\WinMerge\Slovak.po" />
287 <None Include="..\Translations\WinMerge\Slovenian.po" />
288 <None Include="..\Translations\WinMerge\Spanish.po" />
289 <None Include="..\Translations\WinMerge\Swedish.po" />
290 <None Include="..\Translations\WinMerge\Tamil.po" />
291 <None Include="..\Translations\WinMerge\Turkish.po" />
292 <None Include="..\Translations\WinMerge\Ukrainian.po" />
293 <None Include="..\Translations\WinMerge\UpdatePoFilesFromPotFile.ps1" />
296 <CustomBuild Include="..\ShellExtension\ShellExtension\ShellExtension.rc">
297 <Outputs>$(ProjectDir)..\Translations\ShellExtension\MergeLang.lastbuild</Outputs>
298 <Command>pushd $(ProjectDir)..\Translations\ShellExtension
300 date /t > MergeLang.lastbuild
301 attrib -a English.pot
302 del English.pot.prev English.pot.flt English.pot.prev.flt 2> NUL
303 move English.pot English.pot.prev 2> NUL
304 cscript CreateMasterPotFile.vbs
305 attrib -a English.pot
306 findstr /v POT-Creation-Date English.pot > English.pot.flt
307 findstr /v POT-Creation-Date English.pot.prev > English.pot.prev.flt
308 fc English.pot.flt English.pot.prev.flt
309 if not errorlevel 1 (
310 copy /y English.pot.prev English.pot
314 del English.pot.prev English.pot.flt English.pot.prev.flt
316 powershell -ExecutionPolicy ByPass -File UpdatePoFilesFromPotFile.ps1
317 if "%POT_UPDATED%" == "true" (
319 for %%i in ("%LOCALAPPDATA%\Programs\Python\Python39" "C:\Python39") do (
320 if exist "%%~i\python.exe" (
321 "%%~i\python.exe" GetTranslationsStatus.py
330 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
331 <ImportGroup Label="ExtensionTargets">