Post by crazymaster » Fri Apr 16, 2010 2:02 am

i just edited the admin panel language files in 1.4.7
now they are transleted into bulgarian language, but there are charset problem - i can't see the text correctly, but if i select the encoding to charset-1251 from my Browser - everything is OK

i tried to include charset-1251 in the:
admin/php.ini
admin\view\template\common\header.tpl

but without results

what should i do ?
Last edited by i2Paq on Fri Apr 16, 2010 2:11 am, edited 1 time in total.
Reason: Split from the OpenCart 1.4.7 BUG topic.

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by crazymaster » Fri Apr 16, 2010 5:59 pm

how to fix the problem?
maybe people with russian language can help ?

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by OSWorX » Fri Apr 16, 2010 6:01 pm

Guess you have to adopt the header.tpl (admin) where the encoding is hard coded to utf-8

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by crazymaster » Fri Apr 16, 2010 7:38 pm

what to do with header.tpl?
i tried to remove the utf-8, to add charset 1251, to add them both, but no results ?
check this screenshot...
the strange thing is that the currency is showing correctly:
untitled.JPG

untitled.JPG (110.18 KiB) Viewed 6571 times


New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by OSWorX » Fri Apr 16, 2010 11:38 pm

Which encoding did you use to translate and save the language files?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by crazymaster » Sat Apr 17, 2010 12:48 am

OSWorX wrote:Which encoding did you use to translate and save the language files?
i just copied the english files and edited them
i didn't found something to other to change?

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by OSWorX » Sat Apr 17, 2010 12:55 am

crazymaster wrote:
OSWorX wrote:Which encoding did you use to translate and save the language files?
i just copied the english files and edited them
i didn't found something to other to change?
Then you used UTF-8 as encoding.
The encoding must be set in the editor at saving the file(s).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by crazymaster » Sat Apr 17, 2010 4:22 am

Thanks OSWorX !
I didn't knew that!
Now everything is OK.
I will upload the bulgarian language and a few other plugins in the Extensions section soon, so and other people will be able to use them :)

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by crazymaster » Sun Apr 18, 2010 5:51 am

Warning: Cannot modify header information - headers already sent by (output started at /home/crazymas/public_html/AUTOCOLORTUNING.COM/admin/language/bulgarian/bulgarian.php:1) in /home/crazymas/public_html/AUTOCOLORTUNING.COM/system/engine/controller.php on line 27

how can i fix this problem?
when i try to login it shows it, if i enter the URL again, it takes me to admin panel?

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by crazymaster » Sun Apr 18, 2010 9:33 pm

it is possible this problem to be a problem of open cart?
i have dowloaded the first version/a few minutes after it was released/ ?

edit:
i found that the problem is in encoding

if i change the encoding to ANSI(all files on the server are in this encoding)- everything will be OK with this errors, but i dont see bulgarian characters correctly. so when i get it back to UTF-8 characters are OK, but i am getting this error and above the header logo i have about 10px white space, which i dont have usually

how i can fix this problem?

edit:
27-th line says:

Code: Select all

header('Location: ' . str_replace('&', '&', $url));
EDIT2:
Problem is fixed - the problem was that bulgarian files was with encoding UTF-8, when i changed them to UTF-8 without BOM - everything was OK
Soon when i translete everything - i will upload the files in Languages section :)

New member

Posts

Joined
Wed Apr 07, 2010 10:29 pm

Post by OSWorX » Mon Apr 19, 2010 2:59 pm

crazymaster wrote:EDIT2:
Problem is fixed - the problem was that bulgarian files was with encoding UTF-8, when i changed them to UTF-8 without BOM - everything was OK
Soon when i translete everything - i will upload the files in Languages section :)
Ever (!!!) save files (specially translations) WITHOUT BOM, otherwise you are using UTF-32 (very rare cases).
See also: http://en.wikipedia.org/wiki/Byte_order_mark

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by stanislav » Mon Apr 26, 2010 4:00 pm

Hi guys,

where can I download opencart BULGARIAN language (for 1.4.7)?

Thanks

Newbie

Posts

Joined
Mon Apr 26, 2010 3:57 pm

Post by mehdicomp » Mon Apr 26, 2010 4:58 pm

Warning: Cannot modify header information - headers already sent by (output started at /home/farajahe/public_html/shop/catalog/language/persian/persian.php:1) in /home/farajahe/public_html/shop/system/library/currency.php on line 43Warning: Cannot modify header information - headers already sent by (output started at /home/farajahe/public_html/shop/catalog/language/persian/persian.php:1) in /home/farajahe/public_html/shop/system/engine/controller.php on line 27
helppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp

Newbie

Posts

Joined
Tue Apr 20, 2010 6:40 pm

Post by OSWorX » Mon Apr 26, 2010 7:19 pm

Why crying so loud for help?
Read this topic and follow all advices.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by KuriN » Fri Feb 04, 2011 11:27 pm

I did everything on this topic - Verified that the encoding was UTF-8 without BOM, but still the problem persists. Any other ideas?

EDIT:
Ok, found the problem!

If you modify the "powered by open cart" in the language you are using (in this case Bulgarian) - MAKE SURE YOU SAVE IT IN UTF-8 WITHOUT BOM !!!

So if you are using windows notepad, download notpad++ and modify the file /catalog/language/bulgarian/common/footer.php to be in the right encoding!!!

EDIT2:
This also fixes the problem with changing the currency!

New member

Posts

Joined
Mon Jan 31, 2011 6:15 pm
Who is online

Users browsing this forum: No registered users and 3 guests