VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: lostmail on June 11, 2013, 17:25:18 PM

Title: Template dependent language override ?
Post by: lostmail on June 11, 2013, 17:25:18 PM
I have installed a mobile template and now i need some other (shorter) language strings for the mobile template.

How can i force Joomla to use the modified language file if the mobile template is in use ?

Some strings have to be shortened than in the default template/language....

i.e.
beez => default language
mobile => modified default language
Title: Re: Template dependent language override ?
Post by: jjk on June 11, 2013, 20:06:10 PM
Theoretically by placing the modified language files into a language folder within your mobile template folder (similar to the language folders in the beez template). But I never tested that.
Title: Re: Template dependent language override ?
Post by: lostmail on June 11, 2013, 21:52:16 PM
Tried to insert a modified language folder/file into my template like in beez...but no change/override....unfortunately....
Title: Re: Template dependent language override ?
Post by: jjk on June 11, 2013, 22:14:25 PM
I'm shure there are some tricks to do this. Use Google to search for hints. Perhaps this one is helpful:
http://docs.joomla.org/Specification_of_language_files#Loading_any_language_file.2C_anywhere (http://docs.joomla.org/Specification_of_language_files#Loading_any_language_file.2C_anywhere)
Title: Re: Template dependent language override ?
Post by: lostmail on June 11, 2013, 22:39:28 PM
I googled and read the link you sent...but can not find a solution... :'(
Title: Re: Template dependent language override ?
Post by: PRO on June 11, 2013, 23:01:47 PM
the template

will echo the language string code

COM_VIRTUEMART_PRICES

soooo,

if you want a different string

COM_VIRTUEMART_MOBILE_PRICES
Title: Re: Template dependent language override ?
Post by: lostmail on June 14, 2013, 11:52:05 AM
Hm - but where does the template know which string is to use ?

The langauge for VM is independent from Joomla-Templates...that`s the problem.

Title: Re: Template dependent language override ?
Post by: PRO on June 14, 2013, 21:51:53 PM
Quote from: lostmail on June 14, 2013, 11:52:05 AM
Hm - but where does the template know which string is to use ?

The langauge for VM is independent from Joomla-Templates...that`s the problem.


you want to change the VMART language right?

&&

the virtuemart template  holds the variable vmart strings