sNews Forum

sNews 1.6 (previous version) => Suggestions => Topic started by: Rui Mendes on September 05, 2007, 12:47:19 pm

Title: Multiple Languages
Post by: Rui Mendes on September 05, 2007, 12:47:19 pm

Download first release (
You can try Demo (

We can make more international like my demo don't you agree?

Very soon I have snews Portuguese comunity ready

Best regards and good day 2 all

Title: Re: Multiple Languages
Post by: brauck on September 05, 2007, 04:34:04 pm
Hey Rui,

The Spanish version has some entity problems I think; maybe you want to look at that.
Title: Re: Multiple Languages
Post by: Rui Mendes on September 05, 2007, 05:30:37 pm
Yes brauck.

Since we move from old forum, we lost some chars in some languages like
&aacute is the same char (in portuguese for example.)
For Spanish has the same problem, I don't know his chars. I just copy from languages from snews 1.6

For English, Portuguese and French is OK

But I will try translate correctly. I think is all right

For who want his language integrate in this mod, please send to me your language for sNews1.6 and translate this to
   $l['langlist'] = 'Language List (i.e: EN,PT,FR)';
   $l['choselang'] = 'Language';
   $l['new_articles'] = 'New Articles';
   $l['new_comments'] = 'New comments';} return $l[$variable];

My email is[at]gmail[dot]com

Please help me, for this Nice MOD

Title: Re: Multiple Languages
Post by: amak on September 06, 2007, 12:14:09 pm
Hi Rui,

one suggestion:

You should consider the meta tags 'description' and 'keywords' in any matter for each language. I would add a table for this so that if anyone switches the language the according metatags would be taken from there.
Title: Re: Multiple Languages
Post by: Rui Mendes on September 07, 2007, 11:56:01 am
I dont't Know If I understand.

Do you mean search something and show all articles (from any language and switch automaticaly to that language when you click) or you want working with MOD compatible like "Displaying Keywords and Keyword Cloud" fom Centered Effect.

I start last night doing this. But remember, this is optional, can be disable/enable
Title: Re: Multiple Languages
Post by: Aysseline on November 07, 2007, 07:31:59 pm
Hi Ruis, I make search for "multi-language" and find your post.
I see your demo and dl your MOD but not sure to understand how this work? With default snews.php file there is one copie for each additional language to translate snews variables. But when I write articles, etc... (content) how this work ?
Do I need to switch language settings to write in different lang or, the system use, itselself, a direct langage translation ? (I read the french translation in your demo and is like a Babel translation, I think  :-[

For Amak post, if I'm not wrong, he tell about meta of the doctype of the index.php and I'm agree for this.
When I display the source:
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<base href="" /><title>sNews 1.6ML</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="description" content="sNews CMS" /><meta name="keywords" content="new, site, snews" /> <meta name="Robots" content="index,follow" />.....

For meta name="description" and meta name="keywords" I want to change this with the appropriate language
and for this line:
Code: [Select]
<html xmlns="">That I write like this for my sites:
Code: [Select]
<html xmlns="" xml:lang="fr" lang="fr">
Well what's I need to do for this in my index.php and snews.php to add and change this ?
Code: [Select]
<?php echo s('description'); ?><?php echo s('keywords'); ?><?php echo s('xmllang'); ?><?php echo s('lang'); ?> maybe ?? and in news.php ? I'm not a coder...

BTW you idea for "Displaying Keywords and Keyword Cloud" is also a good add  ;) Thanks for your help and sorry for my bad english I hope you understand my questions.
Title: Re: Multiple Languages
Post by: Rui Mendes on November 07, 2007, 11:04:09 pm
Hello Aysseline.

Not complete url for Demo, updated.

My first version is in zip file, Demo is a new version WIP(Work in progress).
I didn't publish because have some bugs need to fix. I need to finish sNews Gallery first.

You need snews variables in separeted file (examples: snews_PT, snews_EN, snews_FR etc.)

To make languages available, you need to fill a langlist

When you edit a newarticle, you put in language you want

It's better switch to language, when you create a new article and publish everything fine, off course you can switch to another language but don't access to his categories.
No translations, you need to do it yourself.

Thanks for tips, I'll see when restart this project.

I understand everythink, hope you are patient. I'm very busy in next 2/3 weeks.
Title: Re: Multiple Languages
Post by: Aysseline on November 08, 2007, 01:31:04 am
Thanks for your screenshot, seems to be usefull !
I can wait, I've got many things to learn and understand about this great cms and about php.
Title: Re: Multiple Languages
Post by: Zucye on November 13, 2007, 05:58:33 pm
This is very nice Rui!!

I wish I had time to try it right now :)