sleuthkit/autopsy — pull request #731 by mrtizmo (2014-05-20 20:33:06+00:00)
Title: Localization of Autopsy auto update notification bubble

While the file updates_ja.xml does not need to exist within the Autopsy source repo, I thought that adding it to the root of the Core directory along side the autopsy-update.xml seems like a logical place to store it.

As I stated in my commit log...

The file updates_ja.xml needs to be placed on the Autopsy web server next to http://sleuthkit.org/autopsy/updates.xml and should be accessible at http://sleuthkit.org/autopsy/updates_ja.xml. This file should be updated anytime that updates.xml is updated. Or more specifically, any time you want a user running with the JA locale to be notified of a software update. While the developers may not be able to read the Japanese text in the updates_ja.xml when they want to make changes, they can at least read the Autopsy version number and simply update that in most cases. If the whole notification message needs to be changed, we will have to manually translate that new version of the message.

According to the netbeans docs, there is no way to localize a notification message. They only allow localization of the module name and description, which exists at the root of the module environment. So, my way around that was to rely on the localization of the URL to download the proper .xml file. When a user has the JA locale set, they will get the URL for the updates_ja.xml instead of the updates.xml.