Skip to content

Conversation

@tmeschter
Copy link

Do not merge this as-is. This is meant only to demonstrate some of the changes necessary to fix https://devdiv.visualstudio.com/DevDiv/_workitems/edit/817160/.

Note also the added target shouldn't be necessary once F# is migrated to use dotnet/Arcade as I believe it already exists in that SDK.

For reasons that have been lost to the sands of time, F# treats the "en" locale as a localization target even though all the translatable resources start out in English. The build produces en resource assemblies, which are never used, while still embedding the original English resources in the primary assemblies for use as the neutral locale.

This is unnecessary and causes problems elsewhere. This commit removes en from the list of localization targets and deletes all the *.en.xlf files.
Consume the localized resources produced for menu items, buttons, etc. in FSharp.ProjectSystem.FSharp.dll. Because of conflicts caused by having en as both a localization target and being used as the "neutral" locale, localization of MenusAndCommands.vsct was turned off. We still had the associated .xlf files and the loc team was periodically updating them, but we never consumed their contents. As such, all the text from that file is unlocalized.

Now that we've stopped treating en as a localization target we can turn it back on. This does require adding an MSBuild target to work around a different issue (namely, the VSSDK really, really wants you to put *all* resources in separate assemblies).
@tmeschter
Copy link
Author

@brettfo @KevinRansom FYI.

@brettfo brettfo mentioned this pull request Mar 23, 2019
@brettfo brettfo closed this Mar 23, 2019
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.

2 participants