problem with translation

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart Themeproblem with translation

This topic has been marked as not resolved.

Hi, Theme Burn!
First of all, congratulations for your great theme Shoppica! I love it! Here I added a Bulgarian translation http://zizuweb.eu/esavenue/index.php?route=common/home, but I had some troubles:

- when I switch to Bulgarian, I see this error on the top of the page: “otice: Undefined index: 2 in /home/zizuwebe/public_html/esavenue/catalog/controller/module/welcome.php on line 8″

- after, when I swith back to English version, I see some other notice:


“Notice: Undefined index: 2 in /home/zizuwebe/public_html/esavenue/catalog/controller/module/welcome.php on line 8
Warning: Cannot modify header information – headers already sent by (output started at /home/zizuwebe/public_html/esavenue/index.php:100) in /home/zizuwebe/public_html/esavenue/system/engine/controller.php on line 28
Warning: Cannot modify header information – headers already sent by (output started at /home/zizuwebe/public_html/esavenue/index.php:100) in /home/zizuwebe/public_html/esavenue/system/engine/controller.php on line 29”

- and also when I put mouse over a product from Latest, I don’t see “Add to cart, Compare, and Wishlist” links

Could you please help me to resolve this issues?

Thanks in advance!

August 12, 2011 at 9:36 pm #502

I have similar problem that does not show hover layer when switching to Vietnamese language.
my site is here: http://goi.me/viethanmart

Please reply urgently.

Thank you in advance.

 popobc
August 13, 2011 at 6:18 pm #524

I resolved these problems, so you can close this post.

Popobc, when I had translated these strings in my language, I saw them – they are in shoppica.php

August 14, 2011 at 2:35 pm #563

Yes, this is problem with the translation files and is not related to Shoppica at all. I’ll leave this post because other users might benefit from it.

zizuweb – if you don’t mind, could you post which strings were causing the problem so the others can fix it quicker ?

August 14, 2011 at 2:40 pm #567

Thank you (zizuweb) very much for your pointing out the problems; However, could you please show the string causes the error as TB Support said?

Thank you in advance.

 popobc
August 15, 2011 at 9:26 am #621

Hi, everybody,

the exact path of file is /public_html/estore/catalog/language/bulgarian/module

and the strings are:

$_['shoppica_text_wishlist'] = ‘Wishlist’;
$_['shoppica_text_compare'] = ‘Compare’;

I hope this will be useful for other users!

Regards!

  • This reply was modified 4641 days ago by  zizuweb.
August 15, 2011 at 10:11 am #624

Hello, we found the problem that there’s missing a closed tag of PHP ” ?> ”
Howerver, problem still happen with firefox 5 due to utf-8 incode in translated text.
Can you explain why?

if we put the translated text without tone :

compare = ‘so sanh’; that’s fine.

but if with tone,

compare = ‘so sánh’; problem occurs with only firefox 5.

Please check that why unicode font cannot be used there.

 popobc
August 15, 2011 at 10:27 am #626

Thanks Zizuweb,
I do not know you have posted already so I made something redundantly.
About any body get problem with unicode, please use “Unicode With BOM” instead. I do not know why just have tried and get succeeded.

So this problem has been fixed so far …

Thank you all.

 popobc
August 15, 2011 at 11:21 am #627

Unicode With BOM is not recomented at all. It is a common reason for broken layouts. The BOM signature troubles the browser’s HTML rendering engine.

Also, a missing closing tag of PHP file is not an issue. Quite the contrary – it is recommended PHP practice. When you include a php file with space after the closing tag, PHP will send this space to the browser. And if the output buffering is disabled you will encounter the ‘headers already sent’ problem.

August 15, 2011 at 11:32 pm #661

Hi TB Support,
If you think Unicode with BOM has problem, please suggest me alternative method to resolve unicode problem?.

Thank you in advance.

 popobc
August 22, 2011 at 6:45 am #933

Hi popobc!

We really couldn’t observe any issues with Firefox 5 and unicode. The unicode problems are not tied to the files always. Your apache server can screw up the unicode, your php could also be the problem, your database connection sometimes. Also some file editing tools don’t recognize the proper encoding sometimes. What I recommend is to make a test with a clean shoppica installation without modifying anything. You can check then if your problems with unicode continue to appear.

Regards, ThemeBurn team

August 24, 2011 at 12:33 pm #1039

Hi, I am getting the error also with Spanish translation.. can you offer any help for me to resolve it?
Error message when switching to Spanish is:

Notice: Undefined index: 2 in /home/cositas/public_html/catalog/controller/module/welcome.php on line 8

Hope you can advise me..
Thanks

Skooz.

 skooz
September 1, 2011 at 12:11 pm #1307

@skooz – your problem is due to untranslated strings. As the @zizuweb states above, you should open your language file

/public_html/estore/catalog/language/spanish/module/shoppica.php
and check if these strings are present there:

$_['shoppica_text_wishlist'] = ‘Wishlist’;
$_['shoppica_text_compare'] = ‘Compare’;

Also, make sure you followed this guide when adding the Spanish language.

Regards, ThemeBurn team

September 1, 2011 at 1:05 pm #1318

Thanks for Reply.
The strings are there so that’s not the problem.
I’ll check the guide.

Thanksagain for response.

Regards,

Skooz

 skooz
September 1, 2011 at 1:30 pm #1320

Hi, I have exactly the same problem than Skooz and I have followed the guide and checked the strings. What else can I do?

My problem is:

Notice: Undefined index: 2 in /homepages/27/d348863449/htdocs/catalog/controller/module/shoppica.php on line 75

And when I swap from Spanish to english I get this:

Notice: Undefined index: 2 in /homepages/27/d348863449/htdocs/catalog/controller/module/shoppica.php on line 75Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d348863449/htdocs/index.php:100) in /homepages/27/d348863449/htdocs/system/engine/controller.php on line 28Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d348863449/htdocs/index.php:100) in /homepages/27/d348863449/htdocs/system/engine/controller.php on line 29

I know there is nothing wrong with Shoppica, but I would appreciate if somebody can help me.

Many thanks in advance

  • This reply was modified 4623 days ago by  amarros.
  • This reply was modified 4623 days ago by  amarros.
  • This reply was modified 4623 days ago by  amarros.
September 1, 2011 at 2:00 pm #1322
Viewing 15 posts - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.