VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Translation / Languages VM 1.1 => Topic started by: dokape on December 12, 2008, 13:50:54 pm

Title: Add a phrase to a language? *solved*
Post by: dokape on December 12, 2008, 13:50:54 pm
Hi there,
in 'com_virtuemart\languages\common\german.php' I changed the entry 'PHPSHOP_CART_ADD_TO' and this works fine.

In my theme I edit the 'templates\product_details\include\addtocart_form.tpl.php'. (Well I write dynamically the text into the button itself by manipulating the .gif serverside)
But I need another text more (in different languages, so I cannot hartcode this).

I want to add another text-phrase into the same languagefile and read the text with
$button_lbl = $VM_LANG->_('PHPSHOP_CART_MYWHOLESALER');
out of the file. But the $button_lbl keeps empty.

So: how to add another individual phrase into the language-file and read this out?

Thanks!
Title: Re: Add a phrase to a language?
Post by: dokape on December 15, 2008, 21:17:25 pm
No Idea?

How do developpers add new Phrases to the language-Files?

Regards from Germany,
Peter
Title: Re: Add a phrase to a language?
Post by: dokape on December 20, 2008, 13:47:53 pm
Did nobody add a new line into the language file?

I cannot believe it. ;-)

My problem is still:
Changing a line (phrase) in the language-file works,
Adding a new line (a new phrase) does not seem to work.
I there any hint available?

Thanks!
Title: Re: Add a phrase to a language?
Post by: dokape on December 20, 2008, 17:44:47 pm
Thanks for reading, I got it.

Some mistake by me.