I need to retrieve locale in which the notes client is running in, en-US for example. This is the information normally located in the notes.ini file under the ContentLanguage variable. My attempt to load this variable from the notes.ini file using java.util.Properties fails in cases when values are written in non unicode encoding.
I need this information from org.eclipse.ui.plugin.AbstractUIPlugin.start() method.
Subject: NLS Development recommendations in Lotus Expeditor, Notes, Sametime, and Symphony
Your question prompted me to publish a best practices article on externalizing messages in Expeditor, Notes, Sametime, and Symphony plug-ins. The article is at http://www-10.lotus.com/ldd/lewiki.nsf/dx/NLS_Development_recommendations_in_Lotus_Expeditor_Notes_Sametime_and_Symphony.
To answer your question directly, calling java.util.Locale.getDefault() will return the locale in which the system is currently running.
Subject: That does not answer the qustion
java.util.Locale represents the VM locale (that will normally be equivalent to the OS locale).
I want to know what the Lotus Notes locale is (this can be different from OS locale); And more specifically, the content language (en-au, for example).
The value of the ContentLanguage variable in notes.ini.