International Localization

Top  Previous  Next

The -i option was added in release 1.24 to offer the user the ability to report date and time fields in localized format, that is, the format that is standard for your operating systems. Previous versions of the program selfishly reported dates and times in USA standard format.

 

For example, if your native language is French, a numeric date would be reported in DD-MM-YYYY format, rather than the MM-DD-YYYY format.  Text dates would appear in French, rather than English as well.

 

The software determines your localization in what ever method is standard for your operating system.  The non-Windows distributions look at the environment variable, LC_ALL, which is usually set up by the system administrator at O/S installation time. Windows-family operating systems allow the user to define the country and localization through the Control Panel -> Regional Options.

 

Note:  The reason we added this new flag, rather than make localized date/time fields the default everywhere, was to protect users that might be using external scripts that utilize the date/time fields. This way, no end-user scripts will be broken.  The exception is for fields that display once and are not polled, such as the login banner you see if running an eval version of the program or the timestamp in the -mpexport file.

 

See the setlocale man pages in your UNIX or LINUX operating system to learn more about the locale command and how to set it. Windows-family computers also have localization capability, and SANtools software will report localized date/time information on PCs which have localization enabled.