• Welcome to Simple Machines Community Forum. Please login or sign up.

Error in SLOVAK language package for SMF 2 rc 5

Started by analienholakres3, May 09, 2011, 03:34:09 PM

Previous topic - Next topic

analienholakres3

Hi,
I discovered there is an error in slovak language package for SMF 2 RC 5 (both utf and non-utf) which leads to:
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:
$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

$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

Relyana

Thanks for reporting the issue analienholakres3! Should be fixed now. :)

$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!

Advertisement: