Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Edurg on April 09, 2007, 05:26:16 PM

Title: Language in registration
Post by: Edurg on April 09, 2007, 05:26:16 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=747)

This mod adds a mod that it allows to choose the language on registration.


Title: Re: Language in registration
Post by: SacmaliK on April 09, 2007, 05:52:54 PM
thanks ;)
Title: Re: Language in registration
Post by: Faber73 on April 09, 2007, 07:03:07 PM
Cool, thank you  :D
Title: Re: Language in registration
Post by: Mick. on April 09, 2007, 09:21:00 PM
If i decide to use this mod....do i have to update my language files?      Cuz they're outta date.
Title: Re: Language in registration
Post by: pomak on April 10, 2007, 04:56:10 AM
install Error/Tovaria greshki

!!Paket Yüklenirken Hata Oluştu

Paket yüklenirken en az bir hata oluştu. Eğer ne yaptığınızı bilmiyorsanız yükleme işlemine devam etmemeniz şiddetle önerilir. Bu hatanın nedeni yüklemek istediğiniz paketin forum'unuzda yüklü olan başka bir paketle çakışması, paketteki bir hata, paketin sorunsuz çalışması için sizde yüklü olmayan başka bir pakete ihtiyaç duyması veya paketin SMF'nin farklı bir sürümü için dizayn edilmiş olması olabilir.

i dont know the reason of this error. Could you help me?
Hatanin neden bilmiyorum. Turkce fazla iyi degil.  Yardim edebirmisiniz?
Neznam no ima greshki vav tovaria. Bihteli me pomaga?
Title: Re: Language in registration
Post by: KGIII on April 10, 2007, 05:24:30 AM
Quote from: pomak on April 10, 2007, 04:56:10 AM
install Error/Tovaria greshki

!!Paket Yüklenirken Hata Oluştu

Please TRY to stick to the English language in all but the language specific forums. Thanks. :)
Title: Re: Language in registration
Post by: pomak on April 10, 2007, 06:04:15 AM
This is the problem. And i cant solve the problem so i need help for this operation


!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme



Install Actions
Installations actions for "Lenguaje en el registro":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification Install.mod Modification parse error

Title: Re: Language in registration
Post by: KGIII on April 10, 2007, 06:09:05 AM
Are you using UTF-8 perhaps? If so search for a user with the name of Metallica48423 and see their posts. They are our official language error guru even if they deny it. ;)
Title: Re: Language in registration
Post by: Edurg on April 10, 2007, 12:57:15 PM
Blue devil --> No, No update..... ;)
Title: Re: Language in registration
Post by: hobox on April 14, 2007, 08:33:34 AM
When I tried to Install this I got reports that these files don't exist.
./Themes/default/languages/index.spanish.php     
./Themes/default/languages/index.turkish.php

I use swedish-utf8 so can I safely install this mod and what changes are necessary in the index.language.php files?
Title: Re: Language in registration
Post by: Edurg on April 14, 2007, 09:15:48 AM
Ok now modified: wait a moment
Title: Re: Language in registration
Post by: Edurg on April 14, 2007, 09:19:11 AM
Ok i finished,  ;) I adjunted the MOD
Title: Re: Language in registration
Post by: edi67 on April 15, 2007, 06:15:04 PM
excellent mod

one question , my forum is multilanguage but the language of default is italian, there is the way for have as default in selection of language , the italian and not the english as i have now?

thx
Title: Re: Language in registration
Post by: Edurg on April 17, 2007, 01:04:15 PM
That you want? That alone could choose the Italian one?
Title: Re: Language in registration
Post by: edi67 on April 20, 2007, 05:46:19 PM
Quote from: Edurg on April 17, 2007, 01:04:15 PM
That you want? That alone could choose the Italian one?

No i want only that that 1° default choice is italian ( after english, spanish french ecc ), now installing your mod i have english as 1° choice of default and after the other ( english, spanish , french ecc.)
Title: Re: Language in registration
Post by: Kettu on April 23, 2007, 06:21:15 AM
Why do you replace something with the completely same?

<edit file>
$themedir/Register.template.php
</edit file>

<search for>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
</search for>

