Menu

Rename fields

Jokeyr
2024-02-14
2024-02-15
  • Jokeyr

    Jokeyr - 2024-02-14

    Hello,

    I'm trying to rename some fields, but I dont really understand how to do it with an extension.
    I have imported a module in "extensions" folder and i'm trying to modify it.

    Here is my "datamodel.sample-extension.xml", is this the file I need to modify? And are my tags good? When I want to install it on my itop dev server I have an error on line 3 on "FR FR".

    <?xml version="1.0" encoding="UTF-8"?>
    <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0">
        <dictionary id="FR FR" _delta="must_exist">
          <entries>
            <entry id="Class:UserRequest/Attribute:caller_id" _delta="redefine">
              <![CDATA[Bénéficiaire]]>
            </entry>
            <entry id="Class:UserRequest/Attribute:caller_id+" _delta="force">
              <![CDATA[Choisissez le bénéficaire]]>
            </entry>
          </entries>
        </dictionary>
    </itop_design>
    

    thank you

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-02-15

    Probably because it doesn't exist yet? I usually work with the xx.module-xxx.php dictionary files. You might be able to pull it off with XML as well.

    Make sure you also add a dependency to the module in which the strings were originally defined, so your translation overrides the existing one.

     
  • Vincent @ Combodo

    Define no delta on line 3 (or use value "merge" or "force") and used "define" or "force" in line 5.
    Those tags do not exist by default.
    iTop and extensions, usually do not bring their dictionaries in XML, but in PHP.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.