title: QML translation
body: <p>I try to use translation in QML. I opened a new project QtQuick project, I chose QtQuick Componenets for Symbian as a QtQuick Application Type. Qt Creator created a application source tree with all standard files (main.cpp, main.qml, mainpage.qml...)</p>
  
  <p>MainPage.qml is very simple:</p>
  
  <pre><code>import QtQuick 1.1
  import com.nokia.symbian 1.1
  
  Page {
      id: mainPage
      Text {
          anchors.centerIn: parent
          text: qsTr('Hello world!')
          color: platformStyle.colorNormalLight
          font.pixelSize: 20
      }
  }
  </code></pre>
  
  <p>My main.cpp file looks after implementation of QTranslator like this:</p>
  
  <pre><code>#include "qmlapplicationviewer.h"
  #include &lt;QTranslator&gt;
  #include &lt;QPushButton&gt;
  #include &lt;QDebug&gt;
  
  Q_DECL_EXPORT int main(int argc, char *argv[])
  {
      QScopedPointer&lt;QApplication&gt; app(createApplication(argc, argv));
  
      QTranslator* translator = new QTranslator;
  
      qDebug()&lt;&lt;"Translating: "&lt;&lt;translator-&gt;load(QString("qml/International/inter_en"));
  
      app-&gt;installTranslator(translator);
  
      //QPushButton hello(QPushButton::tr("Hello world!"));
      //   hello.resize(100, 30);
  
      //   hello.show();
  
      QScopedPointer&lt;QmlApplicationViewer&gt; viewer(QmlApplicationViewer::create());
  
      viewer-&gt;setMainQmlFile(QLatin1String("qml/International/main.qml"));
      viewer-&gt;showExpanded();
  
      return app-&gt;exec();
  }
  </code></pre>
  
  <p>Then I run lupdate mainpage.qml -ts inter_en.ts , I have used linguist to translate the POSIX expression "Hello world!" to something else just test that it is translating. Then I created inter_en.qm file with linguist.</p>
  
  <p>But when I run the application on simulator I dont get "Hello world!" translated, although the translator is loaded successfully (I get "Translating: true" in qDebug).</p>
  
  <p>Translator is working correctly I am sure, because when I deremark part of the code with QPushButton , (again I repeat the lupdate and linguist things for this purpose) , then the "Hello world!" expression in QPushButton is translated correctly.</p>
  
  <p>It is only the QmlApplicationViewer and QML file that is not performing translation correctly.
  Any quesses????? </p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I found out the following: MainPage.qml is imported as reusable component into main.qml. If I use qsTr() in main.qml then the text is translated correctly in main.qml. However text in MainPage.qml is not tranlated correcty. I guess due to importing it as reusable component. Any comments? Experiences?</p>
  
  <p><strong>UPDATE2 - SOLUTION</strong></p>
  
  <p>Translation files need to be created case sensitively:</p>
  
  <pre><code>lupdate mainpage.qml -ts myapp_sk.ts is wrong
  
  lupdate MainPage.qml -ts myapp_sk.ts is correct
  </code></pre>