Skip to content

Neutral xlf - #1288

Merged
cdmihai merged 2 commits into
dotnet:masterfrom
cdmihai:neutralXlf
Nov 4, 2016
Merged

cdmihai merged 2 commits into
dotnet:masterfrom
cdmihai:neutralXlf

Conversation

@cdmihai

@cdmihai cdmihai commented Oct 31, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@cdmihai cdmihai Oct 31, 2016 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file was edited via VS for the first time, so there are many non-whitespace preserving edits. And a GUID :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no resources in this project to localize.

@cdmihai

cdmihai commented Nov 1, 2016

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test this please

@rainersigwald rainersigwald left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok, but I haven't been able to sink deeply into it.

@cdmihai

cdmihai commented Nov 2, 2016

Copy link
Copy Markdown
Contributor Author

Basically a neutral xlf file is a copy of a localized one but without any of the language specific xml elements (the <target> tag under <trans-unit> and the target-language attribute on <file> tags).

@cdmihai

cdmihai commented Nov 4, 2016

Copy link
Copy Markdown
Contributor Author

@rainersigwald Can I merge this in?

@cdmihai
cdmihai merged commit 0cd5b42 into dotnet:master Nov 4, 2016
@cdmihai
cdmihai deleted the neutralXlf branch February 2, 2017 01:36
DustinCampbell added a commit to DustinCampbell/msbuild that referenced this pull request Jul 23, 2026
These 6 neutral, no-language .xlf files (e.g. Resources/xlf/Strings.xlf)
are legacy artifacts that are no longer maintained by any build tooling.

History:
 - 0cd5b42 (dotnet#1288, 2016-11-04) "Neutral xlf" introduced them via a
   custom in-repo task (build/LocalizationTasks/ConvertToNeutralXlf.cs)
   and a CreateNeutralXlf target. They were regenerated by that custom
   localization system through late 2017.
 - d2ad02e (2018-01-04) "Enable XliffTasks" switched the repo to the
   external XliffTasks package. Its UpdateXlf task only generates and
   validates per-language files (Strings.<lang>.xlf); it never produces
   a neutral file.
 - 6370bbd (2018-01-03) "Remove old build infrastructure" and
   299f624 (2018-01-04) "Delete old LocalizationTasks" removed the
   custom ConvertToNeutralXlf generator entirely.

Since that January 2018 migration the neutral files have been orphaned:
UpdateXlf ignores them, ErrorOnOutOfDateXlf does not validate them, and
the only subsequent edits were incidental hand-updates that let them
silently drift out of sync with the source .resx. A full build.cmd with
these files removed succeeds with 0 warnings/0 errors and does not
regenerate them, confirming they are unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants