https://www.icyphoenix.com/viewtopic.php?f=35&t=6186
-----------------------------------
zsolti10
Sun 26 Jul, 2009 20:18

Language Problem
-----------------------------------
Hello!
I "convert" a part of 1.2.0.27c language file compatible with 1.3.0.53, but my site display this:
[b]Parse error: syntax error, unexpected ';', expecting ')' in /nfs/x0201/m/mu/muonlinehun/wwwroot/language/lang_hungarian/lang_main.php on line 86[/b]


-----------------------------------
spydie
Sun 26 Jul, 2009 20:36

Re: Language Problem
-----------------------------------
you should take the English lang file from 1.3.0.53 

and just translate line by line.

take your 1.2.0.27 file to compare but don´t use any var of it



It´s enough if you forget to close an simple ( ' ) and everything goes in the sh...er


-----------------------------------
Danielc
Sun 26 Jul, 2009 20:38

Re: Language Problem
-----------------------------------
It seems to be a problem with the line 86 of the file. Is the syntax well? Are you sure that the string ends with [b]';[/b]  ?


-----------------------------------
novice programmer
Sun 26 Jul, 2009 21:03

Re: Language Problem
-----------------------------------
Hey, post the php string on here (just the var that gives the problem)

OT: So we will get on a rocket on this ticket! :mricy: (keyboard is not working properly :P )


-----------------------------------
spydie
Sun 26 Jul, 2009 21:05

Re: Language Problem
-----------------------------------
[quote user="novice programmer" post="41957"]
OT: So we will get on a rocket on this ticket! :mricy: (keyboard is not working properly :P )[/quote]

 :roll: To much coke spilled over it or what ?? :lol:


-----------------------------------
novice programmer
Mon 27 Jul, 2009 00:28

Re: Language Problem
-----------------------------------
[quote user="spydie" post="41958"][quote user="novice programmer" post="41957"]
OT: So we will get on a rocket on this ticket! :mricy: (keyboard is not working properly :P )[/quote]

 :roll: To much coke spilled over it or what ?? :lol:[/quote]

It must be that the holidays are not so good for computers as for humans. I had been at Burdeaux, on France. BTW, we have made 2 offtopics from serious threads on just a couple of hours!

Could be the wet air of that zone :lol: ?

Perhaps it is time for another offtopic thread: Where have you been or will go for holidays this year?


-----------------------------------
zsolti10
Fri 31 Jul, 2009 14:16

Re: Language Problem
-----------------------------------
The problem is solved ( very big thanks for you), one ' was missing,but now it writes:

[b]Parse error:[/b] syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in [b]/nfs/x0201/m/mu/muonlinehun/wwwroot/language/lang_hungarian/lang_main.php[/b] on line [b]463[/b]

lang_main.php line 460-68:
[code linenumbers=false]
	'Stored' => 'Az üzenet sikeresen elküldve.',
	'Deleted' => 'Az üzenet sikeresen törölve.',
	'Poll_delete' => 'Szavazás sikeresen törölve.',
	'Vote_cast' => 'A szavazatod sikeresen elküldve.',

	'Topic_reply_notification' => 'Téma válasz értesítés',

	'Emoticons' => 'Emotikonok',
	'More_emoticons' => 'Összes emotikon megtekintése',[/code]


-----------------------------------
Limun
Fri 31 Jul, 2009 14:43

Re: Language Problem
-----------------------------------
[quote user="zsolti10" post="42157"]The problem is solved ( very big thanks for you), one ' was missing,but now it writes:

[b]Parse error:[/b] syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in [b]/nfs/x0201/m/mu/muonlinehun/wwwroot/language/lang_hungarian/lang_main.php[/b] on line [b]483[/b]

lang_main.php line 483-492
[code linenumbers=false]	'Login_check_pm' => 'Lépj be a privát üzeneteid megtekintéséhez',
	'New_pms' => ' %d új privát üzeneted van', // You have 2 new messages
	'New_pm' => ' %d új privát üzeneted van', // You have 1 new message
	'No_new_pm' => 'Nincs új privát üzeneted',
	'Unread_pms' => '%d olvasatlan privát üzeneted van',
	'Unread_pm' => '%d olvasatlan privát üzeneted van',
	'No_unread_pm' => 'Nincs olvasatlan privát üzeneted',
	'You_new_pm' => 'A new private message is waiting for you in your Inbox',
	'You_new_pms' => 'New private messages are waiting for you in your Inbox',
	'You_no_new_pm' => 'No new private messages are waiting for you',[/code][/quote]
i tested this and its ok ,so probably problem is in some other thing
can you post whole hungarian [b]lang_main.php[/b] here in spoiler or in attachment please


-----------------------------------
zsolti10
Fri 31 Jul, 2009 14:56

Re: Language Problem
-----------------------------------
I don't know how, but i solved it :D
But here is the file


-----------------------------------
Limun
Fri 31 Jul, 2009 15:06

Re: Language Problem
-----------------------------------
when i instaled your lang file i got blank page 
note that is one strange thing in first line in your file
it didnt show up in notepad 

see 
 [img]http://www.icyphoenix.com/files/images/3336/strange.png[/img] 

so replace 
[code linenumbers=false]&#271;»&#380;<?php[/code]

with
[code linenumbers=false]<?php[/code]


-----------------------------------
zsolti10
Fri 31 Jul, 2009 15:17

Re: Language Problem
-----------------------------------
And what program can remove that?


-----------------------------------
Limun
Fri 31 Jul, 2009 15:30

Re: Language Problem
-----------------------------------
Win Merge or total commander 

strange..  :shock: 
it appaer only in total commander 

if i dont remove that &#271;»&#380; i cant open IP 
maybe problem is in my PC  :shock: 

anyway here its your file without this &#271;»&#380;


-----------------------------------
zsolti10
Fri 31 Jul, 2009 15:34

Re: Language Problem
-----------------------------------
Thank you for your help  :mrblue:


