News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Language Tag

Started by AzaToth, September 27, 2005, 01:40:21 PM

Previous topic - Next topic

AzaToth

Link to Mod

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:


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



Only tested for 1.1 RC1

AzaToth

Ok, made a major update now, now it translate the text if possible/needed, hope you like it,
* AzaToth out

1MileCrash

The only thing php can't do is tell you how much milk is left in the fridge.



Elmacik

really very nice... thanks
Home of Elmacik

AzaToth

Some design and usability updates in 1.1.1 (like ability to see the original text etc...)

1MileCrash

could you make a little demo forum where we could check it out?
The only thing php can't do is tell you how much milk is left in the fridge.



greyknight17

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.

AzaToth

#7
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.

AzaToth

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?

gri

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 ?

Majik™

#10
As can be seen hxxp:forum.majiks.ca/index.php?topic=3.0 [nonactive], there appears to be a problem with French translation.
hxxp:msn.majiks.ca [nonactive]

Elmacik

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
Home of Elmacik

cu-ckoo

#12
Quote from: "url=hxxp:forum.notinn.ru/index.php/topic,40.msg71.html#msg71 [nonactive]]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~
>> hxxp:www.simplemachinesforum.org/community/index.php?topic=101.msg779#msg779 [nonactive]
)



AzaToth

Quote from: ArkServer on November 05, 2005, 09:00:28 AM
What language(s) are supported?
the languages supported by google translator

jerm

Quote from: Majik™ on October 27, 2005, 10:31:55 PM
As can be seen here, there appears to be a problem with French translation.
i seem to have the same issue...

gri

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? .

AzaToth

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 :)

TimeJunky

hello, wouldn't it be much easier to work with utf-8... what we have to do, to do so ???

edi67

#19
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?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: