Import Translated Profile Resources

lvanvugtlvanvugt Member Posts: 774
edited 2018-09-12 in NAV Three Tier
Did anyone use/test this already? It was first released last september with NAV 2015 CU 11 (and in NAV 2016).

I wasn’t aware of this feature so far and wanted to use it today (on NAV 2016 CU3), but when executing the action “Import Translated Profile Resources From Folder” on PAG9171 (Profile List) or PAG9170 (Profile Card) nothing happened.
Debugging the code I found the reason, which made me thing no one did use/test it at all.

The relevant code is to be found in COD9170 (Conf./Personalization Mgt.) in the local function ReadResourceFiles:
LOCAL ReadResourceFiles(ProfileID : Code[30];ServerFolder : Text) : Boolean
ClearResourcesForProfile(ProfileID);

IF (ServerFolder = ”) OR (NOT FileManagement.ServerDirectoryExists(ServerFolder)) THEN
  EXIT(FALSE);

Directories := Directory.GetDirectories(ServerFolder);

Why is it getting the directories as there only .resx files in “ServerFolder”? IMHO this code has to be:
LOCAL ReadResourceFiles(ProfileID : Code[30];ServerFolder : Text) : Boolean
ClearResourcesForProfile(ProfileID);

IF (ServerFolder = ”) OR (NOT FileManagement.ServerDirectoryExists(ServerFolder)) THEN
  EXIT(FALSE);

//LVV-BEGIN
//Directories := Directory.GetDirectories(ServerFolder);
Directories := Directory.GetFiles(ServerFolder);
//LVV-END

And then it does do the job. So this is, to me, clearly a bug. But maybe I overlook something as I cannot find anyone reporting this.

I have also reported it on msconnect: https://connect.microsoft.com/dynamicssuggestions/feedback/details/2386708/bug-in-import-translated-profile-resources-pag9170-pag9171
Luc van Vugt, fluxxus.nl
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community

Answers

Sign In or Register to comment.