News:

Support the VirtueMart project and become a member

Main Menu

Having issues after changed language

Started by bpetersen, January 26, 2012, 14:31:03 PM

Previous topic - Next topic

bpetersen

Hi

Im having some issue on my site www.lper.dk after i changed language to danish.
For example if a products is in the cart and i press "Hjem" to enter front page, it get an error in the cart saying COM_VIRTUEMART_CART_ONE_PRO
Also in the admin of VM 2 i see several of theese errors
see this image attached.

i have tried to download a localise tool to find errors in language translations to danish, but cant seem to find those tables. What can i do to fix it?

[attachment cleanup by admin]

jjk

These issues are not bugs. They are the result of an outdated danish translation, as I've stated here before:
http://forum.virtuemart.net/index.php?topic=89333.msg312541#msg312541

What you see is the "Key", which is in the VM2 code and normally is translated into a "String" (danish in your case), which you see i.e. as Menu or Button text.
If you see the "Key" part of these Key/String lines listed in the language files, you have a missing translation.

...somebody who speaks danish and english needs to update the danish language  ;)
Some infos about how to translate are here: http://forum.virtuemart.net/index.php?topic=89336.0
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bpetersen

Hi JJK

As i wrote i have already downloaded the localise tool which you links to. But i cant find the translation that will fix theese issue.
I speak danish so i could translate it myself. But cant find the correct files to translate with the localise tool.

jjk

I suppose the missing line in your file ...\language\da-DK\da-DK.com_virtuemart.ini is this one (The full name might be trunkated/hidden because of your template width)
COM_VIRTUEMART_CART_ONE_PRODUCT="1 product"

Another easy way to look up where the key/string is located in the original en-GB language files is to use i.e. the Notepad++ editor. In this case you could use it's 'Search in files' feature to browse through your *.ini files by searching for the key part of the missing translation - in this case COM_VIRTUEMART_CART_ONE_PRODUCT

After you have found it, you can add the translation to the corresponding da-DK...ini file.

Concerning using the "Localise" component for translation - do you have the danish Joomla language files installed?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bpetersen

Yeah i have the danish language pack installed both for joomla and for VirtueMart 2

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bpetersen

Hmm i tried to install it but it gives me this error:
JInstaller: :Installation: Kunne ikke kopiere fil /var/www/lper.dk/public_html/tmp/install_4f22cf15d09d5/language/da-DK/da-DK.com_virtuemart.ini til /var/www/lper.dk/public_html/language/da-DK/da-DK.com_virtuemart.ini

in english: Could not copy file /var/www/lper.dk/public_html/tmp/install_4f22cf15d09d5/language/da-DK/da-DK.com_virtuemart.ini to /var/www/lper.dk/public_html/language/da-DK/da-DK.com_virtuemart.ini

Perhaps here lies my problems? Do you know why i get this error?

jjk

#7
I'm have updated my language test site to Joomla 2.5 already and currently can't test this properly, because the danish Joomla translation is wrong. Somebody included the backend files twice in the installer and the frontend files are missing. Concerning your error message - please check if your Joomla frontend language folders have a da-DK folder. If it does exist, you can try to copy the new danish VM2 language files into this folder manually.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations