Elxis CMS Forum

Support => Language => Topic started by: mmarch on December 10, 2007, 11:25:00

Title: Problem with administrator translation(SOLVED)
Post by: mmarch on December 10, 2007, 11:25:00
Today finished translation of admin for Elxis 2006, installed on local host for test purposes and get following error messages :

PHP: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\webroot\xampp\htdocs\skangali\administrator\language\latvian\latvian.php:1)
uri: index2.php?mylang=latvian&option=com_languages&task=viewalangs
path:
version: Elxis 2006.4 Stable rev1080 [ Nestor ] 04-December-2006 23:08 GMT+2
WARNING(2): C:\webroot\xampp\htdocs\skangali\administrator\index2.php, line 34

and also in from
...\administrator\index2.php, line 101

to line 106

this is a code

Code: [Select]
initGzip();
header( 'Content-type: text/html; charset=utf-8' );
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );

what i should change???
Title: Re: Problem with administrator translation
Post by: Farhad Sakhaei on December 10, 2007, 12:59:20
with which editor you translated texts? your file should be in UTF-8 encoding and in Unix format , open your files in notepad++ and from Format Menu click on Encode in UTF-8 and also UTF-8 without BOM , after it save your files and check it again
you can attach you files here , i'll check them ...
Title: Re: Problem with administrator translation
Post by: mmarch on December 10, 2007, 13:17:48
For translation i`m using Notepad ++

I checked all files and everyone was in UTF8.
Title: Re: Problem with administrator translation
Post by: mmarch on December 10, 2007, 13:19:40
which one file i should attach?
Title: Re: Problem with administrator translation
Post by: Farhad Sakhaei on December 10, 2007, 13:24:12
did you check UTF-8 without BOM ?
attach your language files that you translated them
Title: Re: Problem with administrator translation
Post by: Ivan Trebješanin on December 10, 2007, 13:25:37
Just attach everything you have translated in a .zip file. We'll check it out. Looks to me that you have BOM headers, even your files are utf-8 encoded.

EDIT: Hi farhad, we posted again at the same time!!! This time almost the same post  :D :D
Title: Re: Problem with administrator translation
Post by: mmarch on December 10, 2007, 13:29:29
Here is my translation.

[old attachment deleted by admin]
Title: Re: Problem with administrator translation
Post by: Ivan Trebješanin on December 10, 2007, 13:32:02
Just as we thought... there are BOM headers at the begining of your files. It will take some time to resave all files without BOM, but it will be OK. Stay tuned ;)
Title: Re: Problem with administrator translation
Post by: mmarch on December 10, 2007, 13:35:46
Let me know what i should do and i will try. Next translation shouls be for elxis 2008 and if i will miss something than i be unable translate in next time. What is a BOM header???
Title: Re: Problem with administrator translation
Post by: Ivan Trebješanin on December 10, 2007, 13:39:41
Here, try this... and thank you ;)

[old attachment deleted by admin]
Title: Re: Problem with administrator translation
Post by: mmarch on December 10, 2007, 13:41:16
thank's for what???

It's i should say you thanks and send for you a virtual Martini  ::)
Title: Re: Problem with administrator translation (SOLVED)
Post by: mmarch on December 10, 2007, 13:42:52
Yes now everything is a perfect. Many Many thank's for fast help.   ;)
Title: Re: Problem with administrator translation(SOLVED)
Post by: Ivan Trebješanin on December 10, 2007, 13:46:58
Thank you for the effort. Believe me, I know what it takes to translate everything!
Title: Re: Problem with administrator translation(SOLVED)
Post by: mmarch on December 10, 2007, 13:50:53
No not jet, i moved from country to another country, and long time was unable to do anything, now3 i am back and first thing was translate old version, for some customers. Soon i will start translate for 2008, admin files today downloaded, but can't find a front end files :D

What i did wrong in this translation???

Thank's a lot.
Title: Re: Problem with administrator translation(SOLVED)
Post by: Ivan Trebješanin on December 10, 2007, 14:01:59
Here is some info for you on BOM: http://en.wikipedia.org/wiki/Byte_Order_Mark

As 2008 frontend files for translation: https://forum.elxis.org/index.php?topic=1488.0
Title: Re: Problem with administrator translation(SOLVED)
Post by: mmarch on December 10, 2007, 14:05:28
OK, thank's for info, now i have all files, just last question how and with whichone soft you fix BOM issue??? and this problem was in all files or in few???
Title: Re: Problem with administrator translation(SOLVED)
Post by: Ivan Trebješanin on December 10, 2007, 14:14:56
I can tell you what I do, because I don't use notepad++, but PSPad. In PSPad you just go to Settings->Program Settings->Program - Behaviour and UNCHECK the option Ident. bytes in UTF-8 coding. One more thing about PSPad: you can open your files in HEX view and check if they have BOM or not. I know Notepad++ can be set to save files without BOM, but don't have the time to install it and find where and what to set. Please, try to find it yourself, or start using PSPad. :)
Title: Re: Problem with administrator translation(SOLVED)
Post by: mmarch on December 10, 2007, 14:45:30
yeee, i downloaded and will try learn this soft.

Thank's