Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: AzaToth on September 27, 2005, 01:40:21 PM

Title: Language Tag
Post by: AzaToth on September 27, 2005, 01:40:21 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=201)

This is a tag that define what kind of language the text is written in. If the language specified isn't your language and it's not one of some common languages then you won't see the text.
If it's your language you will see the text as is. Is it a common language (like english, spaning, german etc..) then the text will be parsed through google's translator.

For example


[lang=spanish]Además de notas tónicas y de sesiones, la conferencia también ofrece clases particulares, la certificación, un partido que continúa la celebración del 10mo aniversario de PHP, y un pasillo del objeto expuesto incluyendo las compañías como Zend, la IBM, el oráculo, Intel, MySQL, Microsoft, eBay/PayPal, las redes de Emic, ActiveGrid, ActiveState y SpikeSource.  Los descuentos del registro todavía están disponibles.[/lang]


will render this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg345.imageshack.us%2Fimg345%2F3238%2Flangtag2vq.png&hash=b524926c0be01516b574412fc167aaae59158215) (http://imageshack.us)

if you mouse over the language-text (Spanish here), you'll get the original text as a popup:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg245.imageshack.us%2Fimg245%2F903%2Flangtagvisible7po.png&hash=af398a7c7a689ccb25afc4cdd957311a6469fa96) (http://imageshack.us)

Only tested for 1.1 RC1
Title: Re: Language Tag
Post by: AzaToth on September 27, 2005, 06:07:25 PM
Ok, made a major update now, now it translate the text if possible/needed, hope you like it,
/me out
Title: Re: Language Tag
Post by: 1MileCrash on September 27, 2005, 06:08:02 PM
very cool.
Title: Re: Language Tag
Post by: Elmacik on September 27, 2005, 06:13:58 PM
really very nice... thanks
Title: Re: Language Tag
Post by: AzaToth on September 27, 2005, 08:19:17 PM
Some design and usability updates in 1.1.1 (like ability to see the original text etc...)
Title: Re: Language Tag
Post by: 1MileCrash on September 27, 2005, 08:20:51 PM
could you make a little demo forum where we could check it out?
Title: Re: Language Tag
Post by: greyknight17 on September 27, 2005, 08:21:23 PM
That is a neat mod...

One problem though.  I tried some testing on it and it seems to not work with some words...like How are you?  The como part is still in spanish.
Title: Re: Language Tag
Post by: AzaToth on September 27, 2005, 08:28:03 PM
Quote from: greyknight17 on September 27, 2005, 08:21:23 PM
That is a neat mod...

One problem though.  I tried some testing on it and it seems to not work with some words...like How are you?  The como part is still in spanish.
for me: [lang=spanish]¿Cómo es usted?[/lang] become:
How are you?

seems to work. It does however not work as you described in preview.
Title: Re: Language Tag
Post by: AzaToth on September 27, 2005, 08:33:09 PM
Quote from: Tippmaster on September 27, 2005, 08:20:51 PM
could you make a little demo forum where we could check it out?
sorry, I have no public forum for use, perhaps someone else might install it and try it out?
Title: Re: Language Tag
Post by: gri on October 15, 2005, 06:44:48 PM
Quote from: AzaToth on September 27, 2005, 01:40:21 PM
Only tested for 1.1 RC1

1.1 public 3 Error message:
"The package you are trying to download or install
is either corrupt or not compatible with this version of SMF".


AzaToth,
Would you like to adjust the mod for the 1.1 public 3 version ?
Title: Re: Language Tag
Post by: Majik™ on October 27, 2005, 10:31:55 PM
As can be seen here (http://forum.majiks.ca/index.php?topic=3.0), there appears to be a problem with French translation.
Title: Re: Language Tag
Post by: Elmacik on October 27, 2005, 11:28:23 PM
Quote from: gri on October 15, 2005, 06:44:48 PM
Quote from: AzaToth on September 27, 2005, 01:40:21 PM
Only tested for 1.1 RC1

1.1 public 3 Error message:
"The package you are trying to download or install
is either corrupt or not compatible with this version of SMF".


AzaToth,
Would you like to adjust the mod for the 1.1 public 3 version ?

If you want to try it with 1.1 b3, open the mod's package.
Find package-info.xml, open it with a text editor and edit this:
<install for="1.1 RC1">
change it like, 1.1 Beta 3 Public
Title: Re: Language Tag
Post by: cu-ckoo on November 03, 2005, 02:34:21 PM
Quote from: "url=http://forum.notinn.ru/index.php/topic,40.msg71.html#msg71]gri in ~Language Tag~ date=1131040173[/url]"]
Quote from: "url=http://www.simplemachines.org/community/index.php?topic=51205.msg384169#msg384169]Elmacik in ~Re: Language Tag~[/url]"]
If you want to try it with 1.1 b3, open the mod's package.
Find package-info.xml, open it with a text editor and edit this:
<install for="1.1 RC1">
change it like, 1.1 Beta 3 Public

