681
svaha
Re: Discussion: How best to make CONTENT multilingual
  • 2003/10/21 1:34

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I write articles in English and Dutch. On my 'old' sitehttp://www.amevita.com I did this in html. So everything I published had to be put in different html files. Now on my new sitehttp://www.rainbowshaman.com I can simply publish by inserting into the text [ee][/ee] and [nl][/nl]. But it was for me quite a job to come so far.
As a standard :
1)You would need to assign a number to each language.
2)A global array (also to be used by the blocks/modules. In it the languages/numbers to be used
3)Module names/block names/menu item names/topic names and so on should be replaced by symbolic names
4)For the content : I like the method I use now (with the square brackets) When I make a mistake, I see it when I post, and no big harm is done. Some things I write are only in dutch language (local events in dutch language for example)So when you can't read dutch, just skip that article.

Of course there are some items like for instance searching that are more difficult, but it's a matter of growing insight, and though I am a very 'young' Xoopser I noticed that this is a community with spirit.

Aloha



682
svaha
Re: I must be dumb but please help anyway
  • 2003/10/21 0:24

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


For multilingo you can look on this pages :
https://xoops.org/modules/newbb/viewtopic.php?forum=14&post_id=43677&topic_id=10734
I use 2 languages : english and dutch
It works fine now except for some drop down menus and for instance a module like xtremguestbook.
Because multilingo is not a standard and some modules are 'imported/translated' from 'outside' you have to do a lot of trial/error work.
But then :
1) There are no errors, only feedback
2) Learning is fun

Aloha




683
svaha
Re: Mod Suggestion.
  • 2003/10/19 14:50

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


http://wfsections.xoops2.com/modules/mydownloads/

I use WF-sections V 1.01

Aloha


--------------
Beam me up Scotty,
there is no intelligent life down here


http://www.rainbowshaman.com



684
svaha
Re: Unbelievable!! How do I enter content???
  • 2003/10/17 1:52

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


It is possible to display more languages not only in menus, but also in content, needs some hacking of the module files and some patience.
Follow this link to see how to hack :

https://xoops.org/modules/newbb/viewtopic.php?topic_id=10734&forum=14&viewmode=flat&order=ASC&start=0

You can see it working on my site :http://www.rainbowshaman.com
Everything is displayed in 2 languages (dutch/english) except the drop-down menu of WF-sections (I called it Articles/Artikelen

Aloha



685
svaha
Re: Xoops Brasil Modules Pack (130 modules for Xoops 2! please review!)
  • 2003/10/16 23:49

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I clicked on the link and some kind of form appeared with questions in a language I don't know, but managed to fill in the form, came on the homepage, clicked on an item and saw that I first had to register.
If you want people to review your work, than it is maybe a good idea that people can get easy access to your work.

Aloha

Got it! Sorry I clicked on the link below (in your post) instead of the link above, haha



686
svaha
Re: Multilingo problem
  • 2003/10/15 9:32

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Follow this thread :

https://xoops.org/modules/newbb/viewtopic.php?forum=20&post_id=51693&topic_id=12808



687
svaha
Re: Multilingo
  • 2003/10/14 22:10

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


It is true that I come from the prehistoric age of Fortran and Assembly, but I still can recognize an elegant solution when I see one. Very elegant mCity !!
I reversed the increase of the title length and applied your last solution to news_top.php.
Everything works now perfect except the drop down menu of WF-sections.

Aloha from a rising YaXs site



688
svaha
Re: Multilingo
  • 2003/10/14 10:51

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


YiiiiiiiHaaaaaaaa...done it.
Thnx a lot mCity.
Now I can get on with the content of my site.
(Maybe another photoalbum and a faster host)
I'm very glad

Aloha



689
svaha
Re: Multilingo
  • 2003/10/14 8:59

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Thnx
Today I will work to get this solution on my site. I will change code from [nederlands]/[english] to [nl][ee]if that's not enough I will change the title length in the blocks administration.

Aloha



690
svaha
Re: Multilingo
  • 2003/10/13 23:22

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Thnx for the quick answer mCity.
Yes I've done this, I changed the sanitizer file to :

function makeTboxData4Show($text, $smiley=0)
{
$text = $this->htmlSpecialChars($text);
$text =& $this->xoopsCodeDecode($text, 0);//Added by Chad HHTS Multilingual Titles
return $text;
}

function makeTboxData4Edit($text)
{
return $this->htmlSpecialChars($text);
}

function makeTboxData4Preview($text, $smiley=0)
{
$text = $this->stripSlashesGPC($text);
$text = $this->htmlSpecialChars($text);
$text =& $this->xoopsCodeDecode($text, 0);//Added by Chad HHTS Multilingual Titles
return $text;
}

I also changed the database : xoops_topics to varchar:255

I made no changes to Imenu (a little further on in this post) because I can't find Imenu ?

Aloha




TopTop
« 1 ... 66 67 68 (69) 70 »



Login

Who's Online

171 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits