News:

Support the VirtueMart project and become a member

Main Menu

COM_VIRTUEMART_SHOPPER_FORM_PHONE_2

Started by lindapowers, April 24, 2013, 20:04:47 PM

Previous topic - Next topic

lindapowers

Any reason why COM_VIRTUEMART_SHOPPER_FORM_PHONE_2 has no translation in any language?

We have added it as overrides, happens in virtuemart account maitenance/orders when you view one of your orders.

Maybe it has been changed recently, is the language for the second phone, or mobile phone.

Regards

jjk

COM_VIRTUEMART_SHOPPER_FORM_PHONE_2 probably is just a placeholder to remind you that extra shopper fields are translatable. It's not used anywhere in the code and therefore also not in any language file.
What you see in the in the account maintenance is COM_VIRTUEMART_SHOPPER_FORM_PHONE2, which is not the same key. The string for this one is "Mobile Phone" in the en-GB language file and COM_VIRTUEMART_SHOPPER_FORM_PHONE2="Teléfono móvil" in the es-ES language file.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lindapowers

#2
Quote from: jjk on April 24, 2013, 22:43:18 PM
COM_VIRTUEMART_SHOPPER_FORM_PHONE_2 probably is just a placeholder to remind you that extra shopper fields are translatable. It's not used anywhere in the code and therefore also not in any language file.
What you see in the in the account maintenance is COM_VIRTUEMART_SHOPPER_FORM_PHONE2, which is not the same key. The string for this one is "Mobile Phone" in the en-GB language file and COM_VIRTUEMART_SHOPPER_FORM_PHONE2="Teléfono móvil" in the es-ES language file.

Hola jjk

Thanks for reply bu I didnt understand you very well in this one.

Please note that im not saying in the account maintenance but in "your orders tab" in the details of your order (inside the account maintentace). Both show same value but different language keys.

So Im a bit confused, there are 2 language codes for the same field? You say the code is not used, but the text COM_VIRTUEMART_SHOPPER_FORM_PHONE_2 displays by default on a clean installation in all languages and displays the value for phone 2.

Regards






jjk

#3
Looks to me like a selfmade problem  ;)
If you go to Configuration > Shopper Fields > phone_2, the key in the title filed should read COM_VIRTUEMART_SHOPPER_FORM_PHONE2 (not ...PHONE_2). If you have this, it should display the key/string COM_VIRTUEMART_SHOPPER_FORM_PHONE2="Teléfono móvil" from your backend or frontend es-ES.com_virtuemart.ini (depending on if you are looking at a backend or frontend form)

Also, you may delete your language file override for the key COM_VIRTUEMART_SHOPPER_FORM_PHONE_2. It is an old key, that was installed into the _virtuemart_userfields table but has been removed in newer versions of VirtueMart (meaning is not installed anymore, but is not removed from the database table if you update VirtueMart from an old version).



[attachment cleanup by admin]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lindapowers

Thanks jjk, that solved it, but I promisse I didn't modify that code ;)

Regards