Elmacik,
{
Warning: Unexpected character in input: ' in /home/notinnru/forum/Sources/Subs.php(2141) : eval()'d code on line 1

Parse error: parse error, unexpected $ in /home/notinnru/forum/Sources/Subs.php(2141) : eval()'d code on line 1

Warning: Unexpected character in input: ' in /home/notinnru/forum/Sources/Subs.php(2141) : eval()'d code on line 1

Parse error: parse error, unexpected $ in /home/notinnru/forum/Sources/Subs.php(2141) : eval()'d code on line 1
}

(    ~Moving in allowed space~
>> http://www.simplemachinesforum.org/community/index.php?topic=101.msg779#msg779
)

Title: Re: Language Tag
Post by: ArkServer on November 05, 2005, 09:00:28 AM
What language(s) are supported?
Title: Re: Language Tag
Post by: AzaToth on November 05, 2005, 09:16:47 AM
Quote from: ArkServer on November 05, 2005, 09:00:28 AM
What language(s) are supported?
the languages supported by google translator
Title: Re: Language Tag
Post by: jerm on November 07, 2005, 03:20:41 PM
Quote from: Majik™ on October 27, 2005, 10:31:55 PM
As can be seen here (http://forum.majiks.ca/index.php?topic=3.0), there appears to be a problem with French translation.
i seem to have the same issue...
Title: Re: Language Tag
Post by: gri on November 07, 2005, 03:57:15 PM
Azatoth,
Can you evaluate these translators with russian

http://free-translation.imtranslator.com
http://translation.paralink.com
http://www.translate.ru
http://www.online-translator.com

and somehow include any into the tag

            and then at the top post ?


Such a link will not be extra
at the top of the topic
http://translate.google.com/translate_t? .
Title: Re: Language Tag
Post by: AzaToth on November 07, 2005, 11:52:18 PM
Quote from: gri on November 07, 2005, 03:57:15 PM
Azatoth,
Can you evaluate these translators with russian

http://free-translation.imtranslator.com
http://translation.paralink.com
http://www.translate.ru
http://www.online-translator.com

and somehow include any into the tag

            and then at the top post ?


Such a link will not be extra
at the top of the topic
http://translate.google.com/translate_t? .

I checked those in, but I could not find a way to utilize their service. for google, I just send a GET with ?langpair=en%7Cde&text=foo+bar and grap a textarea in that. If you have an option, please show me :)
Title: Re: Language Tag
Post by: TimeJunky on November 14, 2005, 07:47:47 PM
hello, wouldn't it be much easier to work with utf-8... what we have to do, to do so ???
Title: Re: Language Tag
Post by: edi67 on January 14, 2008, 11:46:26 AM
very strange i installed in my smf 1.1.1 everything is ok but not work i type one word inside tag [lang][/lang] but nothing change the word remain the same as is typed

correction only [lang=english][/lang] ENGLISH work spanish , italian ecc not work for me

some solution?
Title: Version 1.1.8
Post by: yura_mdj on April 27, 2009, 03:41:01 AM
Hello...

Version 1.1.8 is?
somebody has a modification?