On Mon, Nov 12, 2001 at 01:38:15PM +0100, Daniel Reichenbach wrote:
> Hy,
> 
> just read through the manual and found no hint on how to to this.
> Perhaps
> someone can help :-)
> 
> I'm building a page which supports multiple languages. Each language has
> a root topic tree under the Content admin SG.
> 
> e.g. topic id 14 is german, id 15 is english and so on.
> 
> Now I parse the HTTP_ACCEPT_LANGUAGE on startup to determine the users
> language and want to select the appropriate one on startup.
> 
> What it thought off to keep the language stuff dynamic is to parse
> through all topics under the content SG and then see if there is one
> for the users language. Therefor topics have names like de_test,
> en_test,
> nl_test etc.
> 
> What I couldn't find in the manual is a way to check which topics are
> available. mgd_list_topics doesn't seem appropriate, as it needs a
> starting
> id.
> 
> So the question is: is there anything like mgd_get_topic_by_sg ?
Isn't mgd_get_topic_by_name() helps here?
-- 
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
  `Senior software developer and analyst for SaM-Solutions Ltd.`
---
A penny saved kills your career in government.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to