Use "system" for "use system language", and don't try to print a null string.
authorGuy Harris <guy@alum.mit.edu>
Thu, 28 Apr 2016 19:33:28 +0000 (12:33 -0700)
committerGuy Harris <guy@alum.mit.edu>
Thu, 28 Apr 2016 19:34:02 +0000 (19:34 +0000)
commit232b2de7bb008a2bc7c3e5eece04aab16215d24c
tree488390f23d6b9c2d18068889b716425466879c88
parent7150588d23d5ab844dd99507ec94831375a07b67
Use "system" for "use system language", and don't try to print a null string.

Add a #define USE_SYSTEM_LANGUAGE for the language string meaning "use
the system setting", and use that instead of hardcoding "system" in
various places.

If "language" is null, don't try to write it to the file with fprintf()
- on *most* systems, that prints "(null)", but on some systems, such as
Solaris, it *crashes*.  Write USE_SYSTEM_LANGUAGE instead.  Check for
"(null)" and treat it as meaning "use the system language".

Map "auto" to "use the system language" as well, for backwards
compatibility.

Change-Id: Iba9be540a5139e9cca8bddd0761ee4cbf0f79a49
Reviewed-on: https://code.wireshark.org/review/15147
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ui/language.c
ui/language.h
ui/qt/main_window_preferences_frame.cpp
ui/qt/wireshark_application.cpp