Advertisement:

Author Topic: Language in registration  (Read 23141 times)

Offline lonrot

  • Jr. Member
  • **
  • Posts: 334
Re: Language in registration
« Reply #20 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

Offline lonrot

  • Jr. Member
  • **
  • Posts: 334
Re: Language in registration
« Reply #21 on: June 27, 2007, 04:48:02 PM »
And it seems this MOD doesn't work with SMF 1.3 :(

Offline lonrot

  • Jr. Member
  • **
  • Posts: 334
Re: Language in registration
« Reply #22 on: June 27, 2007, 04:52:50 PM »
Quote
The 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?

Offline Edurg

  • Jr. Member
  • **
  • Posts: 264
    • SOLOTEMAZOS
Re: Language in registration
« Reply #23 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 .

Offline lonrot

  • Jr. Member
  • **
  • Posts: 334
Re: Language in registration
« Reply #24 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.

Offline Edurg

  • Jr. Member
  • **
  • Posts: 264
    • SOLOTEMAZOS
Re: Language in registration
« Reply #25 on: June 29, 2007, 07:09:07 AM »
Vale lo intentare  ;)

Offline lonrot

  • Jr. Member
  • **
  • Posts: 334
Re: Language in registration
« Reply #26 on: July 24, 2007, 10:38:28 PM »
Algun avance Edurg?

Offline Edurg

  • Jr. Member
  • **
  • Posts: 264
    • SOLOTEMAZOS
Re: Language in registration
« Reply #27 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 deportista_edu@hotmail.com .

Offline rodrigosoares

  • Newbie
  • *
  • Posts: 4
Re: Language in registration
« Reply #28 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]
« Last Edit: July 28, 2007, 06:56:17 AM by rodrigosoares »


Offline dxyy

  • Full Member
  • ***
  • Posts: 483
  • In China, nothing surprises me anymore
    • Resident Alien - a blog about my life in China
Re: Language in registration
« Reply #30 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! :)

Offline Edurg

  • Jr. Member
  • **
  • Posts: 264
    • SOLOTEMAZOS
Re: Language in registration
« Reply #31 on: August 16, 2007, 05:50:13 AM »
ok, it will try it  ;)

Offline dxyy

  • Full Member
  • ***
  • Posts: 483
  • In China, nothing surprises me anymore
    • Resident Alien - a blog about my life in China
Re: Language in registration
« Reply #32 on: August 16, 2007, 09:20:34 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! :)

Offline Edurg

  • Jr. Member
  • **
  • Posts: 264
    • SOLOTEMAZOS
Re: Language in registration
« Reply #33 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.

Offline lonrot

  • Jr. Member
  • **
  • Posts: 334
Re: Language in registration
« Reply #34 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

Offline dxyy

  • Full Member
  • ***
  • Posts: 483
  • In China, nothing surprises me anymore
    • Resident Alien - a blog about my life in China
Re: Language in registration
« Reply #35 on: August 25, 2007, 05:59:50 PM »
Thanks for the updated package! :)

janilxx

  • Guest
Re: Language in registration
« Reply #36 on: December 17, 2007, 02:09:59 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:
Code: [Select]
<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")" )
Code: [Select]
<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>

Offline -=[Vyorel]=-

  • Sr. Member
  • ****
  • Posts: 744
  • Gender: Male
  • Web Hoster
    • RomanianPowerHosting on Facebook
    • RO Power Hosting
Re: Language in registration
« Reply #37 on: August 15, 2010, 06:49:42 PM »
For SMF 2.0 RC3 or SMF 1.1.11 ?
« Last Edit: August 20, 2010, 05:54:59 PM by -=[Vyorel]=- »
My mods for SMF - [6].

Offline jordumus

  • Semi-Newbie
  • *
  • Posts: 14
Re: Language in registration
« Reply #38 on: August 20, 2010, 05:10:02 PM »
same: 2.0 RC3 here..

Offline musicus

  • Jr. Member
  • **
  • Posts: 179
  • Gender: Male
    • @net_mu on Twitter
    • Mucic for open ears
Re: Language in registration
« Reply #39 on: January 05, 2013, 07:22:36 PM »
I need this Addon for SMF 2.03