VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: borro on May 29, 2014, 08:16:05 AM

Title: How to make english transliteration for product aliases in VM2.6.6?
Post by: borro on May 29, 2014, 08:16:05 AM
Hello

Testing Virtuemart 2.6.6. If I'm adding a new product named in russian then its alias becomes written in russian alphabet. How to return english transliteration by default in VM 2.6.6 for aliases?
I tried to change this string in /administrator/components/com_virtuemart/helpers/vmtable.php
$unicodeslugs = VmConfig::get('transliterateSlugs',false);
to this one:
$unicodeslugs = VmConfig::get('transliterateSlugs',true);
but after that alias becomes equal to such e.g. value:
%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D1%8B%D0%B9-%D0%B1%D1%80%D0%B5%D0%BB%D0%BE%D0%BA

What should i change?
Title: Re: How to make english transliteration for product aliases in russian shop?VM2.6.2
Post by: MekkE on May 29, 2014, 18:48:34 PM
Good question, this is a very important bug, I have same issue with the Hungarian characters (like öüóúőáéű):( Previously, it was good, something is wrong in this release (2.6.4)
Title: Re: How to make english transliteration for product aliases in russian shop?VM2.6.6
Post by: borro on June 03, 2014, 07:47:25 AM
Jenkinhill, Milbo, GJC Web Design, anybody, any ideas?
Title: Re: How to make english transliteration for product aliases in russian shop?VM2.6.6
Post by: GJC Web Design on June 03, 2014, 08:59:02 AM
Sorry - we english speakers un-saddled as we are with funny letters know very little about this stuff..  :(
Title: Re: How to make english transliteration for product aliases in russian shop?VM2.6.6
Post by: MekkE on June 10, 2014, 13:08:02 PM
Quote from: GJC Web Design on June 03, 2014, 08:59:02 AM
Sorry - we english speakers un-saddled as we are with funny letters know very little about this stuff..  :(

So u say Virtuemart ecommerce system only for English territory (at the moment we can't use the newest version..)?:(

Btw this is so simple:
Before 2.6.2 everything ok, the update broke this part..thats all. I think the developers know what has changed, until now it was work, so they know the solution (but they don't respond this  bug..:( )
I think this is a serious bug -but reletive easy to fix, because previously it was good-, yes does not affect everyone, but this is a Ecommerce system so multilingualism is basic featue (I think so)

Just try using this letters or any non english character (in product name or product category..or product manufacture - all wrong:()
öüóúőűáé

@borro:
I don't know why, but now it's $unicodeslugs = VmConfig::get('transliterateSlugs',true); work (for me). I don't do anything..but now its work..strange.

So now the characters are good (like őúűáéüó), but if i have comma or dot in the product name/category/manufacture:

comma replace to->%2C
dot -> untouched, don't cut out the sef alias
   

Title: Re: How to make english transliteration for product aliases in VM2.6.6?
Post by: borro on June 10, 2014, 14:13:38 PM
Hm... I think i need to discover what functions are hiding behind the code:
VmConfig::get('transliterateSlugs',true)
may be there is some php extension which is not presented at my shared hosting
Title: Re: How to make english transliteration for product aliases in VM2.6.6?
Post by: MekkE on June 12, 2014, 17:20:39 PM
Quote from: borro on June 10, 2014, 14:13:38 PM
Hm... I think i'l need to discover what functions are hiding behind
VmConfig::get('transliterateSlugs',true)
may be there is some php extension which is not presented at my shared hosting

Dont think so..this is VM bug:( dot and comma in slug + product pictures save as accent filename :(
Untill VM 2.6.2, Joomla still works fine
Title: Re: How to make english transliteration for product aliases in VM2.6.6?
Post by: Milbo on June 20, 2014, 17:08:58 PM
http://forum.virtuemart.net/index.php?topic=123915.0