00001 /* 00002 * Secret of Evermore SRAM Editor 00003 * Copyright (C) 2006,2008 emuWorks 00004 * http://games.technoplaza.net/ 00005 * 00006 * This file is part of Secret of Evermore SRAM Editor. 00007 * 00008 * Secret of Evermore SRAM Editor is free software; you can redistribute it 00009 * and/or modify it under the terms of the GNU General Public License as 00010 * published by the Free Software Foundation; either version 2 of the License, 00011 * or (at your option) any later version. 00012 * 00013 * Secret of Evermore SRAM Editor is distributed in the hope that it will be 00014 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with Secret of Evermore SRAM Editor; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 // $Id: soesrame.cc,v 1.23 2008/12/18 05:54:28 jdratlif Exp $ 00024 00025 #include <QApplication> 00026 #include <QTranslator> 00027 00028 #include "view/mainwindow.hh" 00029 00030 using namespace soesrame; 00031 00032 int main(int argc, char **argv) { 00033 QApplication app(argc, argv); 00034 QTranslator appTranslator, qtTranslator; 00035 00036 appTranslator.load("soesrame_" + QLocale::system().name(), ":/translations"); 00037 qtTranslator.load("qt_" + QLocale::system().name(), ":/translations"); 00038 00039 app.installTranslator(&appTranslator); 00040 app.installTranslator(&qtTranslator); 00041 00042 MainWindow window; 00043 window.show(); 00044 00045 return app.exec(); 00046 } 00047