News:

Support the VirtueMart project and become a member

Main Menu

Additional strings for <LANG>.com_virtuemart.sef.ini

Started by man.of.earth, September 10, 2019, 15:22:25 PM

Previous topic - Next topic

man.of.earth

Hello,

I discovered that there are some SEF parts that can also be defined, and they are translated automatically.

The following strings can be added to the <LANG>.com_virtuemart.sef.ini files for all the languages used:
COM_VIRTUEMART_SEF_NOTIFY="notify-me"
COM_VIRTUEMART_SEF_RECOMMEND="recommend-to-a-friend"

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

man.of.earth

#2
I also found a way to translate the 'number' string:

1. add
COM_VIRTUEMART_SEF_NUMBER="number/numero etc."
to  <LANG>.com_virtuemart.sef.ini
2. in /components/Com_virtuemart/router.php
on line 347 change
$segments[] = 'number/'.$query['order_number'];
for
$segments[] = $helper->lang('number').'/'.$query['order_number'];
also change line 568:
if ($segments[0] =='number')
for
if ($segments[0] == $helper->lang('number'))


The same can be applied for 'id':
1. add
COM_VIRTUEMART_SEF_ID="id/whatever"
to  <LANG>.com_virtuemart.sef.ini
on line 350 change
$segments[] = 'id/'.$query['virtuemart_order_id'];
for
$segments[] = $helper->lang('id').'/'.$query['virtuemart_order_id'];['order_number'];

man.of.earth

It also works for orderdone string.
Just add
COM_VIRTUEMART_SEF_ORDERDONE="order-sent"
in <LANG>.com_virtuemart.sef.ini