+
+/*!
+ \brief Specify default language for the application.
+*/
+QString SUIT_ResourceMgr::defaultLanguage() const
+{
+ QString language;
+
+ // Try language, given in arguments
+ QStringList args = QApplication::arguments();
+ for (int i = 1; i < args.count(); i++) {
+ QRegExp rx ("--language=(.+)");
+ if ( rx.indexIn( args[i] ) >= 0 && rx.captureCount() > 0 ) {
+ language = rx.cap(1);
+ }
+ }
+
+ return language;
+}