VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: ptrouw on October 20, 2014, 10:35:23 AM

Title: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on October 20, 2014, 10:35:23 AM
After adding a new product in default language and changing to another translation VM give you a nice message: "No (de-de) translation in Product, please fill the fields with Flags". All works fine.
But after translating and  going back to this product causes a problem. If I want to switch to another existing translation of the product, the first product information screen with product name etc, isn't changing, I am not getting the different language flag. If I however go to Product Description, everything is fine, I see the other language flag.
So somehow, selecting a translation language in the Product Information tab, isn't refresh the screen!
Any thought on solving this?

PS the some functionality within Product Categories works faultless.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on October 21, 2014, 21:15:30 PM
When you save a translation, VM always goes back to your site default language, which is set in the Joomla language manager. I don't know why the flags for the default language don't load after clicking on 'Save'. If you are not shure which language you are looking at after clicking 'Save', you can display the flags for the default language if you select the default language from the dropdown list again.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on October 22, 2014, 09:47:21 AM
Problem is difficult to explain. I will try with some screenshots. The problem is I already have created the translations and I want to edit them.
Changing the default language to another doesn't change the Product Information. Have a look at the screenshot 1. The default Dutch product information. Changing language to English, doesn't do anything within the Product Information tab (screenshot 2).
Going to Description tab, it is showing the English flag and showing the English short Description, but not showing the English content in long Product Description. It is still showing the Dutch! (screenshot 3)
If I now change to French without saving or changing anything, it is mess up completely. It is showing English flag, instead of French, although short description is French! (screenshot 4)

Hope this clarifies it a little more.

[attachment cleanup by admin]
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on October 22, 2014, 14:59:25 PM
I can't reproduce that with my copy of VM 2.9.9g (perhaps you can try to update from your 2.9.9.e version).
However, I suppose that your multilanguage setup is not correct somewhere. Did you follow all the setup steps described here?
http://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html
Note, that you need to install the Joomla language packs and the VirtueMart language packs for each language you want to use. Otherwise the Joomla language switcher will not work correctly. Also pick one of your product descriptions and check with phpmyadmin if your source language and your translations are stored in the correct language tables in the database. (For example, your dutch product description should be in the table xxxx_virtuemart_products_nl_nl)
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on October 22, 2014, 15:34:45 PM
I just installed 2.9.9g still the same problem.
Multi-language set-up is fine for all 4 languages in Joomla.
checked in phpmyadmin 4 tables: virtuemart_products_de_de, nl_nl, fr_fr and en_gb are created and having the right translation.

The Product Categories page in all 4 languages work faultless. This proves that set-up is working fine.
The only thing I imagine is the the Java script is not functional properly. Although I don't know if changing language within Products and Categories is the same?
I don't know to how to check Java conflicts.
VM Language container triggers this code: <a class="chzn-single chzn-single-with-drop" href="javascript:void(0)" tabindex="-1">

BTW the front-end editing is the different languages is fine!
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on October 22, 2014, 22:49:16 PM
In order to check for Javascript errors, you could use for example the free Firefox plugin 'Firebug'. Also you may enable Joomla 'Debug System' and 'Debug Language' to check for errors. If you use Firebug, check your site loads more than one jQuery.js (different versions). Maybe there an extension which loads it's own version of jQuery.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on October 24, 2014, 11:30:56 AM
As far as I can see there are no conflicting Java scripts. I installed 2.9.9.2 and the problem still exists.

Looking at the problem again, I am pretty sure it has to do with the refresh of the content after changing language. It doesn't refresh the Product Information.
After switching languages going to the second tab, shows the Flag icon, short description works fine, long description is still the original content, although it shows the right Flag next to it.

Switching to a language without a translation yet,  works fine. It shows the right flag straight away.

Hope you can have a look into it again.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on October 24, 2014, 20:53:09 PM
Which editor do you use? Joomla's TinyMCE and JCE do work with VirtueMart. Others might still have compatibility problems.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: fast4u on October 25, 2014, 08:51:36 AM
Since last update to 2.9.9.e, on my english-french virtuemart site fail,

I get this message from virtuemart when i click on a product category on the front end, but only on english categories in virtuemart, i can click on a product and view it in english but if i click on a category in english its Error 1146. The french side, french categories are navigable as usual.. help plz

1146
Error: 1146

Table 'xclie_j3.vm3j2_virtuemart_manufacturers_fr_fr' doesn't exist SQL=SELECT DISTINCT IFNULL(l.`mf_name`,ld.mf_name) as mf_name,IFNULL(l.`virtuemart_manufacturer_id`,ld.`virtuemart_manufacturer_id`) as virtuemart_manufacturer_id FROM `vm3j2_virtuemart_manufacturers_fr_fr` as ld LEFT JOIN `vm3j2_virtuemart_manufacturers_en_us` as l using (`virtuemart_manufacturer_id`) INNER JOIN `b72uy_virtuemart_product_manufacturers` AS pm using (`virtuemart_manufacturer_id`) INNER JOIN `b72uy_virtuemart_products` as p ON p.`virtuemart_product_id` = pm.`virtuemart_product_id` INNER JOIN `b72uy_virtuemart_product_categories` as c ON c.`virtuemart_product_id` = pm.`virtuemart_product_id` WHERE p.`published` =1 AND c.`virtuemart_category_id` =25 ORDER BY `mf_name`
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: GJC Web Design on October 25, 2014, 14:45:10 PM
and does vm3j2_virtuemart_manufacturers_fr_fr table exist?
there is already a release candidate 2.9.9.2 to test
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on October 25, 2014, 16:35:35 PM
Quote from: GJC Web Design on October 25, 2014, 14:45:10 PM
and does vm3j2_virtuemart_manufacturers_fr_fr table exist?
there is already a release candidate 2.9.9.2 to test
Will be fixed in RC 2.9.9.3
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on October 26, 2014, 19:49:52 PM
Quote from: ptrouw on October 24, 2014, 11:30:56 AM
As far as I can see there are no conflicting Java scripts. I installed 2.9.9.2 and the problem still exists.

