diff --git a/win/Projects/locale/locale.vcxproj b/win/Projects/locale/locale.vcxproj
index ed022c28c..a594131e2 100755
--- a/win/Projects/locale/locale.vcxproj
+++ b/win/Projects/locale/locale.vcxproj
@@ -15,9 +15,6 @@
locale
-
- $(MSBuildThisFileDirectory)..\..\packages\Gettext.Tools.0.19.8.1\tools\bin\msgfmt
-
Utility
v120
@@ -27,6 +24,9 @@
v120_xp
+
+
+
@@ -45,11 +45,29 @@
$(SolutionDir)$(Configuration)\
$(Configuration)\
-
-
- $(OutDir)Languages\%(Filename)\Audacity.mo
- Compiling %(Filename) locale
-
+
+
+ for %%I in ("%WXWIN%\locale\*.po") do call :fmt %%~nI
+goto :EOF
+
+:fmt
+if not exist "$(OutDir)Languages\%1" mkdir "$(OutDir)Languages\%1"
+msgfmt -o "$(OutDir)Languages\%1\wxstd.mo" "%WXWIN%\locale\%1.po"
+goto :EOF
+
+
+
+
+
+ for %%I in ("%WXWIN%\locale\*.po") do call :fmt %%~nI
+goto :EOF
+
+:fmt
+if not exist "$(OutDir)Languages\%1" mkdir "$(OutDir)Languages\%1"
+msgfmt -o "$(OutDir)Languages\%1\wxstd.mo" "%WXWIN%\locale\%1.po"
+goto :EOF
+
+
@@ -108,47 +126,11 @@
-
-
- $(OutDir)Languages\gl\wxstd.mo
- Compiling wxWidgets %(Filename) to gl locale
- false
-
-
- $(OutDir)Languages\ko\wxstd.mo
- Compiling wxWidgets %(Filename) to ko locale
- false
-
-
- $(OutDir)Languages\pt_PT\wxstd.mo
- Compiling wxWidgets %(Filename) to pt_PT locale
- false
-
-
- $(OutDir)Languages\%(Filename)\wxstd.mo
- Compiling wxWidgets %(Filename) locale
- false
-
-
-
-
-
-
-
- "$(MsgfmtCommand)" -o "%(OutputName)" "%(FullPath)"
- %(FullPath)
- %(OutputName)
-
-
-
-
-
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/win/Projects/locale/locale.vcxproj.filters b/win/Projects/locale/locale.vcxproj.filters
index ae7e87066..23408d9b6 100755
--- a/win/Projects/locale/locale.vcxproj.filters
+++ b/win/Projects/locale/locale.vcxproj.filters
@@ -176,6 +176,5 @@
Source Files
-
diff --git a/win/Projects/locale/packages.config b/win/Projects/locale/packages.config
deleted file mode 100644
index 893533338..000000000
--- a/win/Projects/locale/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/win/Projects/locale/po.props b/win/Projects/locale/po.props
new file mode 100755
index 000000000..64c779178
--- /dev/null
+++ b/win/Projects/locale/po.props
@@ -0,0 +1,21 @@
+
+
+
+ Midl
+ CustomBuild
+
+
+ _SelectedFiles;$(msgfmtDependsOn)
+
+
+
+ False
+ $(OutDir)Languages\%(Filename)\Audacity.mo
+ msgfmt [AllOptions] [AdditionalOptions] [inputs]
+ %(OutputName)
+ Compiling %(Filename) locale
+
+
+
\ No newline at end of file
diff --git a/win/Projects/locale/po.rules b/win/Projects/locale/po.rules
new file mode 100644
index 000000000..d17de9a71
--- /dev/null
+++ b/win/Projects/locale/po.rules
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/win/Projects/locale/po.targets b/win/Projects/locale/po.targets
new file mode 100755
index 000000000..f028472a6
--- /dev/null
+++ b/win/Projects/locale/po.targets
@@ -0,0 +1,83 @@
+
+
+
+
+
+ _msgfmt
+
+
+
+ $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml
+
+
+
+
+
+
+
+ @(msgfmt, '|')
+
+
+
+
+
+
+
+
+ $(ComputeLinkInputsTargets);
+ ComputemsgfmtOutput;
+
+
+ $(ComputeLibInputsTargets);
+ ComputemsgfmtOutput;
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/win/Projects/locale/po.xml b/win/Projects/locale/po.xml
new file mode 100755
index 000000000..303572a53
--- /dev/null
+++ b/win/Projects/locale/po.xml
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+ General
+
+
+
+
+ Command Line
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Execute Before
+
+
+ Specifies the targets for the build customization to run before.
+
+
+
+
+
+
+
+
+
+
+ Execute After
+
+
+ Specifies the targets for the build customization to run after.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Additional Options
+
+
+ Additional Options
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/win/audacity.sln b/win/audacity.sln
index 46b0f3ab5..4fd993972 100644
--- a/win/audacity.sln
+++ b/win/audacity.sln
@@ -111,6 +111,7 @@ Global
{7ABA0F80-94AE-4E82-AB89-2E1258212D59}.Release|Win32.Build.0 = Release|Win32
{BE9F28C5-058A-45F5-B2C1-D077BC058AAE}.Debug|Win32.ActiveCfg = Debug|Win32
{BE9F28C5-058A-45F5-B2C1-D077BC058AAE}.Release|Win32.ActiveCfg = Release|Win32
+ {BE9F28C5-058A-45F5-B2C1-D077BC058AAE}.Release|Win32.Build.0 = Release|Win32
{5284D863-3813-479F-BBF0-AC234E216BC6}.Debug|Win32.ActiveCfg = Debug|Win32
{5284D863-3813-479F-BBF0-AC234E216BC6}.Debug|Win32.Build.0 = Debug|Win32
{5284D863-3813-479F-BBF0-AC234E216BC6}.Release|Win32.ActiveCfg = Release|Win32