Author Topic: [SOLVED] Why are VM language variables not translated in Joomla SQL field type?  (Read 1359 times)

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1747
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Hello

Should probably work anyway, but have You tried single quotes instead of double quotes ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

gba

  • Jr. Member
  • **
  • Posts: 274
Hi!

No difference ...
Actually using vmText::_($option->text) no quotes are involved at all  ;)

Kind regards,
Gerald

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9711
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
no big deal, the order stati have their own language file. Just after loadConfig
Code: [Select]
vmLanguage::loadJLang('com_virtuemart_orders',TRUE);

When you change the language, then all already loaded language files get loaded automatically (can be suppressed with param)
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

gba

  • Jr. Member
  • **
  • Posts: 274
Hi!

Thank you - translation works now!  :)

When you change the language, then all already loaded language files get loaded automatically (can be suppressed with param)
"already loaded language files get loaded automatically" - what do you mean with that?

Kind regards,
Gerald

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9711
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
When you change the language, you loaded for example 10 english language files. When you change to german, you would have to reload them. VM does this for you.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/