Hmm...

I'm using the following which works, (not related to mobility)

In the .pro file:

--8<------8<------8<------8<------8<------8<------8<------8<----

TRANSLATIONS = mopedi_fi.ts mopedi_sv.ts

CODECFORTR = UTF-8

# If no path given DEPLOYMENT will go to Symbian app private dir.
help.sources = c:/projects/qtmopo/*about.htm c:/projects/qtmopo/mopedi_*.qm
DEPLOYMENT += help
--8<------8<------8<------8<------8<------8<------8<------8<----


In main.cpp:

--8<------8<------8<------8<------8<------8<------8<------8<----
  QApplication a(argc, argv);
  QString locale = QLocale::system().name().left(2).toLower();
  QTranslator translator;
  translator.load(QString("mopedi_") + locale);
  a.installTranslator(&translator);

  QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
--8<------8<------8<------8<------8<------8<------8<------8<----


Hope this helps.


On Wednesday, November 17, 2010 04:55:20 pm Willy Gardiol wrote:
> Ok people, i am really getting crazy here!
> 
> I have a QtMobility app with one extra language. I have the qm file, where
> should i put it for Symbian deployment?
> 
> I triyed to add this line:
> 
> extrafiles =
> "\"freetrack_it.qm\"-\"!:\resource\qt\translations\FreeTrack_it.qm\""
> my_deployment.pkg_prerules += dextrafiles
> DEPLOYMENT += my_deployment
> 
> to my PRO file... the file gets copied, but it is not used by my code,
> which is:
> 
>     QTranslator qtTranslator;
>     qtTranslator.load("qt_" + QLocale::system().name(),
> 
> QLibraryInfo::location(QLibraryInfo::TranslationsPath));
>     a.installTranslator(&qtTranslator);
>     QTranslator myappTranslator;
>     myappTranslator.load("freetrack_" + QLocale::system().name());
>     a.installTranslator(&myappTranslator);
> 
> What i am missing here?

-- 
Grego
http://mpaja.com/
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to