89d621e373
Fixes: https://github.com/xamarin/xamarin-macios/issues/8211 Context: https://github.com/xamarin/xamarin-android/blob/master/Documentation/workflow/Localization.md A list of MSBuild error codes came back from the translators. These had no `<comment/>` fields filled out at all. I added these, so it should be much clearer what the messages actually mean. * E0044 * E0094 * E0098 * E0124 * E0128 * E0130 * E0131 * E0133 * E0140 * E0156 * E7022_A * E7057 * M0119 * W0020 * W0022 Error codes that did not appear to be used anymore: * E0096 I also added a short `README.md` so others can more easily pick this up. |
||
---|---|---|
.. | ||
xlf | ||
MSBStrings.Designer.cs | ||
MSBStrings.resx | ||
README.md | ||
Xamarin.Localization.MSBuild.csproj |
README.md
MSBuild Localization
Messages for new MSBuild error codes live in MSBStrings.resx
.
If changes are made to MBStrings.resx
, you will hit:
XliffTasks.targets(91,5): error : 'xlf\MSBStrings.cs.xlf' is out-of-date with 'MSBStrings.resx'.
Run `msbuild /t:UpdateXlf` to update .xlf files or set UpdateXlfOnBuild=true to update them on every build,
but note that it is strongly discouraged to set UpdateXlfOnBuild=true in official/CI build environments
as they should not modify source code during the build.
To regenerate the .xlf
files run:
$ msbuild Xamarin.Localization.MSBuild.csproj -restore -t:UpdateXlf
See dotnet/xliff-tasks or Xamarin.Android's documentation for details.