VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: hajo on April 06, 2013, 15:15:38 PM

Title: Button text disappears at language override
Post by: hajo on April 06, 2013, 15:15:38 PM
I've added the go back to category button in my productview page. It works fine.

The text on the button is "Back to: category name".

The script in the default.php is:

<a href="<?php echo $catURL ?>" class="product-details" title="<?php echo $categoryName ?>"><?php echo JText::sprintf('COM_VIRTUEMART_CATEGORY_BACK_TO',$categoryName) ?></a>

Now I make an override to change COM_VIRTUEMART_CATEGORY_BACK_TO to a Dutch text. (Terug naar) The override is made in the language settings of joomla. I've got more overrides there and they all work fine.

What happens is the text on the button changes to the dutch (Terug naar) but the category name is gone. It only appears in a small box when I hoover the mouse over it.

I can't find the solution.

Joomla 2.5.9 VM 2.0.20 b

Any body an solution?

Thanks,

Hajo
Title: Re: Button text disappears at language override
Post by: jjk on April 06, 2013, 21:09:45 PM
The question is: Why do you produce an override for this? If you have the dutch virtuemart language pack installed, everthing is already translated, including your button text.
It's in ...\language\nl-NL\nl-NL.com_virtuemart.ini, approximately line 108, which is:
COM_VIRTUEMART_CATEGORY_BACK_TO="Terug naar: %s"
Title: Re: Button text disappears at language override
Post by: hajo on April 08, 2013, 15:17:05 PM
The Dutch language pack doesn't cover all texts. Otherwise I wouldn't have made an override.
Title: Re: Button text disappears at language override
Post by: jjk on April 08, 2013, 15:40:15 PM
Where did you get your dutch language pack? It should be 100 percent translated (The translated line from my post above is copied from the current dutch language language pack)
Title: Re: Button text disappears at language override
Post by: hajo on April 08, 2013, 16:44:27 PM
I can't remember. i'll look for a new one then?
Title: Re: Button text disappears at language override
Post by: hajo on April 08, 2013, 17:10:37 PM
I found the dutch language pack and I've installed it. It works.

Still weird what happend with the override.

Thanks for your help!!

Hajo
Title: Re: Button text disappears at language override
Post by: jjk on April 08, 2013, 18:44:30 PM
Quote from: hajo on April 08, 2013, 16:44:27 PM
I can't remember. i'll look for a new one then?
I was typing the text below already while you replied to this forum thread again...  :)

Try the dutch language file attached below.
If you are using the latest VirtueMart version (2.0.20b) available here: http://dev.virtuemart.net/projects/virtuemart/files
there might be something like 5-10 lines untranslated. This is due to a small organizational problem, while two different developer versions are being merged into a single version again. The dutch language pack provided below is slightly different from the 2.0.16 language pack provided on the same download page as the main program, but both language packs should work.

In the near future the language packs will become available here: http://virtuemart.net/community/translations (don't use it yet - currently the files are not complete).


[attachment cleanup by admin]
Title: Re: Button text disappears at language override
Post by: hajo on April 13, 2013, 08:18:05 AM
Thank you verry much. The problem has been solved. I've created myself three nice buttons now.

Hajo