PDA

View Full Version : Solved Language switching problem



chaoyueh
17-10-10, 20:53
I recently install vB Osc Shopping Cart Pro (http://www.itvault.com/osc_product_info.php?products_id=1&osCsid=ikd3tlk10lu3ca36fek49bnml3) on my forum. Two languages, English and Chinese, are insallted. However, I cannot make it to work. It only shows Eglish version.

It seems that vBET causes this problem. I add urls below to ignore URLs section under vBET control panel but did not work. However, if I trun off vBET, the OSC shopping cart can switch to the right language.

This is Englsih verion (http://www.puddingbuy.com/forums/osc_shop.php)
This is Chinese version (http://www.puddingbuy.com/forums/osc_shop.php?language=tw) but not working, it jumps back to english version

Please help. Thanks

kamilkurczak
18-10-10, 15:41
hello,
I need a more information.
how it works: vB Osc Shopping Cart Pro?
please try to disable this mod (vB Osc Shopping Cart Pro) and try to find this issue again.
If you can't find this issue after disable - we have a conflict.
Translation to Japanese works good.


Two languages, English and Chinese, are insallted installed by this mod or vBET?
please describe it better. Thanks :D

chaoyueh
18-10-10, 16:00
hello,
I need a more information.
how it works: vB Osc Shopping Cart Pro?
please try to disable this mod (vB Osc Shopping Cart Pro) and try to find this issue again.
If you can't find this issue after disable - we have a conflict.
Translation to Japanese works good.


Two languages, English and Chinese, are insallted installed by this mod or vBET?
please describe it better. Thanks :D

sorry for the confusing

vB Osc Shopping Cart Pro integrates vb and oscommerce shopping cart system.
OScommerce shopping cart system has its own language packs
If you check here (http://www.puddingbuy.com/forums/osc_shop.php), you will see four flags in the right side. However, if you click those flags, the languages do not switch. When I disable vBET, these languages from oscommerce can switch.

Thanks

kamilkurczak
18-10-10, 16:10
did you disable this mod or not? if not - please try to disable this mod (vB Osc Shopping Cart Pro) and try to find this issue again. If yes - please write - can you find this issue again?

EDITED:
I understand that the main issue is that this mod (vB Osc Shopping Cart Pro) is not working properly right? This means that these flags do not work?
vBET is working good or not?

chaoyueh
18-10-10, 16:41
did you disable this mod or not? if not - please try to disable this mod (vB Osc Shopping Cart Pro) and try to find this issue again. If yes - please write - can you find this issue again?

EDITED:
I understand that the main issue is that this mod (vB Osc Shopping Cart Pro) is not working properly right? This means that these flags do not work?
vBET is working good or not?

vBET is working good.

The problem is OSC flags do not work.

There is a conflict between OSC & vBET

When I disable vBET, the OSC flags do work. The Osc user interface changes to taget language correctly.

kamilkurczak
18-10-10, 18:09
Hello,
Ok I have a solution for you.
As you see in your url you have a
language= parameter. vBET uses this parameter and your mod too. No problem.
But when you click on the flag (for example spain) here is redirect to
http://www.puddingbuy.com/forums/osc_shop.php because in vBET spainish and german are disabled. Please use your admincp-> vBET->Flags and enable Spanish and german languages.
English works good because in vBET english is enabled and there is a good parameter:
language=en

Chinese: not good. Just look on this url:

http://www.puddingbuy.com/forums/osc_shop.php?language=zh-CN by vBET. vBET use zh-CN but your mod use tw:

http://www.puddingbuy.com/forums/osc_shop.php?language=tw
In vBET tw = Taiwanese so you have a redirection to your main language.
zh-CN - this is an international standard so please write to your mod support and ask them about change in your code (from tw to zh-CN)

chaoyueh
19-10-10, 16:57
Chinese: not good. Just look on this url:

http://www.puddingbuy.com/forums/osc_shop.php?language=zh-CN by vBET. vBET use zh-CN but your mod use tw:

http://www.puddingbuy.com/forums/osc_shop.php?language=tw
In vBET tw = Taiwanese so you have a redirection to your main language.
zh-CN - this is an international standard so please write to your mod support and ask them about change in your code (from tw to zh-CN)

Thanks, it works

chaoyueh
19-10-10, 18:25
got one more question

my forum's default language is zh-TW

My Osc shopping cart's original language is English and the url is like this "./forums/osc_shop.php".

OSC also has a Taiwanese language pack, and the url is like this "./forums/osc_shop.php?language=zh-TW"

When I type "./forums/osc_shop.php?=zh-TW", the webpage switches back to "./forums/osc_shop.php".

Is it possible to show "./forums/osc_shop.php?language=zh-TW" instead of "./forums/osc_shop.php"?

Thanks for the help

kamilkurczak
20-10-10, 11:18
Hello,
the:
./forums/osc_shop.php?language=zh-TW is switched back to
./forums/osc_shop.php because Taiwanese is your main language (you have an example on our forum - just click on english flag).

I understand that:
./forums/osc_shop.php is english for your mod and
http://www.puddingbuy.com/forums/osc_shop.php?language=en is english too.

for vBET only
http://www.puddingbuy.com/forums/osc_shop.php?language=en with language=en is english. Without language=en - your main language: Taiwanese.

You can change your forum main language to English but I understand that you prefer to have the Taiwanese language as main.

You can also write to your mod support and aks them how to set Taiwanese language as main in this mod.

I will ask MichaƂ about different solution.

Greystoke
20-10-10, 12:35
Hi,

Is there a way that the vBET can be disabled so that it will not run in the vB Osc Shopping Cart Pro area.
All vB Osc Shopping Cart Pro files begin with osc_.

Have you a Rewrite Rule that will stop it running for the vB Osc Shopping Cart Pro, or is there a file that can be edited to stop it in that area.

Thanks

Greystoke
20-10-10, 14:06
Hi,

Is there a way that the vBET can be disabled so that it will not run in the vB Osc Shopping Cart Pro area.
All vB Osc Shopping Cart Pro files begin with osc_.

Have you a Rewrite Rule that will stop it running for the vB Osc Shopping Cart Pro, or is there a file that can be edited to stop it in that area.

Thanks

Problem fixed.

In the Plugin Initialization,

Changed


} else if (THIS_SCRIPT != 'cron' && THIS_SCRIPT != 'misc') {

To


} else if (THIS_SCRIPT != 'cron' && THIS_SCRIPT != 'misc' && substr(THIS_SCRIPT, 0, 4) != 'osc_') {

kamilkurczak
20-10-10, 14:22
hello,
Did you make a changes in vB Osc Shopping Cart Pro or in vBET?
Can you paste a ulr to your site with this mod and to sitel with osc_ file? I would like to check it. Thanks

Greystoke
20-10-10, 14:29
This was made on Chaoyueh site (Who started this thread).

Changes were made to vBET Initialization Plugin.

kamilkurczak
21-10-10, 08:10
Thanks for confirmation - solved

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
vBET 4.10.1 supports automatic translations