Le Sat, 31 Mar 2012 11:59:11 +0200, Thomas Petazzoni <[email protected]> a écrit :
> We want the Paypal donation button to be translated, and the user to > be redirected to a page in his/her language when making a donation. > > Unfortunately, Paypal does not seem to have translations for all the > languages we support, so we default to English when the language is > not available from Paypal. > > This new mechanism requires translators to add a new entry in the > PAYPAL_LANGUAGES dictionary if Paypal provides a button and a site in > their language. > > Signed-off-by: Thomas Petazzoni <[email protected]> > --- > www/maposmatic/context_processors.py | 12 ++++++++++++ > www/settings.py | 15 +++++++++++++++ > www/templates/maposmatic/base.html | 5 +++-- > www/templates/maposmatic/donate.html | 5 +++-- > 4 files changed, 33 insertions(+), 4 deletions(-) Applied. Thomas -- Thomas Petazzoni http://thomas.enix.org MapOSMatic http://www.maposmatic.org Logiciels Libres à Toulouse http://www.toulibre.org Embedded Linux http://www.free-electrons.com
