Qt-interest Archive, June 2007
Hello Friends..please help me..
Message 1 in thread
Hello Friends..
I want to support multilanguage environment in my product..
I am using qte 2.3.10 version..
would any body knows, how to support "Multi Language UI" by qt.
please help me with list of steps of supporting Multi Language User
Interface in QT.
Thanks and Regards
Uma.
Message 2 in thread
Rao, UmaMaheswara(GE Healthcare) schrieb:
>
> Hello Friends..
> ...
> please help me with list of steps of supporting Multi Language User
> Interface in QT.
Step 1: Read the fine manual (I have already spent 3 seconds on your
behalf and came up with http://doc.trolltech.com/2.3/i18n.html)
That's it! Is that not easy? :)
When you have specific questions, come back here, you're welcome to do so.
(Maybe you should choose a more meaninful subject than "Hello Friends"
next time(*) - people could get the impression that you are trying to
write a variation of the famous "Hello World" application and such
questions are usually left unanswered ;)
Good luck, Oliver
(*) There's even a mailing list for the embedded version of Qt. So when
you think your question is rather specific to the embedded version, go
ask there.
--
[ signature omitted ]
Message 3 in thread
Hi Oliver,
Thanks for your link and suggitions of putting the requirement on
subject..
1) I have created mutiple widgets in my application.
for eg: reports, dataentry, configuration, ...like
that..
for each of these modules , I am creating object in one
module called session manager..
2) I am creating object for session manager module in main function.
3) I have generated each module specific ".ts" and ".qm" files.
I would like to know, where I have to create qtranslator reference with
module specific "QM" files. Is it in main function or the place where
the objects getting created for each module.
Would you please let me confirm..where should I have to create reference
file for translations..
Please let me know if you need any clarifications regarding application.
Thanks and regards
Uma.
-----Original Message-----
From: Till Oliver Knoll [mailto:oliver.knoll@xxxxxxxxxxx]
Sent: Monday, June 25, 2007 7:55 PM
To: Qt Interest List
Subject: Re: Hello Friends..please help me..
Rao, UmaMaheswara(GE Healthcare) schrieb:
>
> Hello Friends..
> ...
> please help me with list of steps of supporting Multi Language User
> Interface in QT.
Step 1: Read the fine manual (I have already spent 3 seconds on your
behalf and came up with http://doc.trolltech.com/2.3/i18n.html)
That's it! Is that not easy? :)
When you have specific questions, come back here, you're welcome to do
so.
(Maybe you should choose a more meaninful subject than "Hello Friends"
next time(*) - people could get the impression that you are trying to
write a variation of the famous "Hello World" application and such
questions are usually left unanswered ;)
Good luck, Oliver
(*) There's even a mailing list for the embedded version of Qt. So when
you think your question is rather specific to the embedded version, go
ask there.
--
[ signature omitted ]
Message 4 in thread
Rao, UmaMaheswara(GE Healthcare) schrieb:
> Hi Oliver,
> ...
> I would like to know, where I have to create qtranslator reference with
> module specific "QM" files. Is it in main function or the place where
> the objects getting created for each module.
From a "Qt's point of view" it does not really matter /where/ you
install the translators. It could be in the main() function or in anyone
of your c'tors.
What matters more is /when/ you install
(http://doc.trolltech.com/2.3/qapplication.html#e8df5e) them. Only when
the appropriate translator is installed are your texts (e.g. the ones
embraced in the tr() method)) translated.
So simply make sure you install your translator /before/ you display any
widgets. Where that is in your particular application I cannot tell you.
If you don't plan to change the language at runtime in your application,
you could certainly install all needed translators (depending on the
system locale) in the main() function, just after you have created the
QApplication object. That's correct and working, but not very elegant
(more elegant would be to have a slot which is called whenever the user
changes the language, e.g. in a menu, uninstall/install the appropriate
translators and inform all (visible) widgets. There was an article in
one of the Qt Quarterly issues on how to do this. See TT's website.
Hope that clarifies things a bit,
Oliver
p.s. Don't write to me in private - I'm on the list.
--
[ signature omitted ]