Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Anguz on November 18, 2004, 06:24:10 PM

Title: Language Tag
Post by: Anguz on November 18, 2004, 06:24:10 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=55)

Requires FasterParsecode to be installed first.
http://mods.simplemachines.org/index.php?mod=39
      
This mod adds a new bb code tag: [language][/language]. Inside this one you use pairs of tags for different languages and only the one the user is using will shown, ie: [language][english]hello[/english][spanish]hola[/spanish][/language].

Copyright 2004 by Cristian Lavaque. http://anguz.net
Title: Re: Language Tag
Post by: FaSan on November 18, 2004, 06:53:45 PM
Great !!!  ;)
Title: Re: Language Tag
Post by: Anguz on November 18, 2004, 07:02:01 PM

[language]
[english]Good morning[/english]
[spanish]Buenos días[/spanish]
[japanese]おはようございます[/japanese]
[/language]
Title: Re: Language Tag
Post by: A.M.A on November 18, 2004, 08:33:20 PM
Great Mod. Anguz
Title: Re: Language Tag
Post by: codenaught on November 19, 2004, 06:02:09 PM
Nice idea Anguz. This could come in handy.
Title: Re: Language Tag
Post by: Oldiesmann on November 19, 2004, 06:45:25 PM
This would be especially handy on forums with lots of bi-lingual members. Nice idea.
Title: Re: Language Tag
Post by: Anguz on November 19, 2004, 08:52:02 PM
Thanks guys. :D

I actually thought of this trying to come with a solution for a way to use topics as product pages where I needed the description to show in different languages. Having a board for each language would have been a bit more trouble for the updating.

I may make a little change to the parsing of this tag for the next version, because now if there's not a string for the language the person has chosen, then the whole block is left un-parsed. I'm not sure how to do it in that case, though, if not displaying anything at all, or defaulting to the forum's language, where it'll require at least that string to be present. Suggestions?
Title: Re: Language Tag
Post by: Oldiesmann on November 19, 2004, 10:02:56 PM
I say if you can't figure out what language a person has chosen then use the forum default.
Title: Re: Language Tag
Post by: spiros on December 27, 2004, 09:30:38 PM
Can you use it so that board names and descriptions appear in different languages according to the language used?
Title: Re: Language Tag
Post by: Anguz on December 27, 2004, 09:47:11 PM
Quote from: spiros on December 27, 2004, 09:30:38 PM
Can you use it so that board names and descriptions appear in different languages according to the language used?

That the user can already choose from his profile out of the options you provide.
Title: Re: Language Tag
Post by: Jerry on December 28, 2004, 03:03:38 AM
looks pretty neat anguz
Title: Re: Language Tag
Post by: spiros on December 28, 2004, 05:01:05 AM
No, the actual board names and their descriptions do not change with the language change.

Quote from: Anguz on December 27, 2004, 09:47:11 PM
Quote from: spiros on December 27, 2004, 09:30:38 PM
Can you use it so that board names and descriptions appear in different languages according to the language used?

That the user can already choose from his profile out of the options you provide.
Title: Re: Language Tag
Post by: Anguz on December 28, 2004, 05:27:39 AM
Ah, that's true... I don't remember if ubbcode gets parsed in those, if so, then this tag will work on them, otherwise I'm not sure. :-\
Title: Re: Language Tag
Post by: spiros on December 28, 2004, 07:28:50 AM
I tried adding a tag but it was not parsed so I guess it does not work there....
Title: Re: Language Tag
Post by: Anguz on January 29, 2005, 07:30:44 AM
1.01

Title: Re: Language Tag
Post by: Anguz on February 22, 2005, 09:13:15 PM
1.02

Title: Re: Language Tag
Post by: Anguz on April 20, 2005, 12:36:16 AM
1.03

Title: Re: Language Tag
Post by: stargazer_1017 on May 30, 2005, 01:43:16 AM
Does it work on the custom title area as well? I tried it, but no luck.

-Shayna
Title: Re: Language Tag
Post by: Anguz on May 30, 2005, 11:21:39 PM
Only where bbcode is parsed, like news, posts and signatures.
Title: Re: Language Tag
Post by: stargazer_1017 on May 31, 2005, 07:52:21 AM
Aww. . .okay, thanks Anguz :D I love this mod, BTW. Keep up the great work!

-Shayna
Title: Re: Language Tag
Post by: Anguz on July 03, 2005, 07:09:31 AM
1.04

Title: Re: Language Tag
Post by: The_CHef on November 14, 2005, 02:13:56 PM
Are u considering to update this mod for 1.1 RC1?
Title: Re: Language Tag
Post by: eriktm on February 12, 2006, 05:42:21 AM
What about a update to 1.1rc2? :P :P
Title: Re: Language Tag
Post by: Anguz on February 12, 2006, 02:40:29 PM
I'm waiting for 1.1 Final to update my mods. But I am considering updating it.
Title: Re: Language Tag
Post by: eriktm on February 23, 2006, 09:39:41 AM
okay then
Title: Re: Language Tag
Post by: MadPax on March 26, 2006, 08:04:08 PM
Anguz  :-[ When will you update it to RC2 (should you decide not to wait till final 1.1)?

Thanx,
Pax
Title: Re: Language Tag
Post by: eriktm on March 27, 2006, 05:06:14 AM
Quote from: Anguz on February 12, 2006, 02:40:29 PM
I'm waiting for 1.1 Final to update my mods.

Anguz is gonna wait for 1.1 Final
Title: Re: Language Tag
Post by: MadPax on March 27, 2006, 03:52:17 PM
K, will be monitoring this post then.

Thnx,
Pax
Title: Re: Language Tag
Post by: Reyd on September 18, 2007, 01:05:00 AM
it's not working :/
i downloaded FasterParsecode109_SMF105.tar.gz and installed it than the langugae tag mod
and installed it to but it's not working
what do i have to do?
Title: Version 1.1.8
Post by: yura_mdj on April 27, 2009, 03:41:46 AM
Hello...

Version 1.1.8 is?
somebody has a modification?