Hi,

My application should support different languages. Currently i am trying with Japanese. But it is not displayed. My code is

main.cpp

Qt Code:
  1. #include <QApplication>
  2. #include <QTranslator>
  3. #include "form.h"
  4. int main(int argc, char *argv[])
  5. {
  6.  
  7. QApplication app(argc, argv);
  8. QTranslator translator;
  9. translator.load(":/translations/i18n_jp.qm");
  10. qApp->installTranslator(&translator);
  11. Form *window = new Form ;
  12. window->show();
  13. return app.exec();
  14. }
To copy to clipboard, switch view to plain text mode 

form.cpp
Qt Code:
  1. #include "form.h"
  2. #include "ui_form.h"
  3.  
  4. Form::Form(QWidget *parent) :
  5. QWidget(parent),
  6. ui(new Ui::Form)
  7. {
  8. ui->setupUi(this);
  9. ui->label->setText(tr("Hello"));
  10. this->setWindowTitle(tr("Internationalization Example"));
  11. }
  12.  
  13. Form::~Form()
  14. {
  15. delete ui;
  16. }
To copy to clipboard, switch view to plain text mode 

form.h

Qt Code:
  1. #ifndef FORM_H
  2. #define FORM_H
  3.  
  4. #include <QWidget>
  5.  
  6. namespace Ui {
  7. class Form;
  8. }
  9.  
  10. class Form : public QWidget
  11. {
  12. Q_OBJECT
  13.  
  14. public:
  15. explicit Form(QWidget *parent = 0);
  16. ~Form();
  17.  
  18. private:
  19. Ui::Form *ui;
  20. };
  21.  
  22. #endif // FORM_H
To copy to clipboard, switch view to plain text mode 

pro file

#-------------------------------------------------
#
# Project created by QtCreator 2010-10-25T14:51:37
#
#-------------------------------------------------

HEADERS = mainwindow.h \
form.h
SOURCES += main.cpp\
mainwindow.cpp \
form.cpp
RESOURCES += Chinise.qrc
TRANSLATIONS += translations/i18n_ar.ts \
translations/i18n_cs.ts \
translations/i18n_de.ts \
translations/i18n_el.ts \
translations/i18n_en.ts \
translations/i18n_eo.ts \
translations/i18n_fr.ts \
translations/i18n_it.ts \
translations/i18n_jp.ts \
translations/i18n_ko.ts \
translations/i18n_no.ts \
translations/i18n_ru.ts \
translations/i18n_sv.ts \
translations/i18n_zh.ts

FORMS += \
form.ui

please help me