Prepare for automated localization (#5119)

This pull request includes a localization config file that identifies
the modules we need to localize. It also moves us back to the
`Resources\LANGUAGE\Resources.resw` resource layout, but using wildcards
so that the build system can pick up any number of languages.
This commit is contained in:
Dustin L. Howett (MSFT) 2020-03-25 14:06:59 -07:00 коммит произвёл GitHub
Родитель 5de9fa9cf3
Коммит 0be070f340
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
13 изменённых файлов: 22 добавлений и 10 удалений

Просмотреть файл

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Modules>
<Module name="Microsoft.WindowsTerminal" tdbuildteamid="7105">
<File location="TerminalApp"
path="%BUILD_SOURCESDIRECTORY%\src\cascadia\TerminalApp\Resources\en-US\Resources.resw" />
<File location="TerminalControl"
path="%BUILD_SOURCESDIRECTORY%\src\cascadia\TerminalControl\Resources\en-US\Resources.resw" />
<File location="TerminalConnection"
path="%BUILD_SOURCESDIRECTORY%\src\cascadia\TerminalConnection\Resources\en-US\Resources.resw" />
<File location="WindowsTerminalUniversal"
path="%BUILD_SOURCESDIRECTORY%\src\cascadia\WindowsTerminalUniversal\Resources\en-US\Resources.resw" />
<File location="CascadiaPackage"
path="%BUILD_SOURCESDIRECTORY%\src\cascadia\CascadiaPackage\Resources\en-US\Resources.resw" />
</Module>
</Modules>

Просмотреть файл

@ -43,7 +43,7 @@
<!-- Resources -->
<!-- This resw only defines things that are used in this package's AppxManifest,
so it's not in the common resource items. -->
<PRIResource Include="Resources\Resources.language-en.resw" />
<PRIResource Include="Resources\*\Resources.resw" />
<PRIResource Include="Resources\Resources.resw" />
</ItemGroup>
<PropertyGroup Condition="'$(WindowsTerminalReleaseBuild)'!='true'">

Просмотреть файл

@ -216,7 +216,7 @@
</ItemGroup>
<!-- ========================= Misc Files ======================== -->
<ItemGroup>
<PRIResource Include="../Resources/Resources.language-en.resw" />
<PRIResource Include="..\Resources\*\Resources.resw" />
<None Include="../packages.config" />
</ItemGroup>
<!-- ========================= Project References ======================== -->

Просмотреть файл

@ -59,7 +59,7 @@
<Midl Include="TelnetConnection.idl" />
</ItemGroup>
<ItemGroup>
<PRIResource Include="Resources/Resources.language-en.resw" />
<PRIResource Include="Resources\*\Resources.resw" />
<None Include="packages.config" />
</ItemGroup>
<!-- ========================= Project References ======================== -->

Просмотреть файл

@ -85,7 +85,7 @@
<None Include="TerminalControl.def" />
</ItemGroup>
<ItemGroup>
<PRIResource Include="Resources/Resources.language-en.resw" />
<PRIResource Include="Resources\*\Resources.resw" />
</ItemGroup>
<!-- ========================= Project References ======================== -->
<ItemGroup>

Просмотреть файл

@ -45,7 +45,7 @@
<Natvis Include="$(SolutionDir)tools\ConsoleTypes.natvis" />
</ItemGroup>
<ItemGroup>
<PRIResource Include="Resources/Resources.language-en.resw">
<PRIResource Include="Resources\*\Resources.resw">
<Filter>Resources</Filter>
</PRIResource>
</ItemGroup>

Просмотреть файл

@ -123,7 +123,7 @@
<!-- Resources -->
<!-- This resw only defines things that are used in this package's AppxManifest,
so it's not in the common resource items. -->
<PRIResource Include="Resources\Resources.language-en.resw" />
<PRIResource Include="Resources\*\Resources.resw" />
<PRIResource Include="Resources\Resources.resw" />
<PRIResource Include="Resources\Resources.devicefamily-core.resw" />
</ItemGroup>

Просмотреть файл

@ -18,15 +18,12 @@
<Filter Include="Resources">
<UniqueIdentifier>{4718a03b-f768-4d96-9106-096573a315a3}</UniqueIdentifier>
</Filter>
<Filter Include="Resources\en-US">
<UniqueIdentifier>{943541d5-c1da-435d-9f61-85d1b118f041}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<PRIResource Include="Resources.devicefamily-core.resw">
<Filter>Resources</Filter>
</PRIResource>
<PRIResource Include="Resources.language-en.resw">
<PRIResource Include="Resources\*\Resources.resw">
<Filter>Resources</Filter>
</PRIResource>
<PRIResource Include="Resources.resw">