Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Language support - Sugestions needed!
by hervet on 2008/10/15 6:41:22

Hello Frank,

Quote:

frankblack wrote:
This is what I am currently doing for debaser.

Can you explain how you are doing please ?

bye,
Hervé
Re: Language support - Sugestions needed!
by Runeher on 2008/10/13 14:54:16

Thanks for your reply...

We did it using db insertion, but it's a poor solution when many webmasters are involved...
Re: Language support - Sugestions needed!
by ghia on 2008/10/11 13:11:18

Quote:
How can we extend these fields without doing it directly in db?
You can't!
It's one way or the other.
Or you are happy depending on the number of languages used with one half, third, ... of the space provided or you need to double, triple, ... the space used in the database by extending the length or number of the fields to store the texts.

A good extension for XLanguage would be that a table with texts and a reference and language id is added to the database. The tags could then be specified as eg. [xl]ref_nr[/xl], which will be usable for small fields. The xlanguage system would then lookup the selected language with the refnr to replace the tags for the texts when showing.
For editing there could be made a plugin for eg. Tiny, to allow creation of a new reference number and editing the available language texts.
But the disavantage is that this tag greatly obscure the real content of fields.
Re: Language support - Sugestions needed!
by Runeher on 2008/10/11 12:06:22

Hi all.

We use xlanguage on xoopsnordic.org, but when translating eg. a fairly long forum title, there don't seem to be room for it in the title field. Example: [da]Website anmeldelser af XOOPS websteder[/da][no]Website anmeldelser av XOOPS websteder[/no][se]Website anme

As you can see, there are no room for the swedish translation. How can we extend these fields without doing it directly in db?
Re: Language support - Sugestions needed!
by frankblack on 2008/7/18 16:14:11

To get things more clear: IF you have installed xlanguage you can make your content multilingual, but you have to use markup to divide the content for each language, e.g.:

Quote:
[en]This is english content[/en][de]Dies ist deutscher Inhalt[/de]


This could be a bit exhausting and confusing if you have a lot of languages.

Additionally you get problems when you want to use tinyeditor as content editor (I can speak only for tinyeditor), because the other languages will disappear in the editor.

If you want to use tinyeditor you have to hack yourroot / include / common.php. Instead of

le="color: #000000"><?php include_once XOOPS_ROOT_PATH.'/modules/xlanguage/api.php';


it has to be

le="color: #000000"><?php if (!preg_match("/admin/", dirname($_SERVER['PHP_SELF']))) include_once XOOPS_ROOT_PATH.'/modules/xlanguage/api.php';


Just wanted to get things clear!

P.S.: BTW debaser is NOT a good module for writing news, articles etc. The main purpose of the module is to get multimedia files to XOOPS. You COULD use it for writing articles, but there are MUCH MORE BETTER modules for this. Perhaps other developers will not laugh at my coding, but hopefully take it as an inspiration?

Who's Online

162 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits