News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Language in registration

Started by Edurg, April 09, 2007, 05:26:16 PM

Previous topic - Next topic

lonrot

Same here, I have english as default but this mods changes the order and now German appears as first on the list :S

lonrot

And it seems this MOD doesn't work with SMF 1.3 :(

lonrot

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?

Edurg

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 .

lonrot

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.


lonrot


Edurg

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

rodrigosoares

#28
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]


dxyy

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


dxyy

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

Edurg

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.

lonrot

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


janilxx

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>

-=[Vyorel]=-

#37
For SMF 2.0 RC3 or SMF 1.1.11 ?
My mods for SMF - [6].

jordumus


musicus


Advertisement: