News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Other languages

Started by papabill, August 26, 2005, 04:01:53 PM

Previous topic - Next topic

papabill

Even though I'm not a programmer, I have figured a "quick  'n dirty" way to let other users choose other languages:

In INDEX.ENGLISH.PHP

AFTER:
$txt['ssi_not_direct'] = 'Please don\'t access SSI.php by URL directly; you may want to use the path (%s) or add ?ssi_function=something.';

ADD:
$txt['german'] = '<b>Deutsch</b>';
$txt['french'] = '<b>Francais</b>';
$txt['spanish'] = '<b>Espanol</b>';

In INDEX.TEMPLATE.PHP

AFTER:
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />

ADD:
<a href="', $scripturl, '?language=german">',  $txt['german'], '</a>
<a href="', $scripturl, '?language=spanish">',  $txt['spanish'], '</a>
<a href="', $scripturl, '?language=french">',  $txt['french'], '</a><br />

AFTER:
', $txt['welcome_guest'], '<br />

ADD:
<a href="', $scripturl, '?language=german">',  $txt['german'], '</a>
<a href="', $scripturl, '?language=spanish">',  $txt['spanish'], '</a>
<a href="', $scripturl, '?language=french">',  $txt['french'], '</a><br />


That way, when the prospective member clicks one of the languages, the screen reappears in the language he clicks and the registration process is in the same language as well.

Now, in each of the languages chosen, I am putting more or less the same information (in that language) to reach other languages.
Computer Help available:
Computer help: $52.00 hr.
Computer help while you watch: $92.00 hr.
Computer help with your advice: $152.00 hr
Computer help with your assistance: $252.00 hr

Advertisement: