QTfrontend/main.cpp
changeset 52 ae2950c5465c
parent 21 dff476dcaaa3
child 97 e7c1df9cce2c
equal deleted inserted replaced
51:b6e3ae05857f 52:ae2950c5465c
    30  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
    30  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
    31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    32  */
    32  */
    33 
    33 
    34 #include <QApplication>
    34 #include <QApplication>
       
    35 #include <QTranslator>
       
    36 #include <QLocale>
    35 #include "hwform.h"
    37 #include "hwform.h"
    36 
    38 
    37 int main(int argc, char *argv[])
    39 int main(int argc, char *argv[])
    38 {
    40 {
    39 	QApplication app(argc, argv);
    41 	QApplication app(argc, argv);
       
    42 
       
    43 	Q_INIT_RESOURCE(hedgewars);
       
    44 
       
    45 	QTranslator Translator;
       
    46 	Translator.load(":/translations/hedgewars_" + QLocale::system().name());
       
    47 	app.installTranslator(&Translator);
       
    48 
    40 	HWForm *Form = new HWForm;
    49 	HWForm *Form = new HWForm;
    41 	Form->show();
    50 	Form->show();
    42 	return app.exec();
    51 	return app.exec();
    43 }
    52 }