Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: LPCA on December 16, 2007, 10:14:13 PM

Title: Registration - Show Language mod
Post by: LPCA on December 16, 2007, 10:14:13 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1011)

This mod adds a box on the Registration form for users to select their prefered Language from the available languages list.

To enable this mod you must go to "Admin Control Panel" > "Features and Options" and check "Show language on registration form?".

English and Portuguese (ISO and UTF8) languages included.

Made by LPCA.

Version 1.0
! Initial Release
! Tested on SMF 1.1.4
! Fixed some issues
! Redesigned registration layout
! Added administration feature
! Added Portuguese translation
! Release based on original modification by edurg

*** updated & replaced the archive ***
Title: Re: Registration - Show Language mod
Post by: edi67 on December 17, 2007, 11:21:56 AM
nice mod but one question is possible to have another language by default and not the english
for example i have italian forum and for me will be useful have the italian as default language i can do it?
Title: Re: Registration - Show Language mod
Post by: Excalibur! on December 31, 2007, 10:03:57 AM
I have the same question...
Title: Re: Registration - Show Language mod
Post by: au8ust on January 06, 2008, 10:47:06 AM
Hi, following is Thai and Lao translate for this MOD ;)


<file name="$languagedir/Modifications.thai-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Registration - Show Language mod
$txt['registration_language_admin_field'] = 'ต้องการให้เลือกภาษาในแบบฟอร์ดการลงทะเบียนสมาชิก?';
$txt['registration_language_template_field'] = 'ภาษา';
$txt['registration_language_all_label'] = 'ภาษา';
// Registration - Show Language mod
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.lao-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Registration - Show Language mod
$txt['registration_language_admin_field'] = 'ຕ້ອງການໃຫ້ເລືອກພາສາໃນແບບຟອມການລົງທະບຽນສະມາຊິກ?';
$txt['registration_language_template_field'] = 'ພາສາ';
$txt['registration_language_all_label'] = 'ພາສາ';
// Registration - Show Language mod
]]></add>
</operation>
</file>
Title: Re: Registration - Show Language mod
Post by: falguni1 on January 30, 2008, 12:41:15 PM
is there anyway to force user to select the language otherwise the registration will fail.
Title: Re: Registration - Show Language mod
Post by: Apllicmz on January 30, 2008, 02:59:31 PM
nice work
Title: Re: Registration - Show Language mod
Post by: l3golas83 on March 14, 2008, 08:17:45 AM
Hello to everybody. I did a little addition to this great mod. I'm italian and my forum is in italian.

After installation of this mod, go to the subfolder Themes/default/languages in your SMF folder and edit the file Modifications.italian.php, adding the following code between <?php and ?>



// Registration - Show Language mod

$txt['registration_language_admin_field'] = 'Permetti la scelta della lingua in fase di registrazione?';

$txt['registration_language_template_field'] = 'Lingua';

$txt['registration_language_all_label'] = 'Lingua';

// Registration - Show Language mod




You can do the same for any other language, obviously the name of the file to edit will change and of course you have to translate some sentences in the code above to your language.
Title: selection not showing
Post by: gibsongk55 on March 24, 2009, 01:03:21 AM
Hi,

I just installed this mod and it is not showing up when a user registers.  Help please.

Thanks.

Gibs
Title: selection not showing
Post by: gibsongk55 on March 24, 2009, 01:12:47 AM
Hi,

I just installed this mod and it is not showing up when a user registers.  Help please.

Thanks.

Gibs
Title: Re: Registration - Show Language mod
Post by: the_shadow on July 27, 2009, 09:42:26 PM
in SMF 2.0RC1-1 doesn't work :(