Looking at the problem again, I am pretty sure it has to do with the refresh of the content after changing language. It doesn't refresh the Product Information.
After switching languages going to the second tab, shows the Flag icon, short description works fine, long description is still the original content, although it shows the right Flag next to it.

Switching to a language without a translation yet,  works fine. It shows the right flag straight away.

Hope you can have a look into it again.

Using default Joomla's TinyMCE!
Title: Changing language for translation of product in VM3.0 partly works
Post by: ptrouw on November 21, 2014, 13:54:21 PM
Changing language within VM is not working correctly.
The default language is Dutch, If you look at the first screen-shot, I change to English, the flag has changed. The short description is changed also to English, but the long description isn't refreshed and still showing Dutch.
Next step changing to German, second screen-shot, now the flag isn't changed any more, although short description is changed to German, long description isn't refreshed and still showing Dutch.

If I use front-end editing it works a little better strange enough. First tab with product info is changing fine, again short description is OK, long description isn't (screen-shot front-end). If you edit the long description and overwrite the Dutch text, the new text in the new languages is saved correctly!!

Any thoughts?

- using default Joomla editor
- as far as I can trace, no java conflict


[attachment cleanup by admin]
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: Margriet on November 21, 2014, 16:12:04 PM
Same here
http://forum.virtuemart.net/index.php?topic=126842.0 (VM 3.0)
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on November 22, 2014, 00:11:06 AM
In my first attempt I couldn't reproduce that with my copy of Joomla 3.3.6/VirtueMart 3.0.0.  Language switching and translations do work in my case. Will have another look this weekend.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on November 25, 2014, 17:14:35 PM
I have Joomla 3.3.6/VirtueMart 3.0.0 also running but problem still exist. Were you able to have a second look? Or have any ideas what I could do or test?

I noticed a another post, similar problem: http://forum.virtuemart.net/index.php?topic=126842.msg434688#msg434688

Kind regards, Paul
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on November 25, 2014, 23:51:57 PM
I've noticed the other post with the similar problem. I did try again, but still couldn't reproduce it yet. A developer today also tried to reproduce it with Joomla 2.5 and VM3 and couldn't reproduce it either.

Could you provide the data from your Joomla system information tab?
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: Margriet on November 26, 2014, 09:43:45 AM
Mine is Joomla 3.3.6 with VM 3.0. Clean installation. Joomla and VM and just one product and one category for testing purposes.
(http://yndidev.tk//vm3/images/vmtest/Yndi%2020141126%20-%201117.png)

Can create super user login for you.

Just did some more tests and it gets even weirder. When translating and saving translation is saved in database and shown in frontend:
(http://yndidev.tk//vm3/images/vmtest/Yndi%2020141126%20-%201119.png)
When re-opening article in backend for editing and switching to English, Dutch text is shown again. Cancel without saving and it stays English in frontend. Save and it reverts to Dutch.
(http://yndidev.tk//vm3/images/vmtest/Yndi%2020141126%20-%201120.png)
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: Milbo on November 26, 2014, 19:55:30 PM
http://forum.virtuemart.net/index.php?topic=126842.msg435091#msg435091
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on November 26, 2014, 20:12:25 PM
Quote from: ptrouw on November 25, 2014, 17:14:35 PM
I have Joomla 3.3.6/VirtueMart 3.0.0 also running but problem still exist. Were you able to have a second look? Or have any ideas what I could do or test?

I noticed a another post, similar problem: http://forum.virtuemart.net/index.php?topic=126842.msg434688#msg434688

Kind regards, Paul

System Information
Setting    Value
PHP Built On    Linux daresel06.oxilion.nl 2.6.32-531.23.3.lve1.2.65.el6.x86_64 #1 SMP Tue Aug 19 10:37:27 EDT 2014 x86_64
Database Version    5.5.36-cll-lve
Database Collation    latin1_swedish_ci
PHP Version    5.3.29
Web Server    Apache/2
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: jjk on November 26, 2014, 22:42:14 PM
As Milbo mentioned in the other forum thread, one of the issues seemed to be related to the new TinyMCE version which Joomla delivers since J3.2. After the hint from Milbo I was able to reproduce the issue with the TinyMCE Editor. Normally I use the JCE Editor in Joomla. If you don't want to wait for the next VM update, you may use the JCE editor, which also works with VM 3.0.0.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: Margriet on November 27, 2014, 09:15:51 AM
@jjk: Confirmed. JCE no problem. Just for once I decided to test with no extra extensions. JCE is normally the first extension I install  8)
@Max: Thx for looking into it!
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: ptrouw on November 27, 2014, 10:13:42 AM
Yes my problems are solved as well. Note that the JCK Suite for Joomla 3 doesn't work either! But JCE is fine.
Thx for all the help.
Title: Re: Changing language for translation of product in VM2.9.9e partly works
Post by: Milbo on November 28, 2014, 13:53:00 PM
The JCE guys added class, to be compatible with us. The JCK guys just need to add this class, imho.