Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (28 sloc) 1.36 KB

Localization Testing

We are using a fake translation script that is mentioned on Ned Batchelder's blog called The specific version we are using was lifted from Fjord.

What it does it is makes a translation for locale xx that turns all the strings into looking like something the Swedish Chef would say. There are some basic requirements for using it. You'll need to install polib like so:

pip install polib

As well as gettext for OSX:

brew install gettext
brew link gettext

Or Ubuntu:

apt-get install gettext gettext-tools

Once you have the requirements you can run the script with the command:


You'll need to tweak your webpay/settings/ with the setting:


Then you should be able to ./ runserver like normal and see everything translated. It should be very notable if the string is not translated. After updating your code/templates with your new translations you just simply run again and it will regenerate the xx locale for you!

Jump to Line
Something went wrong with that request. Please try again.