You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localization issue of .adml files (came across with de-AT where there is only de-DE subdir)
additional code in Function AddSingleAdmx as follows:
Dim admlPath = Path.ChangeExtension(AdmxPath.Replace(fileTitle, LanguageCode & "" & fileTitle), "adml")
--------- insert starts
If Not File.Exists(admlPath) Then
'try find another localization language flavor
For Each _locDirectory As String In Directory.GetDirectories(Path.GetDirectoryName(AdmxPath), LanguageCode.Split("-")(0) & "-*")
admlPath = Path.Combine(_locDirectory, Path.ChangeExtension(fileTitle, "adml"))
If File.Exists(admlPath) Then Exit For
Next
End If
----------- insert ends
If Not File.Exists(admlPath) Then admlPath = Path.ChangeExtension(AdmxPath.Replace(fileTitle, "en-US" & fileTitle), "adml")
The text was updated successfully, but these errors were encountered:
Hi Ben, glad to help.
ad 1: The inability to use IsNot seemingly is an issue of vs2012 I used.
ad 2: looked at the source, should work (I'm not at the machine containing the source now), executable works!
Great job, thanks a lot
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/operators/isnot-operator#remarks
additional code in Function AddSingleAdmx as follows:
Dim admlPath = Path.ChangeExtension(AdmxPath.Replace(fileTitle, LanguageCode & "" & fileTitle), "adml")
--------- insert starts
If Not File.Exists(admlPath) Then
'try find another localization language flavor
For Each _locDirectory As String In Directory.GetDirectories(Path.GetDirectoryName(AdmxPath), LanguageCode.Split("-")(0) & "-*")
admlPath = Path.Combine(_locDirectory, Path.ChangeExtension(fileTitle, "adml"))
If File.Exists(admlPath) Then Exit For
Next
End If
----------- insert ends
If Not File.Exists(admlPath) Then admlPath = Path.ChangeExtension(AdmxPath.Replace(fileTitle, "en-US" & fileTitle), "adml")
The text was updated successfully, but these errors were encountered: