I'm not sure, but maybe it works by writing the current language string variable to a variable which is Retain (Persistant):
//WhentheHMIisrestartedcallthefollowingcode:
IFNOT(xInitDone)THEN
    IFsRetainLanguage<>''THEN
         VisuElems.CURRENTLANGUAGE :=sRetainLanguage;
    END_IF;
    xInitDone :=TRUE;END_IF;//AfterthiswritethecurrentlanguagetotheretainvariablesRetainLanguage :=VisuElems.CURRENTLANGUAGE;
Please let us know if this works
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
everytime after reboot hmi, hmi will change back to default language.
I'm not sure, but maybe it works by writing the current language string variable to a variable which is Retain (Persistant):
Please let us know if this works