Commit 507cee3c authored by Stéphane Albert's avatar Stéphane Albert

ENH: Traced QLocal::system().language() and .country() to console.

parent 1d2b87fa
......@@ -584,6 +584,15 @@ I18nCoreApplication
//
// 1. default UI language is english (no translation).
QLocale sys_lc( QLocale::system() );
// Trace system locale.
qWarning()
<< "Language:" << QLocale::languageToString( sys_lc.language() );
qWarning()
<< "Country:" << QLocale::countryToString( sys_lc.country() );
// Check system locale.
if( sys_lc.language() == QLocale::C ||
( sys_lc.language() == QLocale::English &&
sys_lc.country() == QLocale::UnitedStates ) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment