mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Missed a copy in last commit
This commit is contained in:
parent
5db51c3f92
commit
03aebb5347
21
win/Projects/locale/po.props
Executable file
21
win/Projects/locale/po.props
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup
|
||||||
|
Condition="'$(msgfmtBeforeTargets)' == '' and '$(msgfmtAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
|
||||||
|
<msgfmtBeforeTargets>Midl</msgfmtBeforeTargets>
|
||||||
|
<msgfmtAfterTargets>CustomBuild</msgfmtAfterTargets>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<msgfmtDependsOn
|
||||||
|
Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(msgfmtDependsOn)</msgfmtDependsOn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<msgfmt>
|
||||||
|
<Verbose>False</Verbose>
|
||||||
|
<OutputName>$(OutDir)Languages\%(Filename)\Audacity.mo</OutputName>
|
||||||
|
<CommandLineTemplate>msgfmt [AllOptions] [AdditionalOptions] [inputs]</CommandLineTemplate>
|
||||||
|
<Outputs>%(OutputName)</Outputs>
|
||||||
|
<ExecutionDescription>Compiling %(Filename) locale</ExecutionDescription>
|
||||||
|
</msgfmt>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
</Project>
|
83
win/Projects/locale/po.targets
Executable file
83
win/Projects/locale/po.targets
Executable file
@ -0,0 +1,83 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<PropertyPageSchema
|
||||||
|
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
|
||||||
|
<AvailableItemName
|
||||||
|
Include="msgfmt">
|
||||||
|
<Targets>_msgfmt</Targets>
|
||||||
|
</AvailableItemName>
|
||||||
|
</ItemGroup>
|
||||||
|
<UsingTask
|
||||||
|
TaskName="msgfmt"
|
||||||
|
TaskFactory="XamlTaskFactory"
|
||||||
|
AssemblyName="Microsoft.Build.Tasks.v4.0">
|
||||||
|
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
|
||||||
|
</UsingTask>
|
||||||
|
<Target
|
||||||
|
Name="_msgfmt"
|
||||||
|
BeforeTargets="$(msgfmtBeforeTargets)"
|
||||||
|
AfterTargets="$(msgfmtAfterTargets)"
|
||||||
|
Condition="'@(msgfmt)' != ''"
|
||||||
|
DependsOnTargets="$(msgfmtDependsOn);ComputemsgfmtOutput"
|
||||||
|
Outputs="@(msgfmt->Metadata('Outputs')->Distinct())"
|
||||||
|
Inputs="@(msgfmt);%(msgfmt.AdditionalDependencies);$(MSBuildProjectFile)">
|
||||||
|
<ItemGroup
|
||||||
|
Condition="'@(SelectedFiles)' != ''">
|
||||||
|
<msgfmt
|
||||||
|
Remove="@(msgfmt)"
|
||||||
|
Condition="'%(Identity)' != '@(SelectedFiles)'" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<msgfmt_tlog
|
||||||
|
Include="%(msgfmt.Outputs)"
|
||||||
|
Condition="'%(msgfmt.Outputs)' != '' and '%(msgfmt.ExcludedFromBuild)' != 'true'">
|
||||||
|
<Source>@(msgfmt, '|')</Source>
|
||||||
|
</msgfmt_tlog>
|
||||||
|
</ItemGroup>
|
||||||
|
<Message
|
||||||
|
Importance="High"
|
||||||
|
Text="%(msgfmt.ExecutionDescription)" />
|
||||||
|
<WriteLinesToFile
|
||||||
|
Condition="'@(msgfmt_tlog)' != '' and '%(msgfmt_tlog.ExcludedFromBuild)' != 'true'"
|
||||||
|
File="$(TLogLocation)$(ProjectName).write.1.tlog"
|
||||||
|
Lines="^%(msgfmt_tlog.Source);@(msgfmt_tlog->'%(Fullpath)')" />
|
||||||
|
<msgfmt
|
||||||
|
Condition="'@(msgfmt)' != '' and '%(msgfmt.ExcludedFromBuild)' != 'true'"
|
||||||
|
CommandLineTemplate="%(msgfmt.CommandLineTemplate)"
|
||||||
|
Verbose="%(msgfmt.Verbose)"
|
||||||
|
OutputName="%(msgfmt.OutputName)"
|
||||||
|
AdditionalOptions="%(msgfmt.AdditionalOptions)"
|
||||||
|
Inputs="@(msgfmt)" />
|
||||||
|
</Target>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ComputeLinkInputsTargets>
|
||||||
|
$(ComputeLinkInputsTargets);
|
||||||
|
ComputemsgfmtOutput;
|
||||||
|
</ComputeLinkInputsTargets>
|
||||||
|
<ComputeLibInputsTargets>
|
||||||
|
$(ComputeLibInputsTargets);
|
||||||
|
ComputemsgfmtOutput;
|
||||||
|
</ComputeLibInputsTargets>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Target
|
||||||
|
Name="ComputemsgfmtOutput"
|
||||||
|
Condition="'@(msgfmt)' != ''">
|
||||||
|
<ItemGroup>
|
||||||
|
<msgfmtDirsToMake
|
||||||
|
Condition="'@(msgfmt)' != '' and '%(msgfmt.ExcludedFromBuild)' != 'true'"
|
||||||
|
Include="%(msgfmt.Outputs)" />
|
||||||
|
<Link
|
||||||
|
Include="%(msgfmtDirsToMake.Identity)"
|
||||||
|
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
|
||||||
|
<Lib
|
||||||
|
Include="%(msgfmtDirsToMake.Identity)"
|
||||||
|
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
|
||||||
|
<ImpLib
|
||||||
|
Include="%(msgfmtDirsToMake.Identity)"
|
||||||
|
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
|
||||||
|
</ItemGroup>
|
||||||
|
<MakeDir
|
||||||
|
Directories="@(msgfmtDirsToMake->'%(RootDir)%(Directory)')" />
|
||||||
|
</Target>
|
||||||
|
</Project>
|
140
win/Projects/locale/po.xml
Executable file
140
win/Projects/locale/po.xml
Executable file
@ -0,0 +1,140 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:transformCallback="Microsoft.Cpp.Dev10.ConvertPropertyCallback">
|
||||||
|
<Rule
|
||||||
|
Name="msgfmt"
|
||||||
|
PageTemplate="tool"
|
||||||
|
DisplayName="Compile Locale"
|
||||||
|
Order="200">
|
||||||
|
<Rule.DataSource>
|
||||||
|
<DataSource
|
||||||
|
Persistence="ProjectFile"
|
||||||
|
ItemType="msgfmt" />
|
||||||
|
</Rule.DataSource>
|
||||||
|
<Rule.Categories>
|
||||||
|
<Category
|
||||||
|
Name="General">
|
||||||
|
<Category.DisplayName>
|
||||||
|
<sys:String>General</sys:String>
|
||||||
|
</Category.DisplayName>
|
||||||
|
</Category>
|
||||||
|
<Category
|
||||||
|
Name="Command Line"
|
||||||
|
Subtype="CommandLine">
|
||||||
|
<Category.DisplayName>
|
||||||
|
<sys:String>Command Line</sys:String>
|
||||||
|
</Category.DisplayName>
|
||||||
|
</Category>
|
||||||
|
</Rule.Categories>
|
||||||
|
<StringListProperty
|
||||||
|
Name="Inputs"
|
||||||
|
Category="Command Line"
|
||||||
|
IsRequired="true"
|
||||||
|
Switch=" ">
|
||||||
|
<StringListProperty.DataSource>
|
||||||
|
<DataSource
|
||||||
|
Persistence="ProjectFile"
|
||||||
|
ItemType="msgfmt"
|
||||||
|
SourceType="Item" />
|
||||||
|
</StringListProperty.DataSource>
|
||||||
|
</StringListProperty>
|
||||||
|
<BoolProperty
|
||||||
|
Name="Verbose"
|
||||||
|
HelpContext="0"
|
||||||
|
DisplayName="Verbose"
|
||||||
|
Description="Increase verbosity level"
|
||||||
|
Switch="-v" />
|
||||||
|
<StringListProperty
|
||||||
|
Name="OutputName"
|
||||||
|
HelpContext="0"
|
||||||
|
DisplayName="Output File"
|
||||||
|
Description="Specifies a name to override the default file name"
|
||||||
|
Separator=";"
|
||||||
|
Switch="-o "[value]"" />
|
||||||
|
<StringProperty
|
||||||
|
Name="CommandLineTemplate"
|
||||||
|
DisplayName="Command Line"
|
||||||
|
Visible="False"
|
||||||
|
IncludeInCommandLine="False" />
|
||||||
|
<DynamicEnumProperty
|
||||||
|
Name="msgfmtBeforeTargets"
|
||||||
|
Category="General"
|
||||||
|
EnumProvider="Targets"
|
||||||
|
IncludeInCommandLine="False">
|
||||||
|
<DynamicEnumProperty.DisplayName>
|
||||||
|
<sys:String>Execute Before</sys:String>
|
||||||
|
</DynamicEnumProperty.DisplayName>
|
||||||
|
<DynamicEnumProperty.Description>
|
||||||
|
<sys:String>Specifies the targets for the build customization to run before.</sys:String>
|
||||||
|
</DynamicEnumProperty.Description>
|
||||||
|
<DynamicEnumProperty.ProviderSettings>
|
||||||
|
<NameValuePair
|
||||||
|
Name="Exclude"
|
||||||
|
Value="^msgfmtBeforeTargets|^Compute" />
|
||||||
|
</DynamicEnumProperty.ProviderSettings>
|
||||||
|
<DynamicEnumProperty.DataSource>
|
||||||
|
<DataSource
|
||||||
|
Persistence="ProjectFile"
|
||||||
|
HasConfigurationCondition="true" />
|
||||||
|
</DynamicEnumProperty.DataSource>
|
||||||
|
</DynamicEnumProperty>
|
||||||
|
<DynamicEnumProperty
|
||||||
|
Name="msgfmtAfterTargets"
|
||||||
|
Category="General"
|
||||||
|
EnumProvider="Targets"
|
||||||
|
IncludeInCommandLine="False">
|
||||||
|
<DynamicEnumProperty.DisplayName>
|
||||||
|
<sys:String>Execute After</sys:String>
|
||||||
|
</DynamicEnumProperty.DisplayName>
|
||||||
|
<DynamicEnumProperty.Description>
|
||||||
|
<sys:String>Specifies the targets for the build customization to run after.</sys:String>
|
||||||
|
</DynamicEnumProperty.Description>
|
||||||
|
<DynamicEnumProperty.ProviderSettings>
|
||||||
|
<NameValuePair
|
||||||
|
Name="Exclude"
|
||||||
|
Value="^msgfmtAfterTargets|^Compute" />
|
||||||
|
</DynamicEnumProperty.ProviderSettings>
|
||||||
|
<DynamicEnumProperty.DataSource>
|
||||||
|
<DataSource
|
||||||
|
Persistence="ProjectFile"
|
||||||
|
ItemType=""
|
||||||
|
HasConfigurationCondition="true" />
|
||||||
|
</DynamicEnumProperty.DataSource>
|
||||||
|
</DynamicEnumProperty>
|
||||||
|
<StringListProperty
|
||||||
|
Name="Outputs"
|
||||||
|
DisplayName="Outputs"
|
||||||
|
Visible="False"
|
||||||
|
IncludeInCommandLine="False" />
|
||||||
|
<StringProperty
|
||||||
|
Name="ExecutionDescription"
|
||||||
|
DisplayName="Execution Description"
|
||||||
|
Visible="False"
|
||||||
|
IncludeInCommandLine="False" />
|
||||||
|
<StringListProperty
|
||||||
|
Name="AdditionalDependencies"
|
||||||
|
DisplayName="Additional Dependencies"
|
||||||
|
IncludeInCommandLine="False"
|
||||||
|
Visible="false" />
|
||||||
|
<StringProperty
|
||||||
|
Subtype="AdditionalOptions"
|
||||||
|
Name="AdditionalOptions"
|
||||||
|
Category="Command Line">
|
||||||
|
<StringProperty.DisplayName>
|
||||||
|
<sys:String>Additional Options</sys:String>
|
||||||
|
</StringProperty.DisplayName>
|
||||||
|
<StringProperty.Description>
|
||||||
|
<sys:String>Additional Options</sys:String>
|
||||||
|
</StringProperty.Description>
|
||||||
|
</StringProperty>
|
||||||
|
</Rule>
|
||||||
|
<ItemType
|
||||||
|
Name="msgfmt"
|
||||||
|
DisplayName="Compile Locale" />
|
||||||
|
<FileExtension
|
||||||
|
Name="*.po"
|
||||||
|
ContentType="msgfmt" />
|
||||||
|
<ContentType
|
||||||
|
Name="msgfmt"
|
||||||
|
DisplayName="Compile Locale"
|
||||||
|
ItemType="msgfmt" />
|
||||||
|
</ProjectSchemaDefinitions>
|
Loading…
x
Reference in New Issue
Block a user