Qt Port update.

Dirk Hohndel dirk at hohndel.org
Sun Apr 14 06:49:59 PDT 2013


Alberto Mardegan <mardy at users.sourceforge.net> writes:

> On 04/14/2013 01:25 AM, Dirk Hohndel wrote:
>> One thing I noticed is that you are using tr() for translations but we
>> really would love to stick with _() (i.e., gettext).
>
> Don't be afraid of using tr():
>
> http://git.hohndel.org/?p=subsurface.git;a=blob;f=qt-gui.cpp;h=1621317c273bcad7467ae1a168ed8e0ca6f8bd02;hb=Qt#l43
>
> The Translator class I added back then allows you to use tr() and use 
> gettext as the backend.
> I tested it with my branch (which just had a few menu items) and it was 
> behaving as expected under different locales, so I'd suggest you to 
> revert the Qtr hack.
>
> Of course, it might be that there are bugs -- in that case let me know, 
> and I'll try to fix them. :-)

I missed this email completely. But three commits later we were back
where we were (except that we now have the necessary tooling in place to
add the strings used in tr() to the .po files.

Sorry for the mess.

/D


More information about the subsurface mailing list