VMware Cloud Community
GobiSankaranara
Contributor
Contributor

ovf template for including different license agreement text not working as expected

Hi,

I am working on one migration where I expected to generate custom ovf template for my product.

I used the earlier version ovf template and it was working in those version perfectly

In new ovf template wherever I generated by my own, <Info> tag under Eula section should take content dynamically based on the language selection

My ovf template looks like this

<EulaSection>

      <Info ovf:msgid="license-info">LicenseAgreement1</Info>

      <License ovf:msgid="license-text">License Agreement1

some content

</License>

</EulaSection>

<EulaSection>

      <Info/>

      <License>License Agreement2

some content

</License>

</EulaSection>

<Strings xml:lang="ko-KR">

<Msg ovf:msgid="license-info">Korean string for LicenseAgreement1</Msg>

<Msg ovf:msgid="license-text">Korean language License Agreement1</Msg>

</Strings>

Note: License Agreement2 looks same for all languages so no message under Strings tag

ovf:msgid="license-text" working fine when switching language

ovf:msgid="license-info" is not working and it is showing default Agreement 1 value

Can anyone help me to fix this?

Regards,

Gobi S.

Tags (1)
0 Kudos
3 Replies
scott28tt
VMware Employee
VMware Employee

Moderator: Thread moved to the OVFtool area.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
dgold
Enthusiast
Enthusiast

your info secttion is wrong.  look at this example and see if that helps:

    <EulaSection>

      <Info>End User License Agreement</Info>

      <License ovf:msgid="license_0" />

    </EulaSection>

    <EulaSection>

      <Info>End User License Agreement</Info>

      <License ovf:msgid="license_1" />

    </EulaSection>

        <EulaSection>

      <Info>End User License Agreement</Info>

      <License ovf:msgid="eula" />

    </EulaSection>

...

<Strings xml:lang="zh">

    <Msg ovf:msgid="license_0">(Chinese) 虚拟英语EULA的#1一些特殊字符</Msg>

  </Strings>

  <Strings xml:lang="fr">

    <Msg ovf:msgid="license_0">(French) VM anglais EULA # 1, certains caractères spéciaux</Msg>

    <Msg ovf:msgid="license_1">(French) VM anglais EULA # 2, certains caractères spéciaux</Msg>

  </Strings>

  <Strings xml:lang="en">

    <Msg ovf:msgid="license_0">(English) VM English EULA #1</Msg>

    <Msg ovf:msgid="license_1">(English) VM English EULA #2</Msg>

  </Strings>

    <EulaSection>
      <Info>End User License Agreement</Info>
      <License ovf:msgid="license_0" />
    </EulaSection>
    <EulaSection>
      <Info>End User License Agreement</Info>
      <License ovf:msgid="license_1" />
    </EulaSection>
        <EulaSection>
      <Info>End User License Agreement</Info>
      <License ovf:msgid="eula" />
    </EulaSection>
...
<Strings xml:lang="zh">
    <Msg ovf:msgid="license_0">(Chinese) 虚拟英语EULA的#1一些特殊字符</Msg>
  </Strings>
  <Strings xml:lang="fr">
    <Msg ovf:msgid="license_0">(French) VM anglais EULA # 1, certains caractères spéciaux</Msg>
    <Msg ovf:msgid="license_1">(French) VM anglais EULA # 2, certains caractères spéciaux</Msg>
  </Strings>
  <Strings xml:lang="en">
    <Msg ovf:msgid="license_0">(English) VM English EULA #1</Msg>
    <Msg ovf:msgid="license_1">(English) VM English EULA #2</Msg>
  </Strings>
0 Kudos
GobiSankaranara
Contributor
Contributor

Hi,

Thanks for your response, I agree with your suggestion but this works only with ESX ovf deployment and VCenter still it shows as Agreement1

I have a mixed result when I use your provided ovf template or my ovf template

When I used command line ovf tool to deploy my <Info ovf:msgid> it is working fine, All language translation working fine

When I used without ovf:msgid i.e <Info>License Agreement</Info> then in ESX ovf upload I could see the correct Info value inside ESX but when you deploy via VCenter it is showing as Agreement1 instead of "License Agreement"

For example please refer below screenshots

Output from VCenter ovf deploy - with <Info>License Agreement</Info>(Note: Agreement1 should be shown as License Agreement)

pastedImage_0.png

Output from ESX deployment - Working fine <Info>License Agreement</Info>

pastedImage_2.png

Output during ovftool via Command line with <Info ovf:Msgid> - This is working fine i.e Based on Language it is replacing the appropriate Language String

pastedImage_1.png

It is totally confusing between VCenter/ESX and Commandline

Which method is correct or What I should expect out of this different ways or Is it expected behavior, I don't have any proper VMWare document which says about this

Please point me to any doc says that ovf:Msgid will not work under Info tag with in Eulasection then I can take decision

0 Kudos