News:

Looking for documentation? Take a look on our wiki

Main Menu

Template dependent language override ?

Started by lostmail, June 11, 2013, 17:25:18 PM

Previous topic - Next topic

lostmail

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
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lostmail

Tried to insert a modified language folder/file into my template like in beez...but no change/override....unfortunately....
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

jjk

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
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lostmail

I googled and read the link you sent...but can not find a solution... :'(
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

PRO

the template

will echo the language string code

COM_VIRTUEMART_PRICES

soooo,

if you want a different string

COM_VIRTUEMART_MOBILE_PRICES

lostmail

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.

VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

PRO

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