Jump to content
gmadridsports

how to translate the VAT address field

Recommended Posts

Hi! I'm trying to translate the VAT field, unsuccessfully. Basically I've edited ShopFormLables.xlf, by placing the following:
 

      <trans-unit id="7cb32e708d6b961d476baced73d362bb" approved="yes">
        <source>VAT number</source>
        <target xml:lang="es-ES" state="translated">DNI/NIE</target>
        <note>Context:
File: classes/form/CustomerAddressFormatter.php:214</note>
      </trans-unit>

replacing the xlf file under app/Resources/translations/es-ES/ShopFormLabels.xml, emptying the cache from the back office and trying to reload the page where the field appears. Nothing changed though, as you can see from the image attacched. Any hint? :(

 

Screenshot 2018-11-21 at 21.04.14.png

Share this post


Link to post
Share on other sites

Which version are you using? Have you tried to use the translations in the back office? I find the term "VAT number" in the translations at Shop.Forms.Label

Share this post


Link to post
Share on other sites
Posted (edited)

Hi, I know the answer's a little late, but I think the problem you are facing is that the translation file should be:

[prestawebroot]/app/Resources/translations/es-ES/ShopFormsLabels.es-ES.xlf 

At least that's what worked for me on 1.7.3

Hope it helps someone.

Edited by AreaEuropa (see edit history)

Share this post


Link to post
Share on other sites
On 7/3/2019 at 12:14 PM, AreaEuropa said:

Hi, I know the answer's a little late, but I think the problem you are facing is that the translation file should be:

[prestawebroot]/app/Resources/translations/es-ES/ShopFormsLabels.es-ES.xlf 

At least that's what worked for me on 1.7.3

Hope it helps someone.

Thank you so much, working fine in 1.7.6.1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More