Advertisement:

Author Topic: Error in SLOVAK language package for SMF 2 rc 5  (Read 13585 times)

Offline analienholakres3

  • Newbie
  • *
  • Posts: 2
Error in SLOVAK language package for SMF 2 rc 5
« on: May 09, 2011, 03:34:09 PM »
Hi,
I discovered there is an error in slovak language package for SMF 2 RC 5 (both utf and non-utf) which leads to:
Code: [Select]
Undefined offset: 28
File: C:/inetpub/wwwroot/smf_dev/Themes/default/languages/Modifications.english.php (eval?)

In this case compiler lies about problematic file location. The problem is in Index.Slovak-utf8.php around line 170, following code:
Code: [Select]
$txt['welcome_guest'] = 'Vitajte, <b>' . $txt[28] . '</b>. Prosím <a href="' . $scripturl . '?action=login">prihláste sa</a> alebo <a href="' . $scripturl . '?action=register">sa zaregistrujte</a>.'; which should be replaced with
Code: [Select]
$txt['welcome_guest'] = 'Vitajte, <b>%s</b>. Prosím <a href="' . $scripturl . '?action=login">prihláste sa</a> alebo <a href="' . $scripturl . '?action=register">sa zaregistrujte</a>.';
I made an update, translated some other messages in this file and the results is availible as an attachment.

Jakub

Offline Relyana

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,994
  • Gender: Female
Re: Error in SLOVAK language package for SMF 2 rc 5
« Reply #1 on: May 09, 2011, 07:52:55 PM »
Thanks for reporting the issue analienholakres3! Should be fixed now. :)

Code: [Select]
$txt['welcome_guest'] = 'Vitajte, <strong>%1$s</strong>. Prosím <a href="' . $scripturl . '?action=login">prihláste sa</a> alebo <a href="' . $scripturl . '?action=register">sa zaregistrujte</a>.';
Want to improve SMF in your language? Here's how you can help!