From: Andras M. <and...@gm...> - 2008-06-03 15:02:58
|
"Fabien Chéreau" <fab...@go...> wrote on Tue, 3 Jun 2008 13:01:30 +0200: > We should use Qt formatting as much as possible. Thus avoiding using c > formatting. > We should put these things in the style guide which is now pretty > obsolete.. http://www.stellarium.org/wiki/index.php/Coding_Standard I've started to update it. There is a lot to go. And, of course, I was wrong: > > Do we need to use them [C format strings] in the future? Because > > then I have to find a real fix -- and I cannot think of any. The gettext doc says we can do this: // xgettext:no-c-format QString foo(q_("Distance: %1AU")); If you don't mind putting in those comments, I'll add them (right now only two such comments have to be added), and remove the --flag xgettext options I had added to po/stellarium/CMakeLists.txt. -- Andras Mohari |