Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

vm invoice translation
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: vm invoice translation

vm invoice translation 6 years ago #45018

We have a multi language website and would like to have the pdf vm invoice in the different languages (german and french) (virtuemart and joomla configuration is ready for multi language)

How can we do this exactly? We didn't understand the documentation and couldn't find any solutions in the forums.

In invoice template -> Help we found this:
"You can enclose language strings by square brackets to be translaed, and even specify language file which have to be loaded (e.g.[com_content:Article])."

Can you explain and give us an example?

thanks
The topic has been locked.

Re: vm invoice translation 6 years ago #45047

  • pama
  • OFFLINE
  • Posts: 489
Hello. Currently we translate automatically everything possible from VirtueMart and language strings. You want certain blocks of text be different for every language? We added this option to latest 2.0.38 release, when you can use conditional blocks in template, like that:

{if document_language == "fr-FR"} this is french text {/if}
{if document_language == "de-DE"} this is german text {/if}

As for document language, defaultly it is generated in "order language" field, that was added in some VirtueMart version ago. See related settings in VM Invoice => Global Configuratipon => Page Appearance.

Edit: When you use in template

[SOME_LAGUAGE_STRING:com_componentname]

, Joomla translation files will be used for translation of this string. Defaultly that function is used for various captions on invoice, but you can specify your own (for example by using Joomla Language Override function)
ARTIO Support Team
Last Edit: 6 years ago by pama.
The topic has been locked.
  • Page:
  • 1
User Login Empty