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
Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3

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....
Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3

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... :'(
Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3

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.

Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3

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