Today, I started fiddling around on trying to make habari fit for
multi language support, since this is a feature I miss. Right now, I
am still playing around a bit, and as of now, I did the following -
which looks promising:

- I added a column called "language" into habari_posts, wich contains
a code for every language (e.g. 'de', 'en' - and so on).
- add_template_vars() in theme.php calls:  $this->assign('pages',
Posts::get(array('content_type' => 'page', 'language' => 'de',
          'status' => Post::status('published'))));
- Posts::get() fn, clause added for the language:
if ( isset( $paramset['language'] ) ) {
                                                $where[] = "{posts}.language = 
?";
                                                $params[] = (string) 
$paramset['language'];
                                        }

Routes could look like this:
myhabarisite.com/en/about+me, etc.

Any input gladly accepted ;)

Roland



-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to