sepinf-inc / IPED

IPED Digital Forensic Tool. It is an open source software that can be used to process and analyze digital evidence, often seized at crime scenes by law enforcement or in a corporate investigation by private examiners.
Other
893 stars 214 forks source link

Load localization configuration early #1979

Closed patrickdalla closed 8 months ago

patrickdalla commented 8 months ago

When making localization code for APK parser, I have noted that the code in getString method of iped.parsers.util.Messages is executed before LocaleConfig proper loading, leading to the use of system configured locale instead of locale configured in "LocalConfig.txt".

lfcnassif commented 8 months ago

Thanks @patrickdalla. Is this happening from command line or inside an IDE? Does this affect any other parser in last released version? If yes, we should tag this as bug.

patrickdalla commented 8 months ago

It seems this "error" only occurs from inside my eclipse IDE. Running from command line, the localization works well. Bootstrap loads the locale on LocalConfig before taskinstaller. So it is not a BUG.

lfcnassif commented 8 months ago

Thanks for double checking!