eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 314 forks source link

Cactus allows it to multilingual sites? #89

Closed martinsam closed 10 years ago

martinsam commented 10 years ago

Cactus allows it to multilingual sites? Example : mywebsite.com/fr/... mywebsute.com/en/...

krallin commented 10 years ago

You can use Cactus v3 for translations.

You'll have to mark strings for translation using Django's translation framework (using {% trans "text" %} or {% blocktrans %}}).

You must then: create a locale directory in your project root, add a locale entry to (one of) your config.json file(s), and then run cactus messages:make.

I would recommend using one config.json file per locale you want to support, so you can simply point cactus at a different file to use a different locale.