[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,
david
- Re: [Maposmatic-dev] A proposal to solve the translation problem, (continued)
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Thomas Petazzoni, 2012/04/04
- Re: [Maposmatic-dev] A proposal to solve the translation problem, David MENTRE, 2012/04/04
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Jeroen van Rijn, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Jeroen van Rijn, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, David Decotigny, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Jeroen van Rijn, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Jeroen van Rijn, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Thomas Petazzoni, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Thomas Petazzoni, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Jeroen van Rijn, 2012/04/05
- Re: [Maposmatic-dev] A proposal to solve the translation problem,
David MENTRE <=
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Thomas Petazzoni, 2012/04/06
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Jeroen van Rijn, 2012/04/06
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Thomas Petazzoni, 2012/04/06
- Re: [Maposmatic-dev] A proposal to solve the translation problem, David MENTRE, 2012/04/06
- Re: [Maposmatic-dev] A proposal to solve the translation problem, David MENTRE, 2012/04/06
- Re: [Maposmatic-dev] A proposal to solve the translation problem, David Decotigny, 2012/04/03
- Re: [Maposmatic-dev] A proposal to solve the translation problem, Thomas Petazzoni, 2012/04/04
Re: [Maposmatic-dev] A proposal to solve the translation problem, Konstantin Mochalov, 2012/04/04
[Maposmatic-dev] (no subject), Konstantin Mochalov, 2012/04/04