News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Button text disappears at language override

Started by hajo, April 06, 2013, 15:15:38 PM

Previous topic - Next topic

hajo

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

jjk

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"
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hajo

The Dutch language pack doesn't cover all texts. Otherwise I wouldn't have made an override.

jjk

#3
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)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hajo

I can't remember. i'll look for a new one then?

hajo

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

jjk

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]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hajo

Thank you verry much. The problem has been solved. I've created myself three nice buttons now.

Hajo