Jose Solares

Adding extra Languages to Textpattern’s output

by on Mar.12, 2005, under english

Well i finally got around and added english as a language for the content on this page, thanks to the way textpattern is constructed it was fairly easy to accomplish this.

First we create a page for each section we want in the other language, in my case english. we can copy the original into a language specific page

Next we add the sections we want in english, like “contactus-en”, “default-en” and “archive-en”, this in part of the way i have my site setup, i have miscellaneous articles in archive, my contact info in contactus, and the main page in default.

We then modify our pages to translate everything we have in our original language (spanish) into english for our new content.

Then we create the content (articles) with the info we want in english, like the welcome intro but in english with section set to default-en, our articles we want in english in archive-en, our contact info translated in contactus-en.

Categorization is an entirely different beast that we wont be addressing now.

And thus we can add sections and pages for any language we want, all thanks to the flexibility of textpattern.


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!


A few highly recommended websites...