Wednesday, August 30, 2017

Policy Plus - Download ADMX Files for non-included languages

A couple weeks ago, an issue report was filed on Policy Plus stating that the Download ADMX Files feature was unable to move the ADMX files. Today I discovered that the user account this was happening on was set to en-GB (with pt-PT probably the system language). The ADMX package from Microsoft only includes a few common ADML languages, but Policy Plus always attempts to move the ADML subfolder named the same as the current culture. If the current culture's code isn't an included subfolder, that fails.

The solution was to first check that the ADML subfolder exists, and if it doesn't, just fall through to the English files. Language-related bugs are one of the perils of developing only on an English system.

The fix is live on GitHub.

No comments:

Post a Comment