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ä...';
</search for>
<add before>
$txt[1000] = 'Valitse kieli / Select language';
</add before>