[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:24:18 +0200

Hello Thomas,

2012/4/5 Thomas Petazzoni <address@hidden>:
> On the other hand, the way we currently do it for renderers, where the
> name and description are defined as class variables looks better to me,
> but doesn't play well with translation: the _() function is not
> available until a gettext context has been put in place, so _() cannot
> be used on class variables.

Use several classes? One that contain the translated name of all style
sheets (instantiated to get the names), then one class per
style-sheet. The former is referencing all the others.

> I had a quick look at that tonight, and I don't see how to solve the
> problem. Would anyone have a bit of time to work on this?

Sorry, not me, I don't have enough time.

Best regards,

reply via email to

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