deviceupdatesui/deviceupdates/src/main.cpp
changeset 56 a9afc3a8dbfa
parent 43 88e14c3d4c4f
child 67 fdbfe0a95492
--- a/deviceupdatesui/deviceupdates/src/main.cpp	Fri Aug 06 18:56:37 2010 +0530
+++ b/deviceupdatesui/deviceupdates/src/main.cpp	Thu Aug 19 17:35:23 2010 +0530
@@ -51,9 +51,12 @@
    if( argc == 2) // Launch via Control Panel
     {    	
     	QTranslator *cptranslator = new QTranslator();
-    	cptranslator->load("control_panel_" + lang, path);
-    	qApp->installTranslator(cptranslator);
-    	app.setApplicationName(hbTrId("txt_applib_list_control_panel"));
+    	fine = cptranslator->load("control_panel_" + lang, path);
+    	if(fine)
+    		qApp->installTranslator(cptranslator);
+    	else
+   			qDebug("control panel translator loading failed");
+      app.setApplicationName(hbTrId("txt_cp_title_control_panel"));
     }
     else
     {