Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Arebias - maaliskuu 15, 2009, 09:58:57 IP

Otsikko: Error when Selecting Languages
Kirjoitti: Arebias - maaliskuu 15, 2009, 09:58:57 IP


I am using Back n Black theme and I get this error when I select 'Languages' in the administration area.

Parse error:  syntax error, unexpected T_STRING, expecting ')' in /home/dallasu2/public_html/forum/Themes/default/languages/index.macedonian-utf8.php on line 20


Any Ideas?
Otsikko: Re: Error when Selecting Languages
Kirjoitti: Aleksi "Lex" Kilpinen - maaliskuu 16, 2009, 02:21:44 AP
Can you take a look see and tell us what that line in the mentioned file has in it? :)
Would you mind posting say lines 18-22?

I'm just guessing there's a typo in there.
Otsikko: Re: Error when Selecting Languages
Kirjoitti: Arebias - maaliskuu 16, 2009, 12:39:04 IP

Yes I can:

<?php
// Version: 1.1.5; Index

global $forum_copyright$forum_version$webmaster_email;

// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)
// For more information see:
//   - http://www.php.net/function.pspell-new
//   - http://www.php.net/function.setlocale
// Again, SPELLING SHOULD BE '' 99% OF THE TIME!!  Please read this!
$txt['lang_locale'] = 'mk_MK.utf8';
$txt['lang_dictionary'] = 'mk';
$txt['lang_spelling'] = '';

// Character set and right to left?
$txt['lang_character_set'] = 'UTF-8';
$txt['lang_rtl'] = false;

$txt['days'] = array(';
$txt['
days_short'] = array(';
// Months must start with 1 => 'January'. (or translated, of course.)
$txt['months'] = array(=> ';
$txt['
months_titles'] = array(1 => ';
$txt['months_short'] = array(=> ';

$txt['
newmessages0'] = '';
$txt['
newmessages1'] = '';
$txt['
newmessages3'] = '';
$txt['
newmessages4'] = ',';

$txt[2] = '';

$txt[10] = '';

$txt[17] = '';
$txt[18] = $context['
forum_name'] . ' - ;
$txt[19] = '';
$txt[20] = '';
$txt[21] = '';
$txt[22] = '';

$txt[24] = '(';
$txt[26] = '';
$txt[27] = '';
$txt[28] = '';
$txt[29] = '';
$txt[30] = '';
$txt[31] = '';
$txt[33] = '';

$txt[34] = '';
// Use numeric entities in the below string.
$txt[35] = '';
$txt[36] = '';

$txt[40] = '';

$txt[62] = '';
$txt[63] = '';
$txt[64] = '';
$txt[66] = '';
$txt[68] = '';
$txt[69] = 'Email';
$txt[70] = '';
$txt[72] = '';

$txt[79] = '';

$txt[81] = '';
$txt[82] = '';
$txt[87] = '';

$txt[92] = '';
$txt[94] = '';
$txt[95] = '';
$txt[96] = '';
$txt[97] = '';

$txt[101] = '';
$txt[102] = '';
$txt[103] = '';

$txt[104] = '';
$txt[105] = '';
$txt[106] = '';
$txt[107] = '';
$txt[108] = '';
$txt[109] = '';
$txt[110] = '';
$txt[111] = '';
$txt[114] = '';


Otsikko: Re: Error when Selecting Languages
Kirjoitti: Aleksi "Lex" Kilpinen - maaliskuu 16, 2009, 12:45:05 IP
Would seem more than a typo - it appears to be missing a lot  ::) You might want to try and download the language files again, and see if they come up like that still...
Otsikko: Re: Error when Selecting Languages
Kirjoitti: Arebias - maaliskuu 16, 2009, 12:56:30 IP


OK. I downloaded that macedonian language pack and extracted that one .php from it and uploaded to the server.

Now it is working correctly.

Thanks for the help!

Otsikko: Re:
Kirjoitti: Aleksi "Lex" Kilpinen - maaliskuu 16, 2009, 01:06:26 IP
You're welcome. :) I'm glad I could help.