Simple Machines Community Forum

SMF Support => Language Specific Support => Topic started by: analienholakres3 on May 09, 2011, 03:34:09 PM

Title: Error in SLOVAK language package for SMF 2 rc 5
Post by: analienholakres3 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
Title: Re: Error in SLOVAK language package for SMF 2 rc 5
Post by: Relyana 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! (http://www.simplemachines.org/community/index.php?topic=273337.0)