[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maposmatic-dev] A proposal to solve the translation problem

From: David MENTRE
Subject: Re: [Maposmatic-dev] A proposal to solve the translation problem
Date: Fri, 6 Apr 2012 08:26:05 +0200

Hello Jeroen,

2012/4/5 Jeroen van Rijn <address@hidden>:
> Wouldn't mocking _() work? I'm thinking this:
> - The function doesn't actually need to work to build the .po files. It just
> looks for _().
> - At the point where OCitySMap actually needs the translation, gettext will
> have been imported and overwritten the mocked _()
> - If in the former step the mocked _() persists in the instantiated class,
> some meta programming could replace the class's pointer to the mock _() with
> a pointer to the real function.

I would prefer keep things simple and not fiddle with Python objects.
But one needs to test it to see if your proposed scheme works or not.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]