I have some problems with the romanian translation. "Account" and "Checkout" links on the top menu doesn't work.
When I click on account for example, I receive this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/shop/catalog/language/romanian/romanian.php:1) in /home/mysite/public_html/shop/library/environment/response.php on line 22
Same error when I switch languages, any idea what causes the problem? Thanks.
When I click on account for example, I receive this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/shop/catalog/language/romanian/romanian.php:1) in /home/mysite/public_html/shop/library/environment/response.php on line 22
Same error when I switch languages, any idea what causes the problem? Thanks.
Last edited by claus on Sun Sep 23, 2007 5:37 pm, edited 1 time in total.
Yeap. I found the problem. As it was expected it was in the romanian.php file. Quite stupid, though. It seems that my file editor (Notepad++ configured to encode all files as UTF-8) had included a space (or something like it) in the file, and the consequence of this was the breaking of the header that is sent to the browser. As I sad, stupid.
I will corect this and i will upload the new version. Thank you for your time. I know how frustrating this can be.
I will corect this and i will upload the new version. Thank you for your time. I know how frustrating this can be.
This worked for me (so it seems, anyway...):
- Notepad++ is my default code editor;
- is configured to encode all files as UTF-8;
- but it seems that it will add a wired "space" at the begining of the file (didn't know why, but thank God for Google);
- the solution is to re-encode the file as ANSI and save it. that "space" was gone. the "space" can be seen in Total Commander when you view the code of the file (F3). on my file it add this "", right at the beginning of the file. even now, if i convert the file from ANSI to UTF-8 will add that nonsense.
Look here a good explanation:
"Headers must be written before any data is sent to the client. Unicode files may include a Byte-Order Mark (BOM) to help distinguish the big endian and little endian byte order. Unfortunately, the BOM isn't understood by PHP. Upon encountering the BOM, PHP assumes that it is dealing with data, by which time it's too late to modify headers. Solution? Save the file in UTF-8 encoding without a BOM."
Notepad++ know to encode a file as UTF-8 without BOM. But, at that time, I didn't knew what was that so I used simple UTF-8 that PHP have problem with it. Again, sorry. Hope this information may help somebody.
- Notepad++ is my default code editor;
- is configured to encode all files as UTF-8;
- but it seems that it will add a wired "space" at the begining of the file (didn't know why, but thank God for Google);
- the solution is to re-encode the file as ANSI and save it. that "space" was gone. the "space" can be seen in Total Commander when you view the code of the file (F3). on my file it add this "", right at the beginning of the file. even now, if i convert the file from ANSI to UTF-8 will add that nonsense.
Look here a good explanation:
"Headers must be written before any data is sent to the client. Unicode files may include a Byte-Order Mark (BOM) to help distinguish the big endian and little endian byte order. Unfortunately, the BOM isn't understood by PHP. Upon encountering the BOM, PHP assumes that it is dealing with data, by which time it's too late to modify headers. Solution? Save the file in UTF-8 encoding without a BOM."
Notepad++ know to encode a file as UTF-8 without BOM. But, at that time, I didn't knew what was that so I used simple UTF-8 that PHP have problem with it. Again, sorry. Hope this information may help somebody.
All contributions, including the language files can be downloaded from: http://www.opencart.com/contributionrazvanf wrote: Where can I download the Romanian language?
Who is online
Users browsing this forum: No registered users and 1 guest