<replace>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>
</replace>

there is no difference. 8)
Title: Re: Language in registration
Post by: Edurg on April 23, 2007, 12:39:58 PM
First have a '; and second quited the '; In order that it works, if not it does not work.  ;)
Title: Re: Language in registration
Post by: Kettu on April 23, 2007, 12:41:21 PM
Quote from: Edurg on April 23, 2007, 12:39:58 PM
First have a '; and second quited the '; In order that it works, if not it does not work.  ;)
Ah, now I see :D
Title: Re: Language in registration
Post by: Edurg on April 24, 2007, 12:10:10 PM
 ;)
Title: Re: Language in registration
Post by: Klozi on June 20, 2007, 04:33:49 PM
Quote from: edi67 on April 20, 2007, 05:46:19 PM
Quote from: Edurg on April 17, 2007, 01:04:15 PM
That you want? That alone could choose the Italian one?

No i want only that that 1° default choice is italian ( after english, spanish french ecc ), now installing your mod i have english as 1° choice of default and after the other ( english, spanish , french ecc.)

I want the same, too. Or is there any other way to control the order of the list?
Title: Re: Language in registration
Post by: lonrot on June 27, 2007, 04:32:27 PM
Same here, I have english as default but this mods changes the order and now German appears as first on the list :S
Title: Re: Language in registration
Post by: lonrot on June 27, 2007, 04:48:02 PM
And it seems this MOD doesn't work with SMF 1.3 :(
Title: Re: Language in registration
Post by: lonrot on June 27, 2007, 04:52:50 PM
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

This sucks man, does anybody knows the codes so I can do it manually?
Title: Re: Language in registration
Post by: Edurg on June 28, 2007, 06:21:56 AM
Lonrot mirate este manual ...

http://www.simplemachines.org/community/index.php?topic=178644.0

Tenes que hacer lo del package-info ... Lo de install for: 1.1.3 , unnistall for , 1.1.3 ...

pd : Speaking spanish becose lonrot is spanish and i speaking spanish more ...

Regards,
Edurg .
Title: Re: Language in registration
Post by: lonrot on June 28, 2007, 03:55:41 PM
Gracias Edurg, acerca del orden del los lenguajes, ya muchos lo han comentado aqui, no se trata del orden de instalacion de los lenguajes, yo mismo he instalado varios idiomas despues del aleman y aleman siempre sigue siendo el primero en la lista.

Si vos pudieses editar el mod para que cada quien organizace el orden de la lista segun la conveniencia seria genial.

Saludos.
Title: Re: Language in registration
Post by: Edurg on June 29, 2007, 07:09:07 AM
Vale lo intentare  ;)
Title: Re: Language in registration
Post by: lonrot on July 24, 2007, 10:38:28 PM
Algun avance Edurg?
Title: Re: Language in registration
Post by: Edurg on July 26, 2007, 05:43:37 AM
Mira si quieres puedo hacerte un mod solo para ti tu me dices los idiomas que quieres y el orden y ya esta ok??

Agregame a [email protected] .
Title: Re: Language in registration
Post by: rodrigosoares on July 26, 2007, 08:26:12 AM
Edurg,

I tried to install your mod, but the [apply mod] button for this mod doesn´t appear in my package manager, it only appear [list files] and [delete].

Do you have any idea why this is happening ?

I am using SMF 1.1.3

PS. I am not having any problem to install other mods.

[/list]
Title: Re: Language in registration
Post by: Edurg on July 31, 2007, 10:57:14 AM
http://custom.simplemachines.org/mods/index.php?mod=747

actualized, compatible on smf 1.1.3
Title: Re: Language in registration
Post by: dxyy on August 15, 2007, 01:55:07 PM
I have downloaded and installed this mod on my test forum. It looks good, even though I got some error messages about a Turkish and Spanish file. I guessed that those wouldn't matter as my forum only uses English and Chinese.

Thanks for the great mod, but I have the same question as a few other people; is there a way to change the order of the languages on the registration screen?

For example, currently when someone goes to register if they don't change anything the forum will be set to Chinese as that is at the top of the drop-down box by default. I would really prefer to have English that is actually the primary language of the forum.

Any assistance that anyone can provide with this would be much appreciated.

Thanks! :)
Title: Re: Language in registration
Post by: Edurg on August 16, 2007, 05:50:13 AM
ok, it will try it  ;)
Title: Re: Language in registration
Post by: dxyy on August 16, 2007, 09:20:34 AM
Quote from: Edurg on August 16, 2007, 05:50:13 AM
ok, it will try it  ;)
Ok, great, please let us know if you find a way for us to change the language order.

Thanks! :)
Title: Re: Language in registration
Post by: Edurg on August 25, 2007, 05:10:49 PM
The package of the languages by lonrot (Language order):

1    English         
2    Chinese   
3    Spanish   
4    Japanese   
5    German   
6    French   
7    Korean
8    Italian   
9    Portuguese   
10    Russian   
11    Malay   
12    Dutch   
13    Arabic   
14    Polish   
15    Swedish


Download of attachment.
Title: Re: Language in registration
Post by: lonrot on August 25, 2007, 05:30:33 PM
Well I just asked Edurg the order in which the languages would be listed, this order is based on Wikipedias's Global internet usage:
http://en.wikipedia.org/wiki/Global_internet_usage

So the registration will be defined by the language priorities, I think is the best deal for a multi language sites like mine. And mostly for everyone. The package wasn't made by me, I simply requested the above order and Edurg made it, :D
Title: Re: Language in registration
Post by: dxyy on August 25, 2007, 05:59:50 PM
Thanks for the updated package! :)
Title: Re: Language in registration
Post by: janilxx on December 17, 2007, 02:09:59 PM
Quote from: hugodiaz on August 15, 2007, 01:55:07 PM
Thanks for the great mod, but I have the same question as a few other people; is there a way to change the order of the languages on the registration screen?

For example, currently when someone goes to register if they don't change anything the forum will be set to Chinese as that is at the top of the drop-down box by default. I would really prefer to have English that is actually the primary language of the forum.

Any assistance that anyone can provide with this would be much appreciated.

I also wanted to select forum's default language by default in language dropdown box.
I changed the mod so that this:
<edit file>
$themedir/Register.template.php
</edit file>

<search for>
if ($context['visual_verification'])
{
echo '
<tr valign="top">
</search for>

<add before>

<td width="40%">
<b>', $txt[1000], ':</b>
                  </td>
                  <td>
<select name="lngfile">';

                            foreach($context['languages'] as $language)
                            {
         echo '
               <option value="', $language['filename'], '">', $language['name'], '</option>';
         echo '>', $language['name'], '</option>';
                            }

         echo '</select>
                  </td>
               </tr>';
</add before>


was replaced by this:
(search if ($language['selected']=="1")" )
<edit file>
$themedir/Register.template.php
</edit file>

<search for>
if ($context['visual_verification'])
{
echo '
<tr valign="top">
</search for>

<add before>

<td width="40%">
<b>', $txt[1000], ':</b>
                  </td>
                  <td>
<select name="lngfile">';

                            foreach($context['languages'] as $language)
                            {
         echo '
               <option value="', $language['filename'], '"';
         if ($language['selected']=="1")
         {
            echo ' selected="selected"';
         }
         echo '>', $language['name'], '</option>';
                            }

         echo '</select>
                  </td>
               </tr>';
</add before>



This works nicely at least in my forums where is English and Finnish languages in use.

Feel free to add this to the mod.


If you want to add support for Finnish language, add also this:
<edit file>
$languagedir/index.finnish.php
</edit file>

<search for>
$txt[151] = 'Ei viestej&#228;...';
</search for>

<add before>
$txt[1000] = 'Valitse kieli / Select language';
</add before>
Title: Re: Language in registration
Post by: -=[Vyorel]=- on August 15, 2010, 06:49:42 PM
For SMF 2.0 RC3 or SMF 1.1.11 ?
Title: Re: Language in registration
Post by: jordumus on August 20, 2010, 05:10:02 PM
same: 2.0 RC3 here..
Title: Re: Language in registration
Post by: musicus on January 05, 2013, 07:22:36 PM
I need this Addon for SMF 2.03