Co-authored-by: tj_devel709 <antlambe@microsoft.com>
This commit is contained in:
TJ Lambert 2021-06-01 09:51:38 -05:00 коммит произвёл GitHub
Родитель 0864407f78
Коммит 640467a03f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 34 добавлений и 26 удалений

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

@ -2,34 +2,15 @@
Messages for new MSBuild error codes live in `MSBStrings.resx`. Messages for new MSBuild error codes live in `MSBStrings.resx`.
If changes are made to `MBStrings.resx`, you will hit: * You can now make changes to `MSBStrings.resx` in the Visual Studio for Mac IDE or from any text editor.
XliffTasks.targets(91,5): error : 'xlf\MSBStrings.cs.xlf' is out-of-date with 'MSBStrings.resx'. * If you make changes in the IDE, you should see changes automatically copy into MSBStrings.Designer.cs. Be sure to rebuild the project after making your changes.
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: * If you make changes from a text editor, be sure to run `make` inside the xamarin-macios/msbuild/Xamarin.Localization.MSBuild directory.
$ msbuild msbuild/Xamarin.Localization.MSBuild/Xamarin.Localization.MSBuild.csproj -restore -t:UpdateXlf See [Localization Wiki][Localization-wiki] for more details on our localization process
For `mtouch`, `Errors.resx` contains the localizable strings. Use or the [OneLocBuild Wiki][OneLocBuild-wiki] for information on OneLocBuild.
these commands instead to update `.xlf` files:
$ nuget restore tools [Localization-wiki]: https://github.com/xamarin/maccore/wiki/Localization
$ msbuild tools/mtouch/mtouch.csproj -t:UpdateXlf [OneLocBuild-wiki]: https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task
For `generator`, `src/Resources.resx`, contains the localizable
strings. To update the `.xlf` files:
$ nuget restore src
$ msbuild src/generator.csproj -t:UpdateXlf
*NOTE: `nuget restore` can be used instead of the MSBuild `-restore`
switch for projects using `packages.config`*
See [dotnet/xliff-tasks][xliff-tasks] or [Xamarin.Android's
documentation][xamarin-android] for details.
[xliff-tasks]: https://github.com/dotnet/xliff-tasks
[xamarin-android]: https://github.com/xamarin/xamarin-android/blob/master/Documentation/workflow/Localization.md

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

@ -188,3 +188,14 @@ For example, to build an API for all of iOS but only 64-bit OS X (Xamarin.Mac):
... ...
#endif #endif
``` ```
## Source Localization ##
Coming soon!
See [Localization Wiki][Localization-wiki] for more details on our localization process
or the [OneLocBuild Wiki][OneLocBuild-wiki] for information on OneLocBuild.
[Localization-wiki]: https://github.com/xamarin/maccore/wiki/Localization
[OneLocBuild-wiki]: https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task

16
tools/mtouch/README.md Normal file
Просмотреть файл

@ -0,0 +1,16 @@
# Mtouch Localization
Messages for new mtouch error codes live in `Errors.resx`.
* You can now make changes to `Errors.resx` in the Visual Studio for Mac IDE or from any text editor.
* If you make changes in the IDE, you should see changes automatically copy into Errors.Designer.cs. Be sure to rebuild the project after making your changes.
* If you make changes from a text editor, be sure to run `make` inside the xamarin-macios/tools/mtouch directory.
See [Localization Wiki][Localization-wiki] for more details on our localization process
or the [OneLocBuild Wiki][OneLocBuild-wiki] for information on OneLocBuild.
[Localization-wiki]: https://github.com/xamarin/maccore/wiki/Localization
[OneLocBuild-wiki]: https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task