Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Multiple Languages  (Read 3846 times)

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Multiple Languages
« on: September 05, 2007, 12:47:19 pm »

Hello.

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


 
« Last Edit: November 07, 2007, 11:11:07 pm by Rui Mendes »
Logged
Need a Job on Europe. Linkdin - Facebook / Group

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
Re: Multiple Languages
« Reply #1 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.
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: Multiple Languages
« Reply #2 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
Quote
# RUI VARIABLES
   $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

engcivil.net[at]gmail[dot]com

Please help me, for this Nice MOD




« Last Edit: September 05, 2007, 05:52:37 pm by Rui Mendes »
Logged
Need a Job on Europe. Linkdin - Facebook / Group

amak

  • Newbie
  • *
  • Karma: 4
  • Posts: 40
Re: Multiple Languages
« Reply #3 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.
Logged
Regards,
Amak

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: Multiple Languages
« Reply #4 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
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Aysseline

  • Jr. Member
  • **
  • Karma: 4
  • Posts: 66
Re: Multiple Languages
« Reply #5 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://www.engcivil.net/demos/ml/" /><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="http://www.w3.org/1999/xhtml">That I write like this for my sites:
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" 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.
Logged
sNews 1.6_patched - localhost, Xampp 1.6.2 - XPSP2

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: Multiple Languages
« Reply #6 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.
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Aysseline

  • Jr. Member
  • **
  • Karma: 4
  • Posts: 66
Re: Multiple Languages
« Reply #7 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.
Logged
sNews 1.6_patched - localhost, Xampp 1.6.2 - XPSP2

Zucye

  • Sr. Member
  • ****
  • Karma: 5
  • Posts: 347
    • Simplemente una Mujer
Re: Multiple Languages
« Reply #8 on: November 13, 2007, 05:58:33 pm »

This is very nice Rui!!

I wish I had time to try it right now :)
Logged
We can always learn from our failures, not so much from obvious success - C. Robinson (W. Disney). :)