News:

Looking for documentation? Take a look on our wiki

Main Menu

Translation not working on products and categories

Started by ignacio.correia, August 31, 2013, 16:52:29 PM

Previous topic - Next topic

ignacio.correia

Hello,

I have VM2 2.0.22b in a J2.5 installation.

It took me 2 months to develop a website, translate it, optimized it, etc, when I was going to finish the translation in VM Product and VM Category there is when the problems started.
When installing VM, it never mentioned that en-GB has to be the default language  :-[ !

Everything works 100% if english is default but in my case it is not and cannot be :(

When I put spanish by default and try to translate products and categories it just does not work.
I have been google for the last 6 ours and found ppl with the same problem. So I decided to see if I was right so I searched in all VM files and for my surprise and worst scenario I found what I didn't wanted:

All this files are searching and using the ENGLISH, but why?  Is there any fix to this? I am really not in the mood to delete everything in joomfish, change from spanish to english and then translated to spanish everything.

I can't believe this, how is this possible, there is a featured called DEFAULT LANGUAGE in Joomla, why they didn't use it? I expected to launch the site next week, but I don't believe I can now.

As usual, thanks in advanced for any help, I know it takes a lot of work and effort behind this project. I am just frustrated. Congratulations on a great product :)

\administrator\components\com_virtuemart\admin.virtuemart.php:
   34:     $jlang->load('com_virtuemart', JPATH_ADMINISTRATOR, 'en-GB', true);

\administrator\components\com_virtuemart\helpers\config.php:
  387: $jlang->load('virtuemart', null, 'en-GB', true); // Load English (British)
  456: if(VmConfig::get('enableEnglish', 1) and $tag!='en-GB'){
  457: $jlang->load($name, $path, 'en-GB');
  625: $siteLang = $params->get('site', 'en-GB');//use default joomla
1400: $existingLang = array("af","ar","ar-DZ","az","bg","bs","ca","cs","da","de","el","en-AU","en-GB","en-NZ","eo","es","et","eu","fa","fi","fo","fr","fr-CH","gl","he","hr","hu","hy","id","is","it","ja","ko","kz","lt","lv","ml","ms","nl","no","pl","pt","pt-BR","rm","ro","ru","sk","sl","sq","sr","sr-SR","sv","ta","th","tj","tr","uk","vi","zh-CN","zh-HK","zh-TW");
1405: $lang = "en-GB";

\administrator\components\com_virtuemart\helpers\tableupdater.php:
   86: $langs = (array)$params->get('site', 'en-GB');

\administrator\components\com_virtuemart\helpers\vmview.php:
  244: $selectedLangue = $params->get('site', 'en-GB');
  292: // $lang = $params->get('site', 'en-GB');

\administrator\components\com_virtuemart\install\script.virtuemart.php:
  126: $lang = $params->get('site', 'en-GB');//use default joomla
  215: $lang = $params->get('site', 'en-GB');//use default joomla

\administrator\components\com_virtuemart\liveupdate\liveupdate.php:
   39: $jlang->load('liveupdate', $basePath, 'en-GB', true); // Load English (British)

\administrator\components\com_virtuemart\models\fields\orderstatus.php:
   31: $jlang->load ('com_virtuemart', JPATH_ADMINISTRATOR, 'en-GB', TRUE);

\administrator\components\com_virtuemart\models\updatesmigration.php:
  226: // $lang = $params->get('site', 'en-GB');//use default joomla
  231:     $lang = $params->get('site', 'en-GB');//use default joomla
  392: $lang = $params->get('site', 'en-GB');//use default joomla

\administrator\components\com_virtuemart\plugins\currency_converter\convertECB.php:
   88: setlocale(LC_TIME, "en-GB");

\administrator\components\com_virtuemart\views\country\view.html.php:
   41:     $jlang->load('com_virtuemart_countries', JPATH_ADMINISTRATOR, 'en-GB', true);

\administrator\components\com_virtuemart\views\userfields\view.json.php:
   54:             $lang->load($filename, JPATH_ADMINISTRATOR, 'en-GB', true);

\components\com_virtuemart\assets\js\i18n\jquery-ui-i18n.js:
  251: /* Based on the en-GB initialisation. */
  276: $.datepicker.regional['en-GB'] = {
  294: $.datepicker.setDefaults($.datepicker.regional['en-GB']);
  297: /* Based on the en-GB initialisation. */

\components\com_virtuemart\assets\js\i18n\jquery.ui.datepicker-en-AU.js:
    2: /* Based on the en-GB initialisation. */

\components\com_virtuemart\assets\js\i18n\jquery.ui.datepicker-en-GB.js:
    4: $.datepicker.regional['en-GB'] = {
   22: $.datepicker.setDefaults($.datepicker.regional['en-GB']);

\components\com_virtuemart\assets\js\i18n\jquery.ui.datepicker-en-NZ.js:
    2: /* Based on the en-GB initialisation. */

\components\com_virtuemart\controllers\invoice.php:
  172: $jlang->load('com_virtuemart', JPATH_SITE, 'en-GB', true);

\components\com_virtuemart\helpers\shopfunctionsf.php:
  309: $jlang->load( 'com_virtuemart', JPATH_SITE, 'en-GB', TRUE );

\install\script.virtuemart.php:
  126: $lang = $params->get('site', 'en-GB');//use default joomla
  215: $lang = $params->get('site', 'en-GB');//use default joomla


\admin\admin.virtuemart_allinone.php:
   74: $jlang->load('com_virtuemart', JPATH_ADMINISTRATOR, 'en-GB', true); // Load English (British)
  101: $jlang->load('liveupdate', $basePath, 'en-GB', true); // Load English (British)


\admin\plugins\vmpayment\klarna\klarna.php:
   72: $jlang->load ('plg_vmpayment_klarna', JPATH_ADMINISTRATOR, 'en-GB', TRUE);
  869: "en" => "en-GB",


Milbo

sorry, ehrm, what? RTFM? You dont find it? http://docs.virtuemart.net/tutorials/36-multilingual-store/99-multilanguage-setup.html
You do not need english, but if you install joomla and you do nothing, the default language is english. So when you install vm,.. your default is again english
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ignacio.correia

Let me re-explain it easier.

1 - Install VM
2 - Set another language as default, can not be English
3 - Create a product
4 - Try to translate it to English - HERE IT DOES NOT WORK

The problem is that on step 4. If a language is default and then you try to translate to English product or categories it won't work, it is a bug.

lp24

I have the exact same problem with VM 2.0.22C and Joomla 2.5.14.
I'm running English and Danish.

Any ideas how to get this working?

ignacio.correia

Yes we manage to fix the problem.
Are you using admin tools? are you using htacess?

If so disbale both and try to see if it works